/* SVAYA — Logo reveal launch (svaya.org) */

:root {
  --paper: #ffffff;
  --ink: #3a342c;
  --ink-soft: rgba(58, 52, 44, 0.62);
  --gold: #b58a4f;
  --gold-deep: #8f6c3a;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: none;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--paper);
  background-image: none;
}

@supports (-webkit-touch-callout: none) {
  html {
    height: -webkit-fill-available;
  }

  body {
    min-height: -webkit-fill-available;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Plain pure white stage */
.stage {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

.stage-wash,
.stage-grain,
.stage-glow {
  display: none;
}

/* Launch composition */
.launch {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(env(safe-area-inset-top, 0px), clamp(1.25rem, 4dvh, 2.5rem))
    max(env(safe-area-inset-right, 0px), clamp(1.25rem, 5vw, 2.5rem))
    max(env(safe-area-inset-bottom, 0px), clamp(1.25rem, 4dvh, 2.5rem))
    max(env(safe-area-inset-left, 0px), clamp(1.25rem, 5vw, 2.5rem));
  text-align: center;
}

.logo-reveal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(18.5rem, 58vw);
  margin: 0 auto;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.9) translateY(18px);
  animation: logoReveal 1.65s var(--ease-reveal) var(--delay, 0s) forwards;
}

.logo-bloom {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(181, 138, 79, 0.18) 0%,
    rgba(181, 138, 79, 0.06) 45%,
    transparent 70%
  );
  opacity: 0;
  transform: scale(0.7);
  animation: bloomPulse 2.4s var(--ease-reveal) 1s forwards;
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.statement {
  margin: clamp(1.75rem, 4.5vw, 2.5rem) auto 0;
  max-width: 22rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(12px);
  animation: copyIn 1.1s var(--ease-reveal) var(--delay, 0s) forwards;
}

.status {
  margin: 1.1rem 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateY(10px);
  animation: copyIn 1s var(--ease-reveal) var(--delay, 0s) forwards;
}

.social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: clamp(1.75rem, 4vw, 2.35rem);
  opacity: 0;
  transform: translateY(10px);
  animation: copyIn 1s var(--ease-reveal) var(--delay, 0s) forwards;
}

.social-link {
  color: rgba(143, 108, 58, 0.55);
  transition: color 0.4s var(--ease-reveal), transform 0.4s var(--ease-reveal);
}

.social-link:hover {
  color: var(--gold-deep);
  transform: translateY(-2px);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.9) translateY(18px);
  }
  55% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
}

@keyframes bloomPulse {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  45% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 700px) {
  .logo-reveal {
    width: min(14.5rem, 46vw);
  }

  .statement {
    margin-top: 1.15rem;
    font-size: 1.05rem;
  }

  .social {
    margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-reveal,
  .logo-bloom,
  .statement,
  .status,
  .social {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .logo-bloom {
    opacity: 0.4;
  }

  .social-link:hover {
    transform: none;
  }
}
