:root {
  --blue: #0f1d4a;
  --blue-deep: #07122f;
  --blue-light: #315bb9;
  --white: #fff;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--blue);
}

body {
  color: var(--white);
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--blue);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,12,38,.18), transparent 46%, rgba(3,9,28,.08)),
    radial-gradient(ellipse at center, transparent 45%, rgba(2,8,27,.34) 100%);
}

.portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--blue);
  background-image: linear-gradient(90deg, rgba(15,29,74,.18) 0%, transparent 46%), url("loraza-hero.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  animation: portrait-in 2.4s ease-out both;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 76%, rgba(15,29,74,.22) 88%, #0f1d4a 100%);
  pointer-events: none;
}

#space {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero {
  position: absolute;
  z-index: 3;
  top: 72%;
  left: 50%;
  width: min(76vw, 460px);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  perspective: 900px;
}

.logo {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(154, 191, 255, .20)) drop-shadow(0 0 32px rgba(70, 124, 238, .16));
  animation: reveal 2.2s cubic-bezier(.2,.7,.2,1) both, breathe 7s ease-in-out 2.2s infinite;
}

.tagline {
  position: relative;
  z-index: 4;
  margin: clamp(25px, 4vh, 46px) 0 0;
  color: rgba(255,255,255,.82);
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(15px, 2.1vw, 22px);
  font-weight: 300;
  letter-spacing: .02em;
  opacity: 0;
  animation: text-in 1.5s ease 1.45s forwards;
}

.copyright {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(23px, env(safe-area-inset-bottom));
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255,255,255,.30);
  font-size: 9px;
  letter-spacing: .3em;
  white-space: nowrap;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(154,191,255,.20)) drop-shadow(0 0 32px rgba(70,124,238,.16)); }
}

@keyframes text-in { to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 50% { opacity: .92; transform: scale(1.012); } }
@keyframes portrait-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 640px) {
  .portrait {
    background-image: linear-gradient(0deg, rgba(7,18,47,.44) 0%, transparent 38%), url("loraza-hero.webp");
    background-position: 58% center;
  }
  .hero { top: 72%; left: 50%; width: min(78vw, 430px); transform: translate(-50%, -50%); }
  .tagline { margin-top: 28px; }
}

@media (min-width: 641px) {
  .portrait { background-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
