/* ============================================================
   JOSEMOR / ENGINEER — versión minimalista
   José Manuel Morales Padilla · Saltillo, MX
   ============================================================ */

:root {
  --bg:      #0c0b0b;
  --bg-dev:  #0a0a0b;
  --ink:     #ece9e4;
  --muted:   #847e78;
  --accent:  #e23b3b;          /* único acento, sacado de la foto */
  --line:    rgba(236,233,228,.14);
  --speed:   900ms;
  --ease:    cubic-bezier(.65, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%; min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

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

/* viñeta tenue, nada más ------------------------------------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(130% 130% at 50% 45%, transparent 62%, rgba(0,0,0,.5) 100%);
}

/* ============================================================
   BARRA SUPERIOR / FOOTER
   ============================================================ */
.bar, .foot {
  position: fixed; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.6vw, 1.7rem) clamp(1.2rem, 4vw, 2.6rem);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.bar  { top: 0; }
.foot { bottom: 0; }
.bar__name { color: var(--ink); opacity: .9; }
.foot__mark { letter-spacing: .2em; }

/* ============================================================
   SPLIT
   ============================================================ */
.split {
  position: relative;
  display: flex;
  width: 100%; height: 100dvh;
  overflow: hidden;
}

.pane {
  position: relative;
  flex: 0 0 50%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex-basis var(--speed) var(--ease), opacity .55s ease;
}
.pane--dj  { background: var(--bg); }
.pane--dev { background: var(--bg-dev); }

/* foto del DJ, limpia, sólo un degradado para legibilidad */
.pane__media {
  position: absolute; inset: 0;
  background: url("musician.png") 55% 16% / cover no-repeat;
}
.pane__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,11,11,.30) 0%, rgba(12,11,11,.20) 38%, rgba(12,11,11,.82) 100%);
}

/* contenido */
.pane__body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 clamp(1.8rem, 6vw, 5rem) clamp(7rem, 18vh, 10rem);
  max-width: 40rem;
}

.eyebrow {
  margin: 0;
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); }

.headline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: .94;
  letter-spacing: -.012em;
  color: var(--ink);
}

.lede {
  margin: 0; max-width: 24ch;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.5; color: #cfccc6;
}

.meta {
  margin: 0;
  font-size: .78rem; letter-spacing: .04em;
  color: var(--muted);
}

.links { display: flex; gap: 1.4rem; margin-top: .3rem; pointer-events: auto; }
.links a {
  font-size: .82rem; letter-spacing: .03em; color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.links a:hover { border-color: var(--accent); color: #fff; }

/* reproductor SoundCloud — marco minimal (sólo línea superior) */
.player {
  position: absolute; left: clamp(1.8rem, 6vw, 5rem); right: auto;
  bottom: clamp(2.2rem, 6vh, 3.6rem);
  z-index: 3; width: min(28rem, 72%);
  padding-top: .8rem; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s .3s ease, transform .6s .3s ease;
}
.is-ready .player { opacity: 1; transform: none; }
.player__tag {
  display: block; margin-bottom: .55rem;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.player__mount iframe { display: block; }
.player__empty { margin: 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }

/* nota inferior del lado ingeniero (paralelo al player) */
.standby {
  position: absolute; left: clamp(1.8rem, 6vw, 5rem);
  bottom: clamp(2.2rem, 6vh, 3.6rem);
  z-index: 2; margin: 0; padding-top: .8rem;
  width: min(24rem, 72%); border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .06em; color: var(--muted);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s .3s ease, transform .6s .3s ease;
}
.is-ready .standby { opacity: 1; transform: none; }

/* ============================================================
   SEAM — hairline central
   ============================================================ */
.seam {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 20;
  width: 1px; transform: translateX(-50%);
  background: var(--line);
  pointer-events: none;
  transition: left var(--speed) var(--ease), background .4s ease;
}
.seam::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ink); opacity: .5; transition: background .3s, opacity .3s;
}

/* ============================================================
   ESTADOS HOVER / OPEN — expansión suave
   ============================================================ */
.split.is-dj  .pane--dj,  .split.open-dj  .pane--dj  { flex-basis: 60%; }
.split.is-dj  .pane--dev, .split.open-dj  .pane--dev { flex-basis: 40%; opacity: .5; }
.split.is-dev .pane--dev, .split.open-dev .pane--dev { flex-basis: 60%; }
.split.is-dev .pane--dj,  .split.open-dev .pane--dj  { flex-basis: 40%; opacity: .5; }

.split.is-dj  .seam, .split.open-dj  .seam { left: 60%; }
.split.is-dev .seam, .split.open-dev .seam { left: 60%; }
.split.is-dj  .seam::before,
.split.is-dev .seam::before { background: var(--accent); opacity: 1; }

.pane:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

/* ============================================================
   ENTRADA SUAVE
   ============================================================ */
.pane__body > * { opacity: 0; transform: translateY(12px); }
.is-ready .pane__body > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-ready .pane__body > *:nth-child(1) { transition-delay: .05s; }
.is-ready .pane__body > *:nth-child(2) { transition-delay: .12s; }
.is-ready .pane__body > *:nth-child(3) { transition-delay: .19s; }
.is-ready .pane__body > *:nth-child(4) { transition-delay: .26s; }
.is-ready .pane__body > *:nth-child(5) { transition-delay: .33s; }

/* ============================================================
   RESPONSIVE — apila y se vuelve "tap"
   ============================================================ */
@media (max-width: 820px) {
  html, body { overflow-y: auto; }
  .split { flex-direction: column; height: auto; min-height: 100dvh; }
  .pane { flex-basis: auto !important; min-height: 60dvh; opacity: 1 !important; }
  .pane--dj { min-height: 64dvh; }

  .split.open-dj  .pane--dj,
  .split.open-dev .pane--dev { min-height: 78dvh; }

  .pane__body { justify-content: flex-end; padding-bottom: clamp(8.5rem, 24vh, 11rem); }
  .pane--dev .pane__body { padding-bottom: clamp(5rem, 16vh, 7rem); }
  .headline { font-size: clamp(2.8rem, 15vw, 4.6rem); }

  .seam { position: relative; top: auto; bottom: auto; left: 0; width: 100%; height: 1px; transform: none; }
  .seam::before { display: none; }
  .split.is-dj .seam, .split.is-dev .seam, .split.open-dj .seam, .split.open-dev .seam { left: 0; }

  .player, .standby { width: min(30rem, 86%); }
  .bar__loc { display: none; }
}

/* ============================================================
   MENOS MOVIMIENTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
  .pane__body > *, .player, .standby { opacity: 1 !important; transform: none !important; }
}
