:root {
  color-scheme: dark;
  --black: #020202;
  --white: #f3f2ee;
  --muted: #aaa9a5;
  --page-pad: clamp(1.5rem, 4vw, 4.5rem);
  --light-x: 50vw;
  --light-y: 50vh;
  --ambient-opacity: 0;
  --text-lightness: 34%;
  --glow-blur: 4px;
  --glow-opacity: 0.018;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
}

body {
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(18, 19, 21, 0.46), transparent 40%),
    linear-gradient(145deg, #010101, #040404 52%, #010101);
}

.background-depth {
  position: absolute;
  z-index: -1;
  inset: -8%;
  opacity: 0.48;
  filter: blur(11px);
  transform: scale(1.03) rotate(-1deg);
  background:
    radial-gradient(ellipse 42% 68% at 82% 35%, rgba(190, 195, 202, 0.035) 0 34%, transparent 58%),
    linear-gradient(116deg, transparent 0 54%, rgba(190, 195, 202, 0.024) 55% 68%, transparent 69%),
    linear-gradient(72deg, transparent 0 64%, rgba(255, 255, 255, 0.018) 65% 78%, transparent 79%);
  animation: depth-drift 21s ease-in-out infinite alternate;
}

.particle-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient-light {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: var(--ambient-opacity);
  background:
    radial-gradient(
      circle 18rem at var(--light-x) var(--light-y),
      rgba(194, 210, 226, 0.19) 0%,
      rgba(147, 164, 181, 0.075) 37%,
      transparent 74%
    );
  filter: blur(12px);
  transition: opacity 80ms linear;
  pointer-events: none;
}

.brand {
  position: absolute;
  z-index: 4;
  top: var(--page-pad);
  left: 50%;
  transform: translate(-50%, 0) scale(0.78);
}

.brand span {
  display: block;
  padding-left: 0.5em;
  color: rgba(243, 242, 238, 0.38);
  font-size: clamp(0.95rem, 1.55vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  white-space: nowrap;
}

.message {
  position: absolute;
  z-index: 3;
  left: var(--page-pad);
  bottom: clamp(2.5rem, 6vh, 5.2rem);
  width: min(76vw, 74rem);
  margin: 0;
  font-size: clamp(3.1rem, 6.2vw, 7.6rem);
  font-weight: 300;
  line-height: 0.89;
  letter-spacing: -0.064em;
  text-shadow: 0 0 var(--glow-blur) rgba(255, 255, 255, var(--glow-opacity));
  transition: text-shadow 100ms linear;
}

.line {
  display: block;
  width: max-content;
  max-width: 100%;
  color: hsl(40 3% var(--text-lightness));
  transition: color 110ms linear;
}

.line-three {
  opacity: 0.84;
  font-size: 1.13em;
}

.soon {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: clamp(2.7rem, 7vh, 6.2rem);
  margin: 0;
  color: rgba(243, 242, 238, 0.31);
  font-size: clamp(1rem, 1.65vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.contact-panel {
  position: absolute;
  z-index: 4;
  top: var(--page-pad);
  right: var(--page-pad);
  width: clamp(18rem, 24vw, 22rem);
  color: rgba(243, 242, 238, 0.58);
}

.contact-person {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.72rem;
}

.contact-name,
.contact-role {
  display: block;
}

.contact-name {
  color: rgba(243, 242, 238, 0.68);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.contact-role {
  color: rgba(243, 242, 238, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.15rem;
}

.contact-link {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 2.8rem;
  padding: 0.28rem 0 0.58rem;
  color: rgba(243, 242, 238, 0.5);
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    text-shadow 180ms ease;
}

.contact-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(243, 242, 238, 0.2);
  content: "";
  transform: scaleX(0.42);
  transform-origin: left;
  transition:
    background-color 180ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms ease;
}

.contact-link-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.contact-link-label,
.contact-link-value {
  display: block;
}

.contact-link-value {
  color: rgba(243, 242, 238, 0.3);
  font-size: 0.75rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.contact-link--whatsapp {
  color: rgba(243, 242, 238, 0.72);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--white);
  text-shadow: 0 0 18px rgba(228, 235, 242, 0.26);
}

.contact-link:hover::after,
.contact-link:focus-visible::after {
  background: rgba(243, 242, 238, 0.72);
  box-shadow: 0 0 14px rgba(228, 235, 242, 0.22);
  transform: scaleX(1);
}

.contact-link:focus-visible {
  outline: 2px solid rgba(243, 242, 238, 0.82);
  outline-offset: 3px;
}

.js .brand {
  top: 50%;
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(1.16);
}

.js .line,
.js .soon,
.js .contact-panel {
  opacity: 0;
  filter: blur(26px);
  transform: translateY(0.2em) scale(1.015);
}

.js .is-loaded .brand {
  animation: brand-journey 2.25s 0.18s cubic-bezier(0.65, 0, 0.12, 1) forwards;
}

.js .is-loaded .line {
  animation: focus-line 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js .is-loaded .line-one {
  animation-delay: 2.05s;
}

.js .is-loaded .line-two {
  animation-delay: 2.29s;
}

.js .is-loaded .line-three {
  animation-delay: 2.53s;
}

.js .is-loaded .soon {
  animation: focus-line 1s 3.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js .is-loaded .contact-panel {
  animation: focus-line 1s 3.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js .intro-complete .brand {
  top: var(--page-pad);
  opacity: 1;
  filter: none;
  transform: translate(-50%, 0) scale(0.78);
  animation: none;
}

.js .intro-complete .line,
.js .intro-complete .soon,
.js .intro-complete .contact-panel {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

.js .intro-complete .message,
.js .intro-complete .brand span,
.js .intro-complete .soon {
  animation: text-breathe 6.8s ease-in-out infinite;
}

.js .intro-complete .stage.particle-active .message {
  opacity: 1;
  animation-play-state: paused;
}

@keyframes brand-journey {
  0% {
    top: 50%;
    opacity: 0;
    filter: blur(12px);
    transform: translate(-50%, -50%) scale(1.16);
  }
  19% {
    top: 50%;
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
  53% {
    top: 50%;
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    top: var(--page-pad);
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0) scale(0.78);
  }
}

@keyframes focus-line {
  from {
    opacity: 0;
    filter: blur(26px);
    transform: translateY(0.2em) scale(1.015);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes text-breathe {
  0%, 100% { opacity: 0.76; }
  50% { opacity: 0.9; }
}

@keyframes depth-drift {
  from { transform: scale(1.03) rotate(-1deg) translate3d(-0.4%, 0, 0); }
  to { transform: scale(1.055) rotate(0.4deg) translate3d(0.6%, -0.8%, 0); }
}

@keyframes mobile-text-breathe {
  0%, 100% {
    opacity: 0.72;
    filter: brightness(0.94);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.018);
  }
  50% {
    opacity: 1;
    filter: brightness(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.13);
  }
}

@keyframes mobile-contact-breathe {
  0%, 100% {
    opacity: 0.76;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.02);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 1.35rem;
  }

  .message {
    bottom: 12.5rem;
    width: calc(100vw - 2.7rem);
    font-size: clamp(3rem, 14vw, 5.2rem);
    line-height: 0.92;
  }

  .line {
    width: auto;
  }

  .line-three {
    font-size: 1.06em;
  }

  .soon {
    right: auto;
    left: var(--page-pad);
    bottom: 9.75rem;
  }

  .contact-panel {
    top: auto;
    right: var(--page-pad);
    bottom: 1.3rem;
    left: var(--page-pad);
    width: auto;
    padding: 0;
  }

  .contact-person {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 0.62rem;
  }

  .contact-name {
    font-size: 0.92rem;
  }

  .contact-role {
    font-size: 0.75rem;
    text-align: right;
  }

  .contact-links {
    grid-template-columns: 1fr 1.15fr;
    gap: 0.8rem;
  }

  .contact-link {
    min-height: 3.25rem;
    padding: 0.36rem 0 0.65rem;
    color: rgba(243, 242, 238, 0.66);
  }

  .contact-link--whatsapp {
    color: rgba(243, 242, 238, 0.94);
    animation: mobile-contact-breathe 5.4s ease-in-out infinite;
  }

  .contact-link--whatsapp .contact-link-value {
    color: rgba(243, 242, 238, 0.48);
  }

  .contact-link::after {
    background: rgba(243, 242, 238, 0.28);
    transform: scaleX(1);
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .contact-panel {
    top: calc(var(--page-pad) + 3.2rem);
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .message {
    bottom: 2rem;
    font-size: clamp(2.8rem, 5.7vw, 5.8rem);
  }

  .soon {
    bottom: 2.35rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .ambient-light {
    display: none;
  }

  .js .intro-complete .message {
    animation: mobile-text-breathe 5.4s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .brand,
  .js .line,
  .js .soon,
  .js .contact-panel,
  .js .is-loaded .brand,
  .js .is-loaded .line,
  .js .is-loaded .soon,
  .js .is-loaded .contact-panel,
  .js .intro-complete .message,
  .js .intro-complete .brand span,
  .js .intro-complete .soon,
  .contact-link--whatsapp {
    animation: none;
  }

  .background-depth {
    animation: none;
  }

  .js .brand,
  .js .is-loaded .brand {
    top: var(--page-pad);
    opacity: 1;
    filter: none;
    transform: translate(-50%, 0) scale(0.78);
  }

  .js .line,
  .js .soon,
  .js .contact-panel,
  .js .is-loaded .line,
  .js .is-loaded .soon,
  .js .is-loaded .contact-panel {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
