:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #ffdd2d;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/*
  Un solo track de scroll:
  1 pin sticky + altura = vídeo + 5 morphs seguidos.
  ~100vh pin + ~0.9vh scroll por beat × 6 beats ≈ 640vh
*/
.story {
  position: relative;
  /* Scroll largo: cada morph se lee con calma */
  height: 1200vh;
}

.story__pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.stage--hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) 1.25rem 2rem;
}

.hero__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 2.8vh, 1.75rem);
  width: 100%;
  max-width: 42rem;
  text-align: center;
  flex-shrink: 0;
}

.logo {
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.logo svg {
  display: block;
}

.logo:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 999px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 6.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
}

/* Subrayado tipo rotulador fosforito */
.hero__mark {
  position: relative;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(
    105deg,
    transparent 0%,
    transparent 6%,
    #ffe566 6%,
    #ffdd2d 50%,
    #ffe566 94%,
    transparent 94%
  );
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 88%;
  padding: 0 0.06em;
  margin: 0 -0.02em;
  border-radius: 0.05em;
}

/* Magnetic CTA — GreenSock azmKBBJ (magnetic only) */
.hero__cta-zone.mag-zone {
  width: 200px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0.15rem 0 0;
}

.hero__cta.mag-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #fafafa;
  overflow: hidden;
  will-change: transform;
  touch-action: manipulation;
}

.hero__cta .bg {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  z-index: 0;
  background: var(--ink);
  transform-origin: center;
  will-change: transform, background-color;
}

.hero__cta .label {
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: inline-block;
  will-change: transform, color;
}

.hero__cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.hero__cta:active .bg {
  filter: brightness(0.94);
}

.hero__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: start center;
  align-content: start;
  width: min(100%, 920px);
  margin-top: 0;
  min-height: 0;
}

.hero__video {
  display: block;
  width: 100%;
  max-height: min(52dvh, 480px);
  height: auto;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 11%,
    #000 89%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 11%,
    #000 89%,
    transparent 100%
  );
}

.hero__fallback {
  display: none;
}

.wipe {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wipe[data-wipe="0"] {
  z-index: 1;
  --wash-tint: rgba(245, 224, 138, 0.003);
  --wash-x: 50%;
  --wash-y: 10%;
}
.wipe[data-wipe="1"] {
  z-index: 2;
  --wash-tint: rgba(180, 201, 239, 0.003);
  --wash-x: 32%;
  --wash-y: 12%;
}
.wipe[data-wipe="2"] {
  z-index: 3;
  --wash-tint: rgba(232, 184, 203, 0.003);
  --wash-x: 50%;
  --wash-y: 8%;
}
.wipe[data-wipe="3"] {
  z-index: 4;
  --wash-tint: rgba(181, 220, 192, 0.003);
  --wash-x: 28%;
  --wash-y: 12%;
}
.wipe[data-wipe="4"] {
  z-index: 5;
  --wash-tint: rgba(203, 184, 228, 0.003);
  --wash-x: 68%;
  --wash-y: 12%;
}

.wipe__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Film grain elegante — textura real, blend suave (sin feTurbulence genérico) */
.wipe__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background-image: url("assets/film-grain.png");
  background-repeat: repeat;
  background-size: 280px 280px;
}

.wipe__noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("assets/film-grain.png");
  background-repeat: repeat;
  background-size: 420px 420px;
  background-position: 40% 60%;
}

.wipe__wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 96% 70% at var(--wash-x) var(--wash-y),
    var(--wash-tint) 0%,
    rgba(255, 255, 255, 0.9) 34%,
    #ffffff 64%
  );
}

.wipe__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.5rem, 6vw, 5rem);
  box-sizing: border-box;
  width: 100%;
  pointer-events: none;
}

.wipe.is-interactive .wipe__content {
  pointer-events: auto;
}

.band__kicker {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}

.band__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
}

.band__text {
  margin: 0;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.62);
}

.band__cta {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  background: var(--ink);
  color: #fafafa;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
}

.band__cta:hover {
  background: #222;
  transform: translateY(-2px);
}

.band__cta:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 640px) {
  .story {
    height: 1050vh;
  }

  .stage--hero {
    padding-top: 1rem;
  }

  .hero__video {
    max-height: min(46dvh, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .band__cta,
  .hero__cta {
    transition: none;
  }
}

/* Footer — partículas con logo */
.site-footer {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 640px);
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  display: grid;
  place-items: end center;
}

.site-footer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 0;
}

.site-footer__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 1.5rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.site-footer__copy p {
  margin: 0;
}

.site-footer__hint {
  margin-top: 0.35rem !important;
  font-size: 0.72rem;
  opacity: 0.45;
}
