:root {
  --black: #0e0e0c;
  --cream: #f2ecdb;
  --cream-dim: #cfc8b4;
  --navy: #1a14a0;
  --red: #e8452c;
  --line: rgba(242, 236, 219, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot { display: none; }
}

a, button { cursor: none; }
@media (hover: none) { a, button { cursor: pointer; } }

.display {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}

.hand {
  font-family: 'Caveat', cursive;
  text-transform: none;
  letter-spacing: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* -------- Grain overlay -------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.8s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); }
  75% { transform: translate(-1%,2%); }
  100% { transform: translate(2%,-1%); }
}

/* -------- Cursor custom -------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease;
}
.cursor-dot.big { width: 46px; height: 46px; }

/* -------- Marquee -------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  user-select: none;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 22s linear infinite;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.marquee-inner span { margin: 0 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee.cream-strip {
  background: var(--cream);
  color: var(--black);
  border: none;
  transform: rotate(-1.2deg);
  margin: 0 -10px;
}

/* -------- Nav -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
}
.nav .logo {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: var(--cream);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 24px;
  mix-blend-mode: difference;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: inherit; text-decoration: none; mix-blend-mode: difference; }
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 68vw;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { mix-blend-mode: normal; }
}

/* -------- Hero -------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 40px;
  position: relative;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero-title {
  font-size: clamp(4.5rem, 18vw, 12rem);
  display: flex;
}
.hero-letter {
  display: inline-block;
  transition: transform .15s ease, color .15s ease;
  user-select: none;
}
.hero-letter:hover {
  transform: translateY(-14px) rotate(-4deg);
  color: var(--red);
}
.hero-letter.bounce {
  animation: letter-bounce .4s ease;
}
@keyframes letter-bounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(-26px) rotate(5deg) scale(1.08); }
  100% { transform: translateY(0); }
}
.hero-hint {
  margin-top: 10px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--cream-dim);
  transform: rotate(-2deg);
}
.hero .tagline {
  margin-top: 22px;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--cream-dim);
  max-width: 460px;
}
.hero .scroll-cue {
  position: absolute;
  bottom: 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* -------- Photo (sticker style) -------- */
.photo-section {
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
  position: relative;
}
.photo-sticker {
  display: inline-block;
  position: relative;
  transform: rotate(-2.5deg);
  transition: transform .25s ease, filter .25s ease;
  user-select: none;
}
.photo-sticker img {
  display: block;
  width: min(420px, 78vw);
  border: 4px solid var(--cream);
  border-radius: 18px;
  filter: grayscale(1) contrast(1.15);
  transition: inherit;
  pointer-events: none;
}
.photo-sticker .tape {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  width: 120px;
  height: 34px;
  background: rgba(242,236,219,0.35);
  backdrop-filter: blur(1px);
}
.photo-note {
  margin-top: 26px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--cream-dim);
  transform: rotate(-1deg);
}
.photo-note .count { color: var(--red); }

/* -------- Section heads -------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head .idx {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  opacity: 0.5;
}
.section-head h2.display { font-size: clamp(2.2rem, 6vw, 3.6rem); }

/* -------- Music (cream block) -------- */
.music-block {
  background: var(--cream);
  color: var(--black);
  padding-top: 90px;
  padding-bottom: 90px;
  transform: rotate(-0.6deg) scale(1.01);
}
.music-block > .container { transform: rotate(0.6deg); }
.music-block .idx { opacity: 0.5; }

.tracks { display: flex; flex-direction: column; }
.track {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(14,14,12,0.15);
}
.track:first-child { border-top: 1px solid rgba(14,14,12,0.15); }
.vinyl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: radial-gradient(circle at center, var(--cream) 0 18%, var(--black) 19% 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
}
.vinyl.spinning { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.track-play {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.track-info { min-width: 0; }
.track-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-subtitle { font-size: 13px; opacity: 0.6; margin-top: 2px; }
.track-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  opacity: 0.6;
  min-width: 40px;
  text-align: right;
}
.empty-state {
  padding: 30px 0 10px;
  opacity: 0.75;
  font-size: 15px;
}

/* -------- Mini teclado -------- */
.pads-hint {
  margin-top: 40px;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  transform: rotate(-1.5deg);
  display: inline-block;
}
.pads {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pad {
  width: 52px;
  height: 64px;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: transparent;
  color: var(--black);
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  transition: transform .08s ease, background .08s ease;
  user-select: none;
}
.pad.active, .pad:active {
  background: var(--black);
  color: var(--cream);
  transform: translateY(3px) scale(0.97);
}

/* -------- Links -------- */
.links-section { padding-top: 110px; padding-bottom: 110px; }
.links-list { display: flex; flex-direction: column; }
.link-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, color .18s ease, letter-spacing .18s ease;
}
.link-row:first-child { border-top: 1px solid var(--line); }
.link-row small {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  text-transform: none;
  opacity: 0.55;
}
.link-row:hover {
  color: var(--red);
  transform: rotate(-1deg) translateX(10px);
  letter-spacing: 0.04em;
}

/* -------- Notify (navy block) -------- */
.notify-block {
  background: var(--navy);
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
  transform: rotate(0.6deg) scale(1.01);
}
.notify-block > .container { transform: rotate(-0.6deg); }
.notify-block .eyebrow { color: var(--cream-dim); }
.notify-block h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.notify-block p { color: var(--cream-dim); margin: 20px auto 0; max-width: 420px; }
.notify-block .hand-note {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
  color: var(--cream-dim);
  transform: rotate(-1.5deg);
}

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 30px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-form input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--cream);
  font-size: 15px;
  font-family: inherit;
}
.notify-form input[type=email]::placeholder { color: var(--cream-dim); }
.notify-form input[type=email]:focus { outline: none; border-color: var(--cream); }
.btn {
  padding: 16px 30px;
  border-radius: 100px;
  border: none;
  background: var(--cream);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
  transition: transform .12s ease;
}
.btn:hover { transform: rotate(-2deg) scale(1.04); }
.notify-msg { margin-top: 18px; font-size: 14px; min-height: 20px; }
.notify-msg.ok { color: #9fe8b1; }
.notify-msg.err { color: #ffabab; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* -------- Footer -------- */
footer {
  padding-top: 60px;
  padding-bottom: 34px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.footer-grid a { opacity: 0.7; color: inherit; text-decoration: none; }
.footer-grid a:hover { opacity: 1; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-secret {
  margin-top: 34px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.35;
  user-select: none;
}

/* -------- Boton caos -------- */
.chaos-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--cream);
  font-size: 20px;
  transition: transform .3s ease;
}
.chaos-btn:hover { transform: rotate(180deg) scale(1.15); }

/* -------- MODO CAOS -------- */
body.caos { --black: #1a14a0; --cream: #f2ecdb; --navy: #e8452c; }
body.caos .music-block { transform: rotate(1.8deg) scale(1.01); background: var(--red); color: var(--cream); }
body.caos .music-block .pad { border-color: var(--cream); color: var(--cream); }
body.caos .music-block .pad.active, body.caos .music-block .pad:active { background: var(--cream); color: var(--red); }
body.caos .music-block .vinyl { border-color: var(--cream); }
body.caos .music-block .track, body.caos .music-block .track:first-child { border-color: rgba(242,236,219,0.3); }
body.caos .photo-sticker { transform: rotate(4deg) scale(1.05); }
body.caos .photo-sticker img { filter: grayscale(0) saturate(1.6) hue-rotate(15deg) contrast(1.1); }
body.caos .hero-letter { animation: letter-party 0.9s ease infinite alternate; }
body.caos .hero-letter:nth-child(2) { animation-delay: .15s; }
body.caos .hero-letter:nth-child(3) { animation-delay: .3s; }
body.caos .hero-letter:nth-child(4) { animation-delay: .45s; }
@keyframes letter-party {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-18px) rotate(3deg); color: var(--red); }
}
body.caos .marquee-inner { animation-duration: 7s; }
body.caos .link-row:hover { transform: rotate(2deg) translateX(-10px) scale(1.02); }

@media (max-width: 720px) {
  .track { grid-template-columns: 48px 1fr; }
  .track-time { display: none; }
}
