:root {
  --black: #080808;
  --white: #e0ddd6;
  --gray: #2e2e2e;
  --midgray: #555;
  --muted: #666;
  --lightgray: #999;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: crosshair;
  filter: grayscale(1);
}

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.06;
  pointer-events: none;
  z-index: 9999;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-slow {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s ease 0.2s, transform 1.4s ease 0.2s;
}
.reveal-slow.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
}

.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
}

.scanlines {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px);
  pointer-events: none;
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(90px, 17vw, 210px);
  font-weight: 400;
  font-style: normal;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.glitch-wrap {
  position: relative;
  display: inline-block;
}
.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: 'Courier Prime', monospace;
  font-size: inherit;
  line-height: inherit;
}
.glitch-wrap::before {
  color: #bbb;
  clip-path: polygon(0 28%, 100% 28%, 100% 46%, 0 46%);
  transform: translateX(-4px);
  animation: g1 5s infinite;
}
.glitch-wrap::after {
  color: #888;
  clip-path: polygon(0 58%, 100% 58%, 100% 72%, 0 72%);
  transform: translateX(4px);
  animation: g2 5s infinite;
}
@keyframes g1 {
  0%,88%,100% { opacity:0; transform:translateX(-4px); }
  89%,91% { opacity:1; transform:translateX(-4px); }
  90% { opacity:1; transform:translateX(6px); }
}
@keyframes g2 {
  0%,90%,100% { opacity:0; transform:translateX(4px); }
  91%,93% { opacity:1; transform:translateX(4px); }
  92% { opacity:1; transform:translateX(-6px); }
}

.hero-sub {
  font-family: 'VT323', monospace;
  font-size: 30px;
  color: #aaa;
  letter-spacing: 0.08em;
  margin-top: 20px;
}
.hero-artist {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 36px; right: 60px;
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.2em;
  animation: blink 1.6s infinite;
  z-index: 3;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== PORTADA SPLIT ===== */
#portada-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}

.split-img {
  position: relative;
  overflow: hidden;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.split-img:hover img { transform: scale(1.03); }

.split-text {
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  border-left: 1px solid #1a1a1a;
}

.section-tag {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #555;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.big-quote {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 400;
  font-style: normal;
  color: var(--white);
}

.concept-body {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  max-width: 400px;
  margin-top: 36px;
  padding-left: 20px;
  border-left: 1px solid #333;
}

/* ===== FULLWIDTH FOTO ===== */
.fullwidth-photo {
  width: 100%;
  height: 85vh;
  overflow: hidden;
  position: relative;
}
.fullwidth-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.fullwidth-photo .caption {
  position: absolute;
  bottom: 32px;
  left: 48px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: rgba(200,200,200,0.4);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ===== STRIP ===== */
.photo-strip {
display: flex;
height: 65vh;
}
.strip-col {
flex: 1;
overflow: hidden;
position: relative;
border-right: 1px solid #111;
transition: flex 0.6s cubic-bezier(0.4,0,0.2,1);
cursor: pointer;
}
.strip-col:last-child { border-right: none; }
.strip-col:hover { flex: 2.8; }
.strip-col img {
width: 100%; height: 100%;
object-fit: cover;
object-position: center top;
display: block;
transition: transform 0.6s ease;
}
.strip-col:hover img { transform: scale(1.04); }
.strip-col .lbl {
position: absolute;
bottom: 20px; left: 16px;
font-family: 'VT323', monospace;
font-size: 18px;
color: rgba(200,200,200,0.35);
letter-spacing: 0.1em;
transition: color 0.3s;
pointer-events: none;
}
.strip-col:hover .lbl { color: rgba(200,200,200,0.8); }


/* ===== TRACKLIST ===== */
#tracklist {
  background: #0a0a0a;
  padding: 100px 60px;
  border-top: 1px solid #1a1a1a;
}

.track-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #181818;
  transition: background 0.2s, padding-left 0.3s;
  cursor: default;
}
.track-row:hover {
  background: rgba(255,255,255,0.015);
  padding-left: 8px;
}
.track-num {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}
.track-name {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--white);
  flex: 1;
  letter-spacing: 0.03em;
}
.track-dur {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #444;
  letter-spacing: 0.1em;
}

/* ===== BOOKLET ROW ===== */
.booklet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 70vh;
}
.booklet-cell {
  overflow: hidden;
  position: relative;
  border-right: 1px solid #111;
}
.booklet-cell:last-child { border-right: none; }
.booklet-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s ease;
}
.booklet-cell:hover img { transform: scale(1.05); }

/* ===== VIDEO ===== */
#video-section {
  background: #080808;
  padding: 100px 60px;
  border-top: 1px solid #1a1a1a;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}
.video-item {
  display: flex;
  flex-direction: column;
}
.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
}
.video-wrap--placeholder {
  border-style: dashed;
  border-color: #1e1e1e;
  background: #0c0c0c;
}
.video-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: #444;
}
.play-btn {
  width: 60px; height: 60px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.video-wrap--placeholder .play-btn {
  border-color: #222;
  cursor: default;
}
.play-btn:hover { border-color: #999; transform: scale(1.08); }
.video-wrap--placeholder .play-btn:hover { border-color: #222; transform: none; }
.play-btn svg { width: 20px; height: 20px; fill: #aaa; margin-left: 3px; }
.video-wrap--placeholder .play-btn svg { fill: #333; }
.video-note {
  font-family: 'VT323', monospace; font-size: 16px;
  color: #444; letter-spacing: 0.2em;
}
.video-note--dim { color: #252525; letter-spacing: 0.5em; }
.video-note span { color: #333; font-size: 13px; }

/* ===== PRE-SAVE ===== */
#presave {
  min-height: 100vh;
  background: #060606;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 40px;
  border-top: 1px solid #1a1a1a;
  position: relative;
  overflow: hidden;
}
.presave-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.06;
}
.presave-title {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(60px, 14vw, 160px);
  font-weight: 400;
  font-style: normal;
  position: relative; z-index: 1;
}
.presave-sub {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #555;
  letter-spacing: 0.4em;
  margin: 24px 0 56px;
  position: relative; z-index: 1;
}
.btn-presave {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: #080808;
  background: #d6d3cc;
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  position: relative; z-index: 1;
  border: none; cursor: pointer;
}
.btn-presave:hover { background: #fff; transform: translateY(-2px); }
.btn-presave:active { transform: translateY(0); }

/* ===== FOOTER ===== */
footer {
  padding: 36px 60px;
  border-top: 1px solid #181818;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer span {
  font-family: 'VT323', monospace;
  font-size: 13px; color: #444;
  letter-spacing: 0.35em;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }

/* ===== MEDIA / IMAGE DEFAULTS ===== */
/* Keep every image and video responsive and centered by default. */
img, video {
  max-width: 100%;
  height: auto;
}
/* Standalone images (not absolutely positioned / not filling a flex/grid cell)
   are centered horizontally. */
img:not(.hero-img):not(.presave-bg) {
  display: block;
  margin-inline: auto;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  #hero { padding: 40px; }
  #tracklist,
  #video-section,
  #presave { padding: 80px 40px; }
  footer { padding: 28px 40px; }

  .booklet-row {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  .booklet-cell { height: 46vh; }
  .booklet-cell:nth-child(2) { border-right: none; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  body { cursor: default; }

  /* HERO */
  #hero { padding: 24px; min-height: 90vh; }
  .hero-sub { font-size: 24px; }
  .scroll-hint { right: 24px; bottom: 24px; }

  /* PORTADA SPLIT -> stacked */
  #portada-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .split-img { height: 60vh; }
  .split-text {
    border-left: none;
    border-top: 1px solid #1a1a1a;
    padding: 56px 28px;
  }
  .concept-body { max-width: 100%; }

  /* FULLWIDTH PHOTO */
  .fullwidth-photo { height: 55vh; }
  .fullwidth-photo .caption { left: 24px; bottom: 24px; }


  /* TRACKLIST */
  #tracklist { padding: 64px 24px; }


  /* VIDEO */
  #video-section { padding: 64px 24px; }
  .video-grid { grid-template-columns: 1fr; gap: 16px; }

  /* PRE-SAVE */
  #presave { padding: 64px 24px; }
    .presave-sub { font-size: 16px; letter-spacing: 0.3em; }
}
/* ← ese } cierra el @media (max-width: 768px) correctamente */

/* ===== RESPONSIVE: SMALL PHONES ===== */
@media (max-width: 420px) {
  #hero { padding: 18px; }
  .eyebrow { font-size: 16px; letter-spacing: 0.3em; }
  .hero-sub { font-size: 20px; }
  .split-img { height: 50vh; }
}

/* Video animación CDs */
.fullwidth-photo .cd-video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  display: block;
  margin: 0 auto;
}

/* ===== IFRAME RESPONSIVE ===== */
.video-ph iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
}

.booklet-row--duo {
  height: 80vh;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .booklet-row--duo {
    height: 80vh;
    grid-template-columns: 1fr 1fr;
  }
  .booklet-row--duo .booklet-cell {
    height: 50vh;
  }
}