@font-face {
  font-family: "The Seasons";
  src: url("/assets/fonts/theseasons.woff2") format("woff2"),
       url("/assets/fonts/theseasons.otf") format("opentype"),
       url("/assets/fonts/theseasons.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gap: clamp(18px, 4vw, 34px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
  color: #fff;
  font-family: "The Seasons", "Inter", system-ui, -apple-system, sans-serif;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: 4vh 20px;
}

/* Central image */
.orb {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  line-height: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* slow, breathing halo behind the mark — soft and understated */
.orb-glow {
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(255, 255, 255, 0.10) 0%,
              rgba(255, 255, 255, 0.04) 38%,
              transparent 68%);
  filter: blur(6px);
  animation: halo 7s ease-in-out infinite;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* light irradiation — soft rays radiating out around the crystal */
.orb::before {
  content: "";
  position: absolute;
  inset: -42%;
  z-index: -2;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(255, 255, 255, 0.07) 0deg 1.6deg,
      transparent 1.6deg 9deg);
  -webkit-mask: radial-gradient(circle at center,
      transparent 30%, #000 46%, transparent 76%);
  mask: radial-gradient(circle at center,
      transparent 30%, #000 46%, transparent 76%);
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
  animation: irradiate 70s linear infinite;
  transition: opacity 0.6s ease;
}

.orb-img {
  width: clamp(210px, 46vmin, 460px);
  height: auto;
  user-select: none;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.orb:hover .orb-glow { opacity: 1; transform: scale(1.06); }
.orb:hover::before { opacity: 0.8; }

/* a single expanding ring that ripples out on click — quiet, elegant */
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.orb.pop::after {
  animation: ripple 1s cubic-bezier(0.33, 1, 0.68, 1);
}

/* press scales the whole button so the image's float keeps running
   underneath — soft dip, long eased-out return (no snap) */

@keyframes ripple {
  0%   { opacity: 0.5; transform: scale(0.7); }
  100% { opacity: 0;   transform: scale(1.35); }
}

@keyframes halo {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.05); }
}

@keyframes irradiate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Reveal block */
.reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* always occupies its space so the crystal never shifts; just invisible */
.reveal { pointer-events: none; }
.reveal.show { pointer-events: auto; }

/* each child eases in independently, staggered and slow */
.reveal-text,
.socials {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(3px);
  transition: opacity 0.7s ease,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              letter-spacing 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.7s ease;
}

.reveal.show .reveal-text { transition-delay: 0.08s; }
.reveal.show .socials    { transition-delay: 0.28s; }

.reveal.show .reveal-text,
.reveal.show .socials {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-text {
  margin: 0;
  font-size: clamp(18px, 3.2vw, 28px);
  /* tracking opens up as it appears — quiet, refined */
  letter-spacing: 0.55em;
  padding-left: 0.55em; /* offset trailing tracking so it stays centered */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.reveal.show .reveal-text {
  letter-spacing: 0.2em;
  padding-left: 0.2em;
}

.socials {
  display: flex;
  gap: 22px;
}

/* icons cascade in one after another, smoothly */
.reveal.show .social:nth-child(1) { transition-delay: 0.40s; }
.reveal.show .social:nth-child(2) { transition-delay: 0.52s; }

.socials .social {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.6s ease,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease, background 0.25s ease;
}

.reveal.show .social {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.social svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.social:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* keep the hover lift winning over the reveal stagger rule */
.reveal.show .social:hover {
  transform: translateY(-2px) scale(1);
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  padding: 26px 20px 32px;
}

.social--sm {
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.55);
}

.social--sm svg {
  width: 16px;
  height: 16px;
}

.social--sm:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .orb-img,
  .orb-glow { animation: none; }
  .orb::before { animation: none; opacity: 0.4; }
  .orb.pop { animation: none; }
  .orb.pop::after { animation: none; }
  .reveal-text,
  .socials,
  .socials .social {
    transition: opacity 0.2s ease;
    transform: none;
    filter: none;
    letter-spacing: 0.2em;
  }
}
