:root {
  /* PALETA: celeste + cereza
     --paper fondo · --ink texto · --red acento (bloques, detalles)
     --pop acento sobre fondo negro · --on-red texto sobre bloques de acento */
  --paper: #abd7e9;
  --ink: #141414;
  --red: #7c2c3a;
  --pop: #abd7e9;
  --on-red: #abd7e9;
  --shead-n: #e3f2f8;
  --ph: #99c4d6;
  --mute: #77716a;
  --line: rgba(15, 15, 15, .18);
  --gut: clamp(16px, 2.2vw, 32px);
  --cond: "Archivo", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
.cmp-wrap > *, .proj__head > *, .intro > * { min-width: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--cond);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--paper); }

/* ---------- type helpers ---------- */
.cap {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .82;
  letter-spacing: -.01em;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gut);
  color: var(--ink);
  transition: color .3s;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
}
/* barra con fondo (semi-transparente + desenfoque) para que no se encime con el contenido */
.bar:not(.is-open) { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .3s, background-color .3s; }
.bar.on-red:not(.is-open) { background: color-mix(in srgb, var(--red) 92%, transparent); }
.bar.on-dark:not(.is-open) { background: color-mix(in srgb, var(--ink) 90%, transparent); }
.bar.on-dark { color: var(--paper); }
.bar.on-red { color: var(--on-red); }
.bar.on-red .bar__nav a.is-active { color: var(--shead-n); } .bar.on-dark .bar__logo { color: var(--paper); }
.bar__logo { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 22px; letter-spacing: .01em; }
.bar__nav { display: flex; gap: 22px; }
.bar__nav a { position: relative; }
.bar__nav a sup { font-size: 9px; margin-right: 4px; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.bar__nav a:hover::after, .bar__nav a.is-active::after { transform: scaleX(1); }
.bar__nav { margin-left: auto; }
.bar__lang { display: flex; align-items: center; gap: 6px; }
.bar__lang button { font-family: var(--mono); font-size: 12px; opacity: .45; padding: 2px 0; transition: opacity .2s; }
.bar__lang button:hover { opacity: .8; }
.bar__lang button.is-on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.bar__lang span { opacity: .45; }
.bar__menu { display: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }

/* ---------- hero ---------- */
/* portada estilo tapa editorial: foto en píldora · año · nombre gigante en una línea · bio chica debajo */
.hero {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr;
  column-gap: var(--gut); row-gap: 26px; padding: 92px var(--gut) 7vh; color: var(--red); overflow: hidden;
}
.hero > :not(.hero__clouds) { position: relative; z-index: 1; }
/* foto completa dentro de un óvalo vertical */
.hero__pic {
  grid-column: 1 / 4; grid-row: 1 / 3; align-self: start;
  aspect-ratio: 3 / 4; border-radius: 50%; overflow: hidden; background: #f4ece0;
}
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero__pic:hover img { transform: scale(1.04); }
/* nombre y bio comparten el mismo borde izquierdo, al costado de la foto */
.hero__name {
  grid-column: 4 / -1; grid-row: 1; justify-self: start; white-space: nowrap;
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 15.4vw, 300px); line-height: .78; letter-spacing: -.015em;
  margin-left: -.05em; /* compensa el aire de la "M" para que quede alineada con la bio */
}
.hero__bio {
  grid-column: 4 / 10; grid-row: 2; align-self: start; max-width: 60ch;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; font-stretch: 90%;
}
.hero__yr { grid-column: 11 / -1; grid-row: 2; align-self: start; justify-self: end; text-align: right; }

/* nubes: manchas blancas difuminadas, baja opacidad, se mueven muy lento (sólo en la portada) */
.hero__clouds { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__clouds i {
  position: absolute; border-radius: 50%; background: #fff; opacity: .6; filter: blur(24px);
  animation: cloud 70s ease-in-out infinite alternate;
  /* cada nube = varios "bollos" superpuestos para que tenga forma de nube */
  box-shadow: 4vw -1.6vw 0 .4vw #fff, 9vw -.4vw 0 -.2vw #fff, -3vw .6vw 0 -.6vw #fff;
}
.hero__clouds i:nth-child(1) { width: 16vw; height: 4.6vw; left: 4%; top: 18%; }
.hero__clouds i:nth-child(2) { width: 12vw; height: 3.6vw; left: 30%; top: 66%; opacity: .5; animation-duration: 90s; }
.hero__clouds i:nth-child(3) { width: 15vw; height: 4.2vw; left: 52%; top: 12%; animation-duration: 80s; }
.hero__clouds i:nth-child(4) { width: 13vw; height: 4vw; left: 80%; top: 40%; opacity: .55; }
.hero__clouds i:nth-child(5) { width: 18vw; height: 5vw; left: 58%; top: 78%; opacity: .45; animation-duration: 100s; }
.hero__clouds i:nth-child(6) { width: 10vw; height: 3vw; left: 86%; top: 8%; opacity: .5; animation-duration: 85s; }
.hero__clouds i:nth-child(7) { width: 12vw; height: 3.6vw; left: 14%; top: 84%; opacity: .45; animation-duration: 95s; }
@keyframes cloud { to { translate: 9vw 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grano de película: queda DETRÁS del contenido (fotos y videos lo tapan) */
:root {
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .16;
  background-image: var(--noise); animation: grain 1s steps(6) infinite;
}
main { position: relative; z-index: 1; }
/* en los bloques de color sólido el grano va como textura propia del fondo */
.shead, .contact { isolation: isolate; }
.shead::before, .contact::before {
  content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .16;
  background-image: var(--noise); animation: grain 1s steps(6) infinite;
}
.contact { position: relative; overflow: hidden; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(-2%, 6%); }
}
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- intro + index ---------- */
.intro { position: relative; padding: 0 var(--gut) 12vh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); }
.intro__k {
  grid-column: 3 / 12; margin-bottom: .3em; color: var(--red); font-family: var(--cond); font-stretch: 62%; font-weight: 800;
  font-size: clamp(30px, 3.4vw, 56px); line-height: .9; padding-top: .15em; white-space: nowrap; text-transform: uppercase;
}
.sec:has(.folder) { padding-bottom: 90px; }
.intro__txt {
  grid-column: 3 / 12; font-size: clamp(30px, 4.6vw, 76px); font-weight: 500; font-stretch: 75%;
  line-height: .98; letter-spacing: -.015em; text-indent: 12%;
}
.intro__txt em { font-style: normal; color: var(--red); }
/* sobre mí: bio + ficha */
.about { grid-column: 3 / -1; margin-top: 7vh; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: var(--gut) calc(var(--gut) * 2); align-items: center; }
/* retrato duotono enmarcado como estampilla: flota suave; al pasar el mouse "tiembla" como stop motion */
.about__pic { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(0,0,0,.16)); }
.about__pic:hover { animation: boil .36s steps(2) infinite; }
.stamp {
  --r: 7px;
  background: #f4ece0; padding: calc(var(--r) * 2.6) calc(var(--r) * 2.6) 0;
  /* bordes troquelados */
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(var(--r) * -1.5) calc(var(--r) * -1.5) / calc(var(--r) * 3) calc(var(--r) * 3),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--r) * 3) calc(100% - var(--r) * 3);
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(var(--r) * -1.5) calc(var(--r) * -1.5) / calc(var(--r) * 3) calc(var(--r) * 3),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--r) * 3) calc(100% - var(--r) * 3);
}
.stamp__in { aspect-ratio: 4 / 5; overflow: hidden; outline: 1px solid var(--red); outline-offset: -1px; background: #f4ece0; }
.stamp__in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.stamp__cap { display: flex; justify-content: space-between; color: var(--red); padding: 10px 2px calc(var(--r) * 2.8); }
@keyframes float { 50% { transform: translateY(-8px) rotate(-.6deg); } }
@keyframes boil {
  0% { transform: rotate(-1.2deg) translate(-2px, 1px); }
  50% { transform: rotate(1deg) translate(2px, -1px); }
  100% { transform: rotate(-.4deg) translate(0, 2px); }
}
.about__bio p { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; font-stretch: 90%; max-width: 62ch; }
.index { grid-column: 1 / -1; list-style: none; margin-top: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: var(--gut);
  padding: 10px 0 4px; transition: color .25s, padding .35s;
}
.index__n { font-family: var(--mono); font-size: 12px; }
.index__t { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(54px, 9vw, 150px); line-height: .85; letter-spacing: -.01em; }
.index__c { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.index a:hover { color: var(--red); padding-left: 24px; }
.index__peek {
  position: fixed; left: 0; top: 0; width: 180px; aspect-ratio: 4/5; object-fit: cover;
  pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg);
  transition: opacity .25s, transform .35s;
}
.index__peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
/* objetos recortados (png): sin marco, se balancean en 3D (provisorio hasta tener el giro 360°) */
.index__peek.is-cutout { width: 230px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.index__peek.is-cutout.is-on { transform: translate(-50%, -50%) perspective(700px); animation: sway 3.2s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: translate(-50%, -50%) perspective(700px) rotateY(-28deg) rotateZ(-2deg); }
  50% { transform: translate(-50%, -50%) perspective(700px) rotateY(28deg) rotateZ(2deg); }
}

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; padding: 10px 0 6px; }
.marquee__in { display: inline-block; animation: marq 40s linear infinite; }
.marquee span { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 34px; padding-right: 28px; }
.marquee span.r { color: var(--pop); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.shead {
  background: var(--red); color: var(--on-red); padding: 90px var(--gut) var(--gut);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); row-gap: 40px;
  position: relative; overflow: hidden;
}
.shead__n { grid-column: 1 / 4; font-stretch: 62%; font-weight: 800; font-size: clamp(120px, 22vw, 380px); line-height: .76; color: var(--shead-n); }
.shead__t { grid-column: 4 / -1; align-self: end; font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 11.5vw, 200px); line-height: .8; letter-spacing: -.01em; }
.shead__sub { grid-column: 1 / -1; display: flex; gap: 6px 28px; flex-wrap: wrap; border-top: 1px solid currentColor; padding-top: 10px; }
.shead__sub a:hover { color: var(--shead-n); }

/* ---------- groups & projects ---------- */
.group { padding: 0 var(--gut); }
.group__t {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 70px 0 10px; border-bottom: 1px solid var(--ink); color: var(--red);
}
/* carpetas */
.folder { border-bottom: 1px solid var(--ink); }
.folder:first-of-type { margin-top: 50px; border-top: 1px solid var(--ink); }
.folder__head {
  width: 100%; display: grid; grid-template-columns: 90px 1fr auto auto 60px; align-items: center; gap: var(--gut);
  padding: 14px 0 10px; text-align: left; transition: color .25s;
}
.folder__t { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 8vw, 132px); line-height: .85; letter-spacing: -.01em; transition: transform .4s; }
.folder__cover { width: 0; height: clamp(70px, 8vw, 130px); aspect-ratio: 4/5; overflow: hidden; opacity: 0; transition: width .45s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.folder__cover video, .folder__cover img { width: 100%; height: 100%; object-fit: cover; }
.folder__head:hover .folder__cover, .folder.is-open .folder__cover { width: clamp(56px, 6.4vw, 104px); opacity: 1; }
.folder__x { justify-self: end; font-stretch: 62%; font-weight: 300; font-size: clamp(48px, 6vw, 96px); line-height: .8; transition: transform .4s, color .25s; }
.folder__head:hover { color: var(--red); }
.folder__head:hover .folder__t { transform: translateX(14px); }
.folder.is-open .folder__x { transform: rotate(45deg); color: var(--red); }
.folder__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s cubic-bezier(.2,.7,.2,1); }
.folder.is-open .folder__body { grid-template-rows: 1fr; }
.folder__in { overflow: hidden; min-height: 0; }

/* barra-ficha que abre cada proyecto */
.proj__bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 12px;
  margin: 0 calc(var(--gut) * -1) 40px; padding: 8px var(--gut) 6px;
  background: var(--ink); color: var(--paper);
}
.proj__bar-n::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; background: var(--red); vertical-align: 0; }
.proj__bar-w { text-align: center; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.proj__bar-c { text-align: right; color: var(--pop); }
.proj + .proj { margin-top: 70px; }
.folder__in > .proj:first-child, .group > .proj:first-child { margin-top: 30px; }
.proj { padding: 0 0 70px; }
.proj:last-child { border-bottom: 0; }
.proj__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); row-gap: 18px; margin-bottom: 30px; }
.proj__title { grid-column: 1 / 8; }
.proj__client { white-space: pre-line; font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 8.5vw, 140px); line-height: .82; letter-spacing: -.01em; }
.proj__client.is-long { font-size: clamp(44px, 6.2vw, 104px); }
@media (min-width: 901px) { .proj__client.is-long { white-space: pre; } }
.proj__song { margin-top: 8px; color: var(--red); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 78px); line-height: .85; }
.proj__sub { margin-top: 10px; color: var(--red); }
.proj__meta { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.proj__desc { font-size: 18px; line-height: 1.3; font-stretch: 90%; max-width: 46ch; }
.proj__credits { display: grid; grid-template-columns: auto 1fr; gap: 3px 18px; }
.proj__credits dt { color: var(--mute); }
.badge { align-self: flex-start; background: var(--ink); color: var(--paper); padding: 5px 8px 4px; }
.todo {
  border: 1px dashed var(--red); color: var(--red); padding: 8px 10px 7px; max-width: 46ch;
}
.todo::before { content: "Por completar — "; font-weight: 500; }
/* notas internas "Por completar": ocultas en la web (quedan en data.js como recordatorio). Tecla N las muestra */
.todo { display: none; }
body.show-todo .todo { display: block; }

/* franja de destacados (prueba) */
.feat { overflow: hidden; padding: 0 0 7vh; }
.feat__track { display: flex; gap: 10px; width: max-content; animation: featmove 60s linear infinite; }
.feat:hover .feat__track { animation-play-state: paused; }
@keyframes featmove { to { transform: translateX(calc(-50% - 5px)); } }
.feat__item { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; width: min-content; }
.feat__l { white-space: normal; }
.feat__m { display: block; height: clamp(150px, 24vh, 240px); aspect-ratio: var(--ar, 4/5); overflow: hidden; background: var(--ph); }
.feat__m img, .feat__m video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feat__item:hover img, .feat__item:hover video { transform: scale(1.05); }
.feat__l { color: var(--red); }

/* strip */
.strip { position: relative; margin: 0 calc(var(--gut) * -1); }
.strip__track {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gut) 14px; scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip__track.is-drag * { pointer-events: none; }
.strip .m { flex: 0 0 auto; height: min(64vh, 640px); aspect-ratio: var(--ar, 9/16); scroll-snap-align: start; }
.strip__ui { display: flex; align-items: center; gap: 16px; padding: 6px var(--gut) 0; }
.strip__bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.strip__bar i { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); width: 20%; }
.strip__btn { font-family: var(--mono); font-size: 14px; width: 34px; height: 26px; border: 1px solid var(--ink); }
.strip__btn:hover { background: var(--ink); color: var(--paper); }

/* media tile */
.m { position: relative; overflow: hidden; background: var(--ph); cursor: zoom-in; }
.m img, .m video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.m:hover img, .m:hover video { transform: scale(1.035); }
.m__n { position: absolute; left: 8px; top: 7px; color: var(--paper); mix-blend-mode: difference; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.grid .m { grid-column: span 3; aspect-ratio: var(--ar, 16/9); }
.grid .m:first-child:nth-last-child(1) { grid-column: 2 / 6; }
.grid .m:first-child:nth-last-child(n+5) { grid-column: 1 / -1; }

/* masonry */
.masonry { columns: 4 260px; column-gap: 10px; }
.masonry .m { margin-bottom: 10px; break-inside: avoid; aspect-ratio: var(--ar, 3/2); }

/* film */
.film { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film--yt { cursor: pointer; }
.film__cover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); color: var(--paper); transition: opacity .4s;
}
.film__play {
  display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; border-radius: 50%;
  background: var(--red); color: var(--on-red); font-stretch: 62%; font-weight: 800; font-size: 26px; text-transform: uppercase;
  transition: transform .35s;
}
.film:hover .film__play { transform: scale(1.08); }
.film__lbl { position: absolute; left: 16px; bottom: 14px; }
.film.is-playing .film__cover { opacity: 0; pointer-events: none; }
.film__err { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--paper); text-align: center; padding: 20px; }
.film.is-err .film__err { display: flex; }
.film.is-err .film__cover { display: none; }

/* canciones (La Joaqui): visual central + desplegable de assets */
.songs { display: flex; flex-direction: column; }
.songs__nav { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 22px; padding-bottom: 10px; }
.songs__lbl { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 40px); line-height: .9; }
.songs__lbl b { color: var(--red); }
.songs__lbl .cap { font-stretch: 100%; font-weight: 400; color: var(--mute); }
.songs__tabs { display: flex; gap: 4px; }
.songs__tabs button { padding: 5px 8px 4px; border: 1px solid var(--ink); }
.songs__tabs button:hover { background: var(--ink); color: var(--paper); }
.songs__tabs button.is-on { background: var(--red); border-color: var(--red); color: var(--on-red); }
.songs__arrows { display: flex; gap: 6px; }
.song { display: none; }
.song.is-active { display: block; animation: songIn .5s ease; }
@keyframes songIn { from { opacity: 0; } }
/* pantalla entera (sin recorte), con la proporción real del video y una altura contenida */
.song__main { position: relative; aspect-ratio: var(--ar, 16/9); width: min(100%, calc(62vh * var(--r, 1.7778))); margin: 0 auto; background: #000; overflow: hidden; cursor: pointer; }
.song__main video { width: 100%; height: 100%; object-fit: contain; }
.song__n { position: absolute; left: 12px; top: 10px; color: var(--pop); }
.song__snd { position: absolute; right: 12px; top: 10px; color: var(--pop); opacity: .8; }
.song__main.is-sound .song__snd { text-decoration: line-through; }
/* barra para adelantar */
.song__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.6)); cursor: default;
  opacity: .85; transition: opacity .25s;
}
.song__main:hover .song__bar { opacity: 1; }
.song__time { color: var(--pop); white-space: nowrap; min-width: 92px; text-align: right; }
.song__seek {
  --p: 0%;
  flex: 1; height: 16px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.song__seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--pop) var(--p), rgba(255,255,255,.28) var(--p)); }
.song__seek::-moz-range-track { height: 3px; background: rgba(255,255,255,.28); }
.song__seek::-moz-range-progress { height: 3px; background: var(--pop); }
.song__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--red); border: 2px solid var(--pop); }
.song__seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--pop); }
.song__assets { border-bottom: 1px solid var(--ink); }
.song__toggle {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 0 10px; text-align: left; border-bottom: 1px solid var(--line);
  font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: 0;
}
.song__toggle > span:nth-child(2) { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.song .m { cursor: default; }
.song .m:hover img, .song .m:hover video { transform: none; }
.song__in .strip { margin-top: 14px; margin-bottom: 16px; }
/* fotos del show en vivo */
.live { margin-top: 34px; }
.live__grid { display: flex; gap: 10px; margin-top: 14px; }
.live__m { height: clamp(260px, 46vh, 520px); aspect-ratio: var(--ar, 3/4); flex: 0 0 auto; }
.strip--mini .m { height: clamp(130px, 17vh, 190px); }

/* compare */
.cmp-wrap { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: start; }
.cmp {
  --x: 50%;
  position: relative; justify-self: center; overflow: hidden; background: var(--ph);
  aspect-ratio: var(--ar); width: min(100%, calc(80vh * var(--r))); touch-action: pan-y; cursor: ew-resize;
  user-select: none;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__top { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--red); pointer-events: none; }
.cmp__knob {
  position: absolute; top: 50%; left: var(--x); translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%;
  background: var(--red); color: var(--on-red); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; pointer-events: none;
}
.cmp__tag { position: absolute; top: 10px; padding: 4px 7px 3px; background: var(--ink); color: var(--paper); pointer-events: none; }
.cmp__tag--l { left: 10px; background: var(--red); color: var(--on-red); }
.cmp__tag--r { right: 10px; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.cmp.is-single { cursor: default; }
.cmp.is-single .cmp__top { clip-path: none; }
.cmp.is-single :is(.cmp__line, .cmp__knob, .cmp__tag, input) { display: none; }
.cmp.is-hint .cmp__knob { animation: knob 1.4s ease-in-out 2; }
@keyframes knob { 50% { transform: translateX(-30px); } }
.cmp-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 80vh; overflow-y: auto; scrollbar-width: thin; }
.cmp-thumbs button { position: relative; opacity: .45; transition: opacity .25s; }
.cmp-thumbs button:hover, .cmp-thumbs button.is-on { opacity: 1; }
.cmp-thumbs button.is-on::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--red); }
.cmp-thumbs img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* soon */
.soon {
  border: 1px solid var(--ink); min-height: 180px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px; background:
  repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--red) 12%, transparent) 14px 15px);
}
.soon__t { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 6vw, 96px); line-height: .85; color: var(--red); }
.proj--soon .proj__head { margin-bottom: 18px; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: 16vh var(--gut) 24px; }
.contact > .cap { color: var(--pop); }
.contact__big {
  display: block; font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(110px, 25vw, 440px);
  line-height: .8; letter-spacing: -.02em; color: var(--pop); margin: 30px 0 60px; transition: color .3s;
}
.contact__big:hover { color: var(--paper); }
.contact__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); padding-top: 14px; }
.contact__row a:hover { color: var(--pop); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.97); color: var(--paper); }
.lb[hidden] { display: none; }
.lb__stage { position: absolute; inset: 56px 70px 56px; display: flex; align-items: center; justify-content: center; }
.lb__stage img, .lb__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__cap { position: absolute; left: var(--gut); bottom: 18px; }
.lb__count { position: absolute; right: var(--gut); bottom: 18px; }
.lb__btn { position: absolute; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--paper); padding: 10px; }
.lb__btn:hover { color: var(--pop); }
.lb__close { top: 10px; right: calc(var(--gut) - 10px); }
.lb__prev, .lb__next { top: 50%; translate: 0 -50%; font-size: 26px; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); pointer-events: none; translate: -50% -50%;
  display: flex; align-items: center; justify-content: center;
  transition: width .25s, height .25s, opacity .2s; opacity: 0;
}
.cursor span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 70px; height: 70px; }
.cursor.is-big span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bar__nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; padding: var(--gut);
    background: var(--red); color: var(--on-red); gap: 4px; display: none; mix-blend-mode: normal;
  }
  .bar.is-open { mix-blend-mode: normal; color: var(--on-red); }
  .bar.is-open .bar__nav { display: flex; }
  .bar__nav a { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 64px; line-height: .95; }
  .bar__menu { display: block; position: relative; z-index: 2; }
  .bar__lang { position: relative; z-index: 2; margin-left: auto; }
  .bar__logo { position: relative; z-index: 2; }
  .hero { padding-top: 76px; row-gap: 14px; grid-template-rows: auto; }
  .hero__pic { grid-column: 1 / 6; grid-row: 1; }
  .hero__yr { grid-column: 7 / -1; grid-row: 1; align-self: end; }
  .hero__name { grid-column: 1 / -1; grid-row: 2; font-size: 18.5vw; }
  .hero__bio { grid-column: 1 / -1; grid-row: 3; }
  .hero__c4 { display: none; }
  .intro__k, .intro__txt { grid-column: 1 / -1; }
  .intro__txt { text-indent: 0; margin-top: 14px; }
  .about { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .about__pic { max-width: 260px; }
  .index a { grid-template-columns: 34px 1fr; }
  .index__c { display: none; }
  .index__peek { display: none; }
  .shead__n, .shead__t { grid-column: 1 / -1; }
  .proj__bar { grid-template-columns: 1fr auto; }
  .proj__bar-w { display: none; }
  .folder__head { grid-template-columns: 1fr auto; row-gap: 4px; }
  .folder__n { grid-column: 1 / -1; }
  .folder__cover { display: none; }
  .folder__c { grid-row: 3; }
  .proj__title, .proj__meta { grid-column: 1 / -1; }
  .strip .m { height: 58vh; }
  .strip--mini .m { height: 130px; }
  .live__m { height: auto; width: calc(50% - 5px); flex: 0 0 auto; }
  .feat__m { height: 150px; }
  .songs__nav { grid-template-columns: 1fr auto; row-gap: 8px; }
  .songs__tabs { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  .grid .m, .grid .m:first-child:nth-last-child(1) { grid-column: 1 / -1; }
  .cmp-wrap { grid-template-columns: 1fr; }
  .cmp { width: 100%; }
  .cmp-thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
  .cmp-thumbs button { flex: 0 0 64px; }
  .soon { flex-direction: column; align-items: flex-start; }
  .lb__stage { inset: 56px 8px 60px; }
  .lb__prev, .lb__next { top: auto; bottom: 4px; translate: none; }
  .lb__prev { left: 40%; } .lb__next { right: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee__in, .grain, .hero__clouds i, .feat__track, .shead::before, .contact::before { animation: none !important; }
}
