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

:root {
  --bg: #080808;
  --white: #f0ede8;
  --muted: rgba(240,237,232,0.35);
  --gap: 10px;
  --pad: clamp(16px, 4vw, 48px);
  --serif: 'Inknut Antiqua', Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--white);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; cursor: none; }
@media (hover: none) { a { cursor: auto; } }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── CURSOR (pastilla ibuprofeno) ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 24px; height: 11px;
  background: var(--white);
  border-radius: 50px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s, border .25s, opacity .2s;
  will-change: transform;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
}
.cursor::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 0.5px;
  background: rgba(8,8,8,0.25);
  transform: translateX(-50%);
  transition: opacity .2s;
}
.cursor.expanded {
  width: 68px; height: 28px;
  background: transparent;
  border: 0.8px solid rgba(240,237,232,0.6);
}
.cursor.expanded::after { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--pad);
  background: rgba(8,8,8,0);
  transition: background .4s;
}
nav.scrolled { background: rgba(8,8,8,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 640px) {
  nav { background: #fff; }
  nav .nav-name, nav .nav-burger span { color: #080808; }
  nav .nav-burger span { background: #080808; }
}

.nav-name {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white);
}
.nav-ig {
  font-size: 11px; color: var(--muted);
  transition: color .2s;
}
.nav-ig:hover { color: var(--white); }

.nav-links {
  margin-left: auto;
  display: flex; gap: 24px;
}
.nav-links a {
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

/* ── BURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 0;
  margin-left: auto;
  cursor: none;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 0.8px;
  background: var(--white);
  transform-origin: center;
  transition: transform .3s ease, opacity .3s ease;
}
nav.menu-open .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(4.2px, 4.2px); }
nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(4.2px, -4.2px); }

.nav-close { display: none; }

@media (max-width: 640px) {
  .nav-ig { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8,8,8,0.55);
    backdrop-filter: blur(28px) saturate(0.8);
    -webkit-backdrop-filter: blur(28px) saturate(0.8);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-left: 0;
  }
  .nav-links a {
    font-size: 15px;
    letter-spacing: 0.14em;
    color: var(--white);
  }
  nav.menu-open .nav-links { display: flex; }

  .nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: var(--pad);
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: auto;
    opacity: 0.6;
    transition: opacity .2s;
    z-index: 201;
  }
  nav.menu-open .nav-close { display: block; }
  .nav-close:hover { opacity: 1; }
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  display: none;
  position: fixed;
  bottom: 24px;
  right: var(--pad);
  z-index: 300;
  background: none;
  border: 0.5px solid rgba(240,237,232,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: auto;
  opacity: 0;
  transition: opacity .3s ease;
}
.scroll-top svg { display: block; }
.scroll-top.visible { opacity: 1; }
@media (max-width: 640px) {
  .scroll-top { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 65vh; min-height: 420px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.05) 40%, rgba(8,8,8,0.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.hero-aka {
  display: block;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,237,232,0.45);
}
.hero-aka em {
  font-style: italic;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.hero-tagline {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 3.2vw, 42px);
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-scroll {
  position: absolute; bottom: 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  z-index: 2; transition: color .2s;
}
.hero-scroll:hover { color: var(--white); }

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  background: #000;
  padding: var(--gap);
}

.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  overflow: hidden;
}
.cell-wide { /* no column spanning in masonry */ }
.cell-portrait { /* natural height */ }
.cell-pending { cursor: default; }

.cell-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
}
.cell-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .4s ease;
  pointer-events: none;
}
.cell-img img,
.cell-img video {
  transition: transform .55s ease;
}
.cell-img video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cell-img-contain {
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.cell-img-contain img {
  object-fit: contain;
  width: 72%; height: 72%;
}
.tqspm-logo {
  width: 130%; height: 130%;
  transform: rotate(-14deg);
  transition: transform .55s ease, filter .55s ease;
}
@media (hover: hover) {
  .cell:not(.cell-pending):hover .cell-img .tqspm-logo {
    transform: scale(1.08) rotate(-14deg);
  }
}
.sauna-logo {
  width: 60%; height: auto; object-fit: contain; opacity: 0.35;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.cell-img-dark {
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
}
.pending-txt {
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(240,237,232,0.15);
}


.play-btn {
  width: 36px; height: 36px;
  border: 0.8px solid rgba(240,237,232,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: '';
  border-left: 10px solid rgba(240,237,232,0.3);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.cell-label {
  position: static;
  padding: 13px 14px 15px;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  gap: 5px; text-align: left;
  transition: none;
}
.cl-name {
  font-family: var(--serif);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white); line-height: 1.2;
}
.cl-meta {
  font-size: 10px; color: rgba(240,237,232,0.6);
  letter-spacing: 0.04em;
}
.cl-cat {
  display: inline-block;
  font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.55);
  border: 0.5px solid rgba(240,237,232,0.3);
  border-radius: 50px;
  padding: 3px 9px;
  margin-top: 2px;
}

/* ── Púrpura 2-image crossfade ── */
.cell-purpura .cell-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell-purpura .pura-b { animation: pura-b 5s ease-in-out infinite; }
@keyframes pura-b {
  0%, 35%  { opacity: 0; }
  50%, 85% { opacity: 1; }
  100%     { opacity: 0; }
}

/* ── crossfade thumbnail (3 images: eye → vinyl A → vinyl B) ── */
.cell-crossfade .cell-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell-crossfade .cf-b { animation: cf-b 9s ease-in-out infinite; }
.cell-crossfade .cf-c { animation: cf-c 9s ease-in-out infinite; }
@keyframes cf-b {
  0%, 20%    { opacity: 0; }
  33%, 55%   { opacity: 1; }
  66%, 100%  { opacity: 0; }
}
@keyframes cf-c {
  0%, 55%    { opacity: 0; }
  66%, 88%   { opacity: 1; }
  100%       { opacity: 0; }
}


/* ── hover: scale sutil sobre imagen (desktop only) ── */
@media (hover: hover) {
  .cell:not(.cell-pending):hover .cell-img img,
  .cell:not(.cell-pending):hover .cell-img video {
    transform: scale(1.06);
  }
  .cell:not(.cell-pending):hover .cell-img::after {
    background: rgba(0,0,0,0.08);
  }
}

/* ── ABOUT ── */
.about {
  padding: 80px var(--pad) 64px;
  border-top: 0.5px solid #1a1a1a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 56px clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-bio-block {
  grid-column: 1;
  grid-row: 1;
}
.about-quote {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.3;
  color: var(--white);
  margin: 0;
  padding: 0;
  border: none;
  align-self: center;
}
.about-bio {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.75;
  color: rgba(240,237,232,0.65);
  margin-bottom: 1em;
}
.about-bio--last { margin-bottom: 0; }
.about-cols {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: clamp(32px, 6vw, 100px);
}
.about-col {
  margin-top: 0;
}
.about-col h3 {
  font-size: 9px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 12px;
}
.about-col p {
  font-size: 12px; line-height: 1.8;
  color: rgba(240,237,232,0.55);
}
.about-contact {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.about-contact-label {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.about-contact-sub {
  font-size: 11px; color: rgba(240,237,232,0.4);
  letter-spacing: 0.06em;
}
.about-email {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 4vw, 52px);
  color: var(--white); letter-spacing: -0.01em;
  line-height: 1;
  border-radius: 50px;
  padding: 8px 0;
  background: transparent;
  transition: background .3s ease, color .3s ease, padding .3s ease;
}
.about-email:hover {
  background: var(--white);
  color: var(--bg);
  padding: 8px 32px;
}

@media (max-width: 640px) {
  .about {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 36px;
    padding: 56px var(--pad) 48px;
  }
  .about-bio-block { grid-column: 1; grid-row: 1; }
  .about-quote { grid-column: 1; grid-row: 2; font-size: clamp(18px, 5vw, 28px); }
  .about-cols { grid-column: 1; grid-row: 3; flex-direction: column; gap: 28px; }
  .about-contact { grid-column: 1; grid-row: 4; margin-top: 0; }
  .about-email { font-size: clamp(20px, 6vw, 36px); }
}

/* ── FOOTER ── */
footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px;
  padding: 16px var(--pad);
  border-top: 0.5px solid #1a1a1a;
  font-size: 10px;
}
.f-name {
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; color: var(--white);
}
.f-ig { color: var(--muted); transition: color .2s; }
.f-ig:hover { color: var(--white); }
.f-email {
  font-size: 10px; letter-spacing: 0.06em;
  color: rgba(240,237,232,0.55); transition: color .2s;
}
.f-email:hover { color: var(--white); }
.f-year { color: var(--muted); margin-left: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .covers-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .covers-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
}
