/* ================= RESET + CURSOR ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("image/cursor.cur"), auto;
}

button,
a {
  cursor: url("image/cursor.cur"), pointer;
}

html, body {
  height: 100%;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("image/hero.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;

  /* Grid avoids transform-based centering (prevents arc on iOS) */
  display: grid;
  place-items: center;
}

/* subtle overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.10);
  pointer-events: none;
}

/* ================= LOGO (TRUE SLIDE UP) ================= */
:root {
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Default: logo sits LOWER than center */
.logo-button {
  z-index: 5;
  background: transparent;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;

  /* START LOWER */
  margin-top: 160px;

  /* Smooth vertical slide */
  transition:
    margin-top 1.6s var(--ease-soft),
    opacity 0.6s ease;

  opacity: 1;
  will-change: margin-top;
}

.logo-button img {
  width: 260px;
  max-width: 80vw;
  height: auto;
  display: block;

  transition: width 1.6s var(--ease-soft);
}

/* Activated: logo SLIDES UP to the top */
.hero.active {
  align-items: start;
  padding-top: 22px;
}

.hero.active .logo-button {
  margin-top: 0; /* slide destination */
}

.hero.active .logo-button img {
  width: 140px;
}

/* ================= LANDING TEXT ================= */
.tagline-wrap {
  position: absolute;
  inset: 0;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 1.1s var(--ease-soft);
  transition-delay: 0.35s;
}

.tagline {
  width: 720px;
  max-width: 90vw;
  height: auto;
  display: block;
}

.hero.active .tagline-wrap {
  opacity: 1;
}

/* ================= INSTAGRAM ================= */
.instagram-link {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.7s var(--ease-soft);
  transition-delay: 0.45s;
}

.instagram-link img {
  width: 28px;
  height: auto;
  display: block;
}

.hero.active .instagram-link {
  opacity: 0.85;
  pointer-events: auto;
}

.instagram-link:hover {
  opacity: 1;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .logo-button {
    margin-top: 120px; /* start slightly higher on mobile */
  }

  .logo-button img {
    width: 220px;
  }

  .hero.active {
    padding-top: 18px;
  }

  .hero.active .logo-button img {
    width: 120px;
  }

  .tagline {
    width: 320px;
    max-width: 85vw;
  }

  .instagram-link img {
    width: 24px;
  }
}

/* ================= REDUCE MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  .logo-button,
  .logo-button img,
  .tagline-wrap,
  .instagram-link {
    transition: none !important;
  }
}
