/* Ape In Coming Soon */

@font-face {
  font-family: "Marykate";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/marykate-regular.ttf") format("truetype");
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --yellow: #ffe81b;
  --pill-border: rgba(255, 232, 27, 0.45);
  --pill-border-hover: rgba(255, 232, 27, 0.85);
  --font-display: "Marykate", system-ui, sans-serif;
  --font-body: "Marykate", system-ui, sans-serif;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 clamp(1rem, 2vh, 1.5rem);
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 6;
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 232, 27, 0.18);
  background: rgba(0, 0, 0, 0.92);
}

.site-header__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.site-header__logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.x-link__icon {
  width: 1em;
  height: 1em;
  display: block;
}

.site-header__x {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 1rem;
}

.hero__status {
  position: relative;
  z-index: 3;
  margin-top: 2cm;
  padding-inline: 1.25rem;
  animation: status-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(0.7rem, 1.6vh, 0.9rem) clamp(1.35rem, 3.2vw, 1.85rem);
  border: 1.5px solid rgba(255, 232, 27, 0.55);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 2.1vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 232, 27, 0.06),
    0 0 24px rgba(255, 232, 27, 0.12);
  animation: pill-breathe 3.6s ease-in-out infinite;
  transition:
    border-color 0.4s ease,
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.status-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 232, 27, 0.14) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: pill-shimmer 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.status-pill__dot {
  position: relative;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e11d2e;
  box-shadow: 0 0 10px rgba(225, 29, 46, 0.7);
  animation: pill-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.status-pill__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.55);
  animation: pill-ring 1.8s ease-out infinite;
}

.status-pill__text {
  position: relative;
  z-index: 1;
}

.status-pill:hover {
  border-color: rgba(255, 232, 27, 0.9);
  background: #121212;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 232, 27, 0.12),
    0 8px 28px rgba(255, 232, 27, 0.18);
}

@keyframes status-enter {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pill-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 232, 27, 0.06),
      0 0 18px rgba(255, 232, 27, 0.1);
    border-color: rgba(255, 232, 27, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 232, 27, 0.12),
      0 0 32px rgba(255, 232, 27, 0.22);
    border-color: rgba(255, 232, 27, 0.75);
  }
}

@keyframes pill-shimmer {
  0%,
  35% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes pill-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

@keyframes pill-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero__content {
  flex: 1;
  width: 100%;
  max-width: 58rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 1.25rem;
  padding-top: clamp(1rem, 3vh, 2.5rem);
  padding-bottom: clamp(15rem, 40vh, 22rem);
}

.hero__brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: min(92vw, 48rem);
}

.hero__tagline {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.hero__title {
  position: relative;
  z-index: 2;
  margin: clamp(0.35rem, 1vh, 0.7rem) 0 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 17vw, 10rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

/* ——— Launch CTA ——— */

.launch-cta {
  position: relative;
  z-index: 4;
  margin-top: clamp(1.1rem, 2.8vh, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s;
}

.launch-cta.is-open {
  z-index: 8;
}

.launch-btn {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 1.6vh, 0.95rem) clamp(1.6rem, 3.5vw, 2.4rem);
  border: 1.5px solid rgba(255, 232, 27, 0.65);
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
  box-shadow: 0 0 20px rgba(255, 232, 27, 0.12);
}

.launch-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 232, 27, 0.16) 50%,
    transparent 75%
  );
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  z-index: 0;
}

.launch-btn__label {
  position: relative;
  z-index: 1;
}

.launch-btn:hover,
.launch-btn:focus-visible {
  border-color: var(--yellow);
  background: #121200;
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 232, 27, 0.15),
    0 10px 30px rgba(255, 232, 27, 0.2);
  outline: none;
}

.launch-btn:hover::before,
.launch-btn:focus-visible::before {
  transform: translateX(130%);
}

.launch-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  top: auto;
  width: max-content;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(0.92);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s;
  z-index: 5;
}

.launch-cta.is-open .launch-hint {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1);
}

.launch-hint__ape {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(12px) scale(0.88);
  opacity: 0;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.launch-cta.is-open .launch-hint__ape {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1);
}

.launch-hint__img {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(255, 232, 27, 0.2));
  transform-origin: 50% 100%;
  transform: translateY(6px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.launch-cta.is-open .launch-hint__img {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  animation: launch-ape-soft 2.8s ease-in-out 0.55s infinite;
}

.launch-hint__bubble {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  opacity: 0;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--yellow);
  border-radius: 0.85rem;
  background: #111;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 232, 27, 0.25);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.launch-hint__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 1.5px solid var(--yellow);
  border-bottom: 1.5px solid var(--yellow);
  background: #111;
  transform: rotate(45deg);
}

.launch-cta.is-open .launch-hint__bubble {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .launch-cta:hover .launch-hint {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .launch-cta:hover .launch-hint__ape {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .launch-cta:hover .launch-hint__img {
    transform: translateY(0);
    animation: launch-ape-soft 2.8s ease-in-out 0.55s infinite;
  }

  .launch-cta:hover .launch-hint__bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes launch-ape-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ——— Running ape track (bottom) ——— */

.ape-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(16rem, 38vh, 22rem);
  overflow: hidden;
  pointer-events: none;
  /* Soften the top edge so logos/bubbles never look hard-cut */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 100%
  );
}

.ape-track__rail {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: flex-end;
  gap: 0;
  box-sizing: border-box;
  padding-top: 5.75rem;
  padding-bottom: clamp(0.85rem, 2vh, 1.35rem);
  animation: ape-marquee var(--marquee-duration, 48s) linear infinite;
  will-change: transform;
}

.ape-track__segment {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  padding-right: clamp(1.35rem, 3vw, 2.25rem);
}

.ape-track__pack {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  flex-shrink: 0;
}

.ape-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ape-figure__bob {
  display: block;
  transform-origin: 50% 100%;
}

/* Only apes with speech bubbles jump */
.ape-figure:has(.ape-bubble) .ape-figure__bob {
  animation: ape-run 0.95s ease-in-out infinite;
}

.ape-figure--sm:has(.ape-bubble) .ape-figure__bob {
  animation-duration: 0.85s;
  animation-delay: 0s;
}

.ape-figure--md:has(.ape-bubble) .ape-figure__bob {
  animation-duration: 0.95s;
  animation-delay: -0.12s;
}

.ape-figure--md2:has(.ape-bubble) .ape-figure__bob {
  animation-duration: 0.9s;
  animation-delay: -0.4s;
}

/* Silent apes: restless FOMO / thinking sway (no jump) */
.ape-figure:not(:has(.ape-bubble)) .ape-figure__bob {
  animation: ape-fomo 2.8s ease-in-out infinite;
}

.ape-figure--sm:not(:has(.ape-bubble)) .ape-figure__bob {
  animation-delay: -0.4s;
}

.ape-figure--md:not(:has(.ape-bubble)) .ape-figure__bob {
  animation-delay: -1.1s;
}

.ape-figure--lg:not(:has(.ape-bubble)) .ape-figure__bob {
  animation-delay: -1.8s;
  animation-duration: 3.2s;
}

.ape-figure--md2:not(:has(.ape-bubble)) .ape-figure__bob {
  animation-delay: -0.7s;
}

.ape-figure--sm .ape {
  width: clamp(2.6rem, 7.5vw, 4rem);
}

.ape-figure--md .ape {
  width: clamp(3.8rem, 11vw, 5.75rem);
}

.ape-figure--lg .ape {
  width: clamp(6.25rem, 18vw, 9.5rem);
}

.ape-figure--md2 .ape {
  width: clamp(4.6rem, 13vw, 7.25rem);
}

.ape-figure--flip .ape {
  transform: scaleX(-1);
}

.ape-figure--chat + .ape-figure--chat {
  margin-left: clamp(0.35rem, 1vw, 0.75rem);
}

.ape {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 12px rgba(255, 232, 27, 0.12));
}

/* Speech windows — stay above each ape so borders never cross */
.ape-bubble {
  --bubble-x: -50%;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 5;
  padding: 0.42rem 0.7rem;
  border: 1.5px solid var(--yellow);
  border-radius: 0.85rem;
  background: #111;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.9vw, 1rem);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(255, 232, 27, 0.28);
  transform: translateX(var(--bubble-x));
  animation: bubble-bob 2.4s ease-in-out infinite;
  pointer-events: none;
}

.ape-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 1.5px solid var(--yellow);
  border-bottom: 1.5px solid var(--yellow);
  background: #111;
  transform: rotate(45deg);
}

.ape-bubble--right {
  --bubble-x: -42%;
}

.ape-bubble--left {
  --bubble-x: -58%;
}

.ape-figure--sm .ape-bubble {
  bottom: calc(100% + 0.4rem);
  font-size: clamp(0.7rem, 1.7vw, 0.9rem);
}

.ape-figure--md .ape-bubble {
  bottom: calc(100% + 0.7rem);
  animation-delay: -0.7s;
}

.ape-figure--lg .ape-bubble {
  bottom: calc(100% + 0.75rem);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.ape-figure--md2 .ape-bubble {
  bottom: calc(100% + 0.6rem);
  animation-delay: -1.1s;
}

/* Thinking / FOMO thoughts for silent apes */
.ape-think {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  z-index: 4;
  border: 1px solid rgba(255, 232, 27, 0.45);
  background: rgba(10, 10, 10, 0.94);
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 0.92;
  pointer-events: none;
  animation: think-float 3.4s ease-in-out infinite;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ape-think--dots {
  display: flex;
  gap: 0.22rem;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
}

.ape-think--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.55rem;
  border-radius: 0.7rem;
  color: rgba(255, 232, 27, 0.95);
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.45vw, 0.78rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(255, 232, 27, 0.12);
}

.ape-think--swap {
  animation: none !important;
  opacity: 0 !important;
  transform: translateX(-50%) translateY(6px) scale(0.9) !important;
}

.ape-think--enter {
  animation: think-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ape-think--dots span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 232, 27, 0.85);
  animation: think-dot 1.6s ease-in-out infinite;
}

.ape-think--dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.ape-think--dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bubble-bob {
  0%,
  100% {
    transform: translateX(var(--bubble-x)) translateY(0);
  }
  50% {
    transform: translateX(var(--bubble-x)) translateY(-5px);
  }
}

@keyframes think-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.88;
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
    opacity: 1;
  }
}

@keyframes think-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.88);
  }
  to {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes think-dot {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.ape-track__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.55rem, 1.4vh, 0.9rem);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 232, 27, 0.15) 20%,
    rgba(255, 232, 27, 0.35) 50%,
    rgba(255, 232, 27, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(255, 232, 27, 0.18);
  animation: ground-pulse 2.4s ease-in-out infinite;
}

.ape-track__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3rem, 10vw, 7rem);
  z-index: 3;
  pointer-events: none;
}

.ape-track__fade--left {
  left: 0;
  background: linear-gradient(90deg, #000 10%, transparent);
}

.ape-track__fade--right {
  right: 0;
  background: linear-gradient(270deg, #000 10%, transparent);
}

@keyframes ape-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes ape-run {
  0% {
    transform: translateY(0) rotate(-4deg) scaleX(1.05) scaleY(0.94);
  }
  25% {
    transform: translateY(-8px) rotate(5deg) scaleX(0.94) scaleY(1.06);
  }
  50% {
    transform: translateY(0) rotate(-3deg) scaleX(1.06) scaleY(0.92);
  }
  75% {
    transform: translateY(-5px) rotate(4deg) scaleX(0.95) scaleY(1.05);
  }
  100% {
    transform: translateY(0) rotate(-4deg) scaleX(1.05) scaleY(0.94);
  }
}

/* Restless FOMO: lean, peek, settle — not a jump */
@keyframes ape-fomo {
  0%,
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateX(3px) rotate(4deg) scale(1.02);
  }
  40% {
    transform: translateX(-2px) rotate(-5deg) scale(0.98);
  }
  60% {
    transform: translateX(4px) rotate(3deg) scale(1.03);
  }
  80% {
    transform: translateX(-1px) rotate(-2deg) scale(1);
  }
}

@keyframes ground-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ——— Entrance animations ——— */

.animate-in {
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-in--delay-1 {
  animation-delay: 0.12s;
}

.animate-in--delay-2 {
  animation-delay: 0.28s;
}

.animate-in--delay-3 {
  animation-delay: 0.44s;
}

.animate-in--delay-4 {
  animation-delay: 0.58s;
  transform: translateY(18px) scale(0.96);
  animation-name: fade-scale;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ——— Responsive ——— */

@media (min-width: 1100px) {
  .hero__title {
    font-size: clamp(8rem, 13vw, 11rem);
  }

  .hero__brand {
    max-width: min(92vw, 56rem);
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .site-header__logo {
    width: 2.85rem;
    height: 2.85rem;
  }

  .site-header__name {
    font-size: 1.35rem;
  }

  .site-header__x {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
  }

  .hero__status {
    margin-top: 2cm;
  }

  .status-pill {
    white-space: normal;
    text-align: center;
    letter-spacing: 0.08em;
    padding: 0.78rem 1.2rem;
    max-width: min(94vw, 22rem);
    line-height: 1.35;
    gap: 0.5rem;
    font-size: clamp(0.98rem, 3.4vw, 1.2rem);
  }

  .hero__content {
    padding-top: clamp(1rem, 4vh, 1.75rem);
    padding-bottom: clamp(15rem, 42vh, 20rem);
  }

  .hero__title {
    font-size: clamp(6.25rem, 24vw, 8.5rem);
  }

  .launch-btn {
    padding: 0.85rem 1.9rem;
    font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  }

  /* Mobile tap reveal — force visible when open, ignore sticky :hover */
  .launch-hint,
  .launch-hint__ape,
  .launch-hint__img,
  .launch-hint__bubble {
    transition: opacity 0.15s ease, visibility 0.15s ease !important;
    animation: none !important;
    filter: none;
  }

  .launch-cta.is-open .launch-hint {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) !important;
    pointer-events: auto !important;
  }

  .launch-cta.is-open .launch-hint__ape {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .launch-cta.is-open .launch-hint__img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    cursor: pointer;
  }

  .launch-cta.is-open .launch-hint__bubble {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
  }

  .hero__brand {
    width: fit-content;
    max-width: min(96vw, 48rem);
    align-items: center;
  }

  .hero__tagline {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow: visible;
  }

  .ape-track {
    height: clamp(15.5rem, 40vh, 20rem);
  }

  .ape-track__rail {
    padding-top: 4.5rem;
    padding-bottom: 1rem;
  }

  .ape-track__segment,
  .ape-track__pack {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }

  .ape-figure--sm .ape {
    width: clamp(3.4rem, 14vw, 4.5rem);
  }

  .ape-figure--md .ape {
    width: clamp(4.8rem, 19vw, 6.5rem);
  }

  .ape-figure--lg .ape {
    width: clamp(7.5rem, 30vw, 10.5rem);
  }

  .ape-figure--md2 .ape {
    width: clamp(5.6rem, 22vw, 7.75rem);
  }
}

@media (max-width: 480px) {
  .hero__status {
    margin-top: 2cm;
  }

  .hero__title {
    font-size: clamp(6rem, 26vw, 7.75rem);
  }

  .hero__content {
    padding-bottom: clamp(16rem, 44vh, 19rem);
  }

  .ape-track {
    height: clamp(16.5rem, 42vh, 19.5rem);
  }

  .ape-figure--sm .ape {
    width: 3.6rem;
  }

  .ape-figure--md .ape {
    width: 5.4rem;
  }

  .ape-figure--lg .ape {
    width: 8.75rem;
  }

  .ape-figure--md2 .ape {
    width: 6.4rem;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .hero__status {
    margin-top: 0.5rem;
  }

  .hero__content {
    padding-top: 1rem;
    padding-bottom: 8rem;
  }

  .hero__title {
    font-size: clamp(3rem, 12vh, 5.5rem);
  }

  .ape-track {
    height: 8.5rem;
  }

  .ape-track__rail {
    padding-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .animate-in--delay-4,
  .ape-track__rail,
  .ape-figure__bob,
  .ape-bubble,
  .ape-think,
  .ape-think--dots span,
  .status-pill,
  .status-pill::before,
  .status-pill__dot,
  .status-pill__dot::after,
  .hero__status,
  .launch-hint__ape,
  .launch-hint__img,
  .launch-hint__bubble,
  .ape-track__ground {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .launch-hint,
  .launch-hint__ape,
  .launch-hint__img,
  .launch-hint__bubble {
    transition: none;
  }

  .ape-figure--flip .ape {
    transform: scaleX(-1);
  }

  .status-pill,
  .launch-btn {
    transition: none;
  }
}
