:root {
  --upaya-pink: #e67f8e;
  --upaya-ink: #747471;
  --upaya-paper: #fbfaf8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--upaya-paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--upaya-paper);
  color: var(--upaya-ink);
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100%;
  overflow: hidden;
}

.logo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 12% 16%, rgba(230, 127, 142, 0.2), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(116, 116, 113, 0.13), transparent 30%),
    linear-gradient(145deg, #fff 0%, #fbf8f6 52%, #f6eeeb 100%);
}

.logo-stage::before,
.logo-stage::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(230, 127, 142, 0.24);
  border-radius: 50%;
  content: "";
}

.logo-stage::before {
  top: -18vw;
  right: -13vw;
  width: min(58vw, 760px);
  aspect-ratio: 1;
}

.logo-stage::after {
  bottom: -25vw;
  left: -15vw;
  width: min(52vw, 700px);
  aspect-ratio: 1;
}

.logo-glow {
  position: absolute;
  z-index: -1;
  width: min(78vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 40px 110px rgba(87, 72, 72, 0.12);
}

.brand-logo {
  width: min(88vw, 860px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 32px rgba(89, 76, 75, 0.08));
  animation: logo-arrival 1.15s cubic-bezier(0.2, 0.78, 0.25, 1) both;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.3rem, 3vw, 2.5rem);
  left: 50%;
  width: 1px;
  height: clamp(2.5rem, 7vh, 4.25rem);
  background: linear-gradient(to bottom, transparent, var(--upaya-pink), transparent);
  animation: cue-pulse 2s ease-in-out infinite;
}

.image-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #252525;
}

.image-backdrop {
  position: absolute;
  z-index: -2;
  inset: -3rem;
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(0.85);
  transform: scale(1.08);
}

.image-backdrop::after {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.36);
  content: "";
}

.image-backdrop--panorama {
  background-image: url("assets/upaya-cowork-interior.jpg");
}

.image-backdrop--local {
  background-image: url("assets/upaya-cowork-local.jpg");
}

.featured-image {
  position: relative;
  z-index: 1;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.featured-image--panorama {
  width: min(100%, 1440px);
  max-height: 100vh;
  max-height: 100svh;
}

.featured-image--local {
  width: min(100%, 100vh, 1080px);
  width: min(100%, 100svh, 1080px);
  height: min(100vw, 100vh, 1080px);
  height: min(100vw, 100svh, 1080px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.78, 0.25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logo-arrival {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cue-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(-5px);
  }
  50% {
    opacity: 1;
    transform: translateY(5px);
  }
}

@media (max-width: 700px) {
  .logo-stage {
    min-height: 88vh;
    min-height: 88svh;
    padding: 0.5rem;
  }

  .brand-logo {
    width: min(112vw, 620px);
  }

  .logo-glow {
    width: 112vw;
  }

  .image-stage--panorama {
    min-height: 62vh;
    min-height: 62svh;
  }

  .featured-image--panorama {
    width: 100%;
  }

  .image-stage--local {
    min-height: 100vh;
    min-height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-logo,
  .scroll-cue {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
