:root {
  --base: #fff;
  --raised: #f2f2f2;
  --hero: #bdbdbd;
  --ink: #111;
  --ink-2: #6b6b6b;
  --line: #cfcfcf;
  --accent: #111;
  --media: #d6d6d6;
  --pad: clamp(20px, 2.78vw, 40px);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --io: cubic-bezier(0.65, 0, 0.2, 1);
  --sans: Geist, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font: 400 16px/1.4 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--ink); color: #fff; }
.label { font: 400 12px/1.35 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

/* hero */
.hero { background: var(--hero); min-height: 100svh; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.hero-info { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; font-size: 14px; line-height: 20px; }
.hero-info > div { display: flex; flex-direction: column; gap: 14px; }
.hero-info ul { display: flex; flex-direction: column; gap: 14px; }
.hero-info ul.tight { gap: 0; }
time { font-variant-numeric: tabular-nums; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero h1 { font-weight: 600; font-size: 13.9vw; line-height: 0.85; letter-spacing: -0.05em; margin-left: -0.04em; padding-bottom: 0.04em; }
.hero-foot p { max-width: 320px; flex: 0 1 320px; }
@media (min-width: 801px) and (max-height: 700px) { .hero h1 { font-size: min(13.9vw, 30vh); } }

/* anillo */
.ring { background: var(--raised); position: relative; aspect-ratio: 1440 / 1000; overflow: hidden; }
.ring-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; pointer-events: none; }
.ring-title .label { color: var(--ink-2); min-height: 1.35em; }
.ring-title .ring-sub { margin-top: 8px; font-size: 18px; line-height: 26px; color: var(--ink-2); }
.ring-title h2 { font-weight: 600; font-size: clamp(34px, 5vw, 92px); line-height: 0.95; letter-spacing: -0.03em; }
.card { position: absolute; display: block; aspect-ratio: var(--ar); will-change: transform; }
.card-in { display: block; width: 100%; height: 100%; position: relative; transition: transform 0.28s var(--out); }
.card-in::after { content: ''; position: absolute; inset: 0; box-shadow: 0 16px 40px rgb(0 0 0 / 0.28); opacity: 0; transition: opacity 0.28s var(--out); pointer-events: none; }
.crop { position: absolute; inset: 0; overflow: hidden; background: var(--media); }
.crop img { position: absolute; max-width: none; object-fit: cover; }
.card-name { display: none; }
.card:focus-visible { z-index: 2; }
.card:focus-visible .card-in { transform: scale(1.1); }
.card:active .card-in { transform: scale(1.04); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { z-index: 2; }
  .card:hover .card-in { transform: scale(1.1); }
  .card:hover .card-in::after { opacity: 1; }
  .card:hover:active .card-in { transform: scale(1.06); }
}

/* clientes */
.bar { display: flex; justify-content: space-between; gap: 24px; padding: var(--pad); color: var(--ink-2); }
.bar h2 { font-weight: 400; }
.clients { padding: 48px 0 112px; }
.clients ul { margin-top: 24px; }
.clients li a { display: block; position: relative; text-align: center; font-weight: 600; font-size: clamp(30px, 6.67vw, 128px); line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; padding: 0.03em var(--pad); }
.clients li a span { position: relative; }
.clients li a::before { content: ''; position: absolute; inset: 0; background: var(--accent); opacity: 0; }
.clients li a.on { color: #fff; z-index: 1; }
.clients li a.on::before { opacity: 1; }
.only-hover { display: none; }
@media (hover: hover) and (pointer: fine) { .only-hover { display: block; } }

/* cover arts en 3D */
.covers { overflow-x: clip; padding-bottom: clamp(64px, 8vw, 128px); }
.records + .records { margin-top: 72px; }
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 var(--pad); }
.record { --s: clamp(150px, 16vw, 330px); --d: calc(var(--s) * 0.085); position: relative; min-width: 0; transition: transform 0.6s var(--io), opacity 0.35s var(--out); }
.record.on { z-index: 2; }
.records.busy .record:not(.on) { opacity: 0.4; }
.stage { position: relative; height: calc(var(--s) * 1.5); perspective: calc(var(--s) * 4.6); transition: transform 0.6s var(--io); }
.record.on .stage { transform: scale(1.1); }
.stage i { display: block; }
.rig { position: absolute; left: 50%; top: 47%; transform-style: preserve-3d; will-change: transform; }
.case, .discs { position: absolute; transform-style: preserve-3d; }
.case { --w: calc(var(--s) * 1.136); --h: calc(var(--s) * 1.025); }
.side { position: absolute; display: block; backface-visibility: hidden; }
.front, .back { width: var(--w); height: var(--h); left: calc(var(--w) / -2); top: calc(var(--h) / -2); }
.front { transform: translateZ(calc(var(--d) / 2)); background: #0d0d0e; border-radius: 2px; overflow: hidden; }
.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #17181a; }
.front img { position: absolute; left: 10.9%; top: 1.3%; width: 87.9%; height: 97.4%; max-width: none; object-fit: cover; }
.hinge { position: absolute; inset: 0 89.4% 0 0; background:
  linear-gradient(90deg, rgb(255 255 255 / 0.34) 0 4%, transparent 14% 58%, rgb(255 255 255 / 0.12) 66%, rgb(0 0 0 / 0.5) 84%, rgb(255 255 255 / 0.22) 92%, transparent),
  repeating-linear-gradient(0deg, #060607 0 1.5px, #2c2d30 1.5px 3px, #151617 3px 4.5px); }
.hinge::before { content: ''; position: absolute; inset: 4% 34% 4% 30%; background: linear-gradient(90deg, #050505, #26272a 45%, #0a0a0b); box-shadow: 0 0 2px rgb(0 0 0 / 0.9); }
.gloss { position: absolute; inset: 0; background:
  linear-gradient(112deg, rgb(255 255 255 / 0.32) 0, rgb(255 255 255 / 0.1) 24%, rgb(255 255 255 / 0.03) 38%, transparent 38.4%),
  linear-gradient(180deg, rgb(255 255 255 / 0.1), transparent 16%, transparent 84%, rgb(0 0 0 / 0.22)); }
.glare { position: absolute; inset: -30% -60%; background: linear-gradient(112deg, transparent 43%, rgb(255 255 255 / 0.2) 47%, rgb(255 255 255 / 0.05) 51%, transparent 51.4%, transparent 53.5%, rgb(255 255 255 / 0.13) 54%, transparent 56%); will-change: transform; }
.rim { position: absolute; inset: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.42), inset 1.5px 1.5px 1px rgb(255 255 255 / 0.5), inset -1.5px -1.5px 1px rgb(0 0 0 / 0.45), inset 0 0 0 3px rgb(255 255 255 / 0.06); }
.left, .right { width: var(--d); height: var(--h); left: calc(var(--d) / -2); top: calc(var(--h) / -2); }
.left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #3b3c3f 0, #a9abae 7%, #16171a 15%, #101113 80%, #8c8e91 91%, #2c2d30); overflow: hidden; }
.left b { position: absolute; left: 50%; top: 50%; white-space: nowrap; transform: translate(-50%, -50%) rotate(90deg); color: #f3f3f3; font: 400 calc(var(--d) * 0.4) / 1 var(--sans); letter-spacing: 0.02em; text-transform: uppercase; }
.right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #cfd1d3, #77797c 14%, #2b2c2f 34%, #8a8c8f 60%, #e2e3e4 84%, #6d6f72); }
.top, .bottom { width: var(--w); height: var(--d); left: calc(var(--w) / -2); top: calc(var(--d) / -2); }
.top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: linear-gradient(0deg, #f4f4f5, #a3a5a8 16%, #3a3b3e 40%, #9a9c9f 66%, #ececed 88%); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: linear-gradient(180deg, #8f9194, #34353a 30%, #16171a); }
.floor { position: absolute; left: 50%; bottom: 2%; width: calc(var(--s) * 1.9); height: calc(var(--s) * 0.22); margin-left: calc(var(--s) * -0.95); background: radial-gradient(closest-side, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.12) 52%, transparent); z-index: -1; }
.stage { isolation: isolate; }

.disc { --k: calc(var(--s) * 0.97); position: absolute; display: block; width: var(--k); height: var(--k); border-radius: 50%; background: var(--metal); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5), inset 0 0 0 2.5px rgb(0 0 0 / 0.16), inset 0 0 calc(var(--k) * 0.05) rgb(0 0 0 / 0.2); }
.discs .disc { left: calc(var(--k) / -2); top: calc(var(--k) / -2); transform: translate3d(0, 0, calc(var(--d) * (-0.95 - var(--n) * 0.8))); transition: transform 0.4s var(--io); }
.record.on .discs .disc { transform: translate3d(calc(var(--s) * (0.43 + var(--n) * var(--step))), calc(var(--s) * (-0.015 - var(--n) * 0.02)), calc(var(--d) * (-0.95 - var(--n) * 0.8))); transition: transform 0.65s var(--out); transition-delay: calc(160ms + var(--n) * 90ms); }
.discs .disc::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgb(0 0 0 / 0.42); transform: translate3d(1.2%, 1.4%, -1px); }
.discs .disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(90deg, rgb(0 0 0 / 0.36) 46%, rgb(0 0 0 / 0.06) 64%, transparent 74%); }
.groove, .sheen, .center { position: absolute; border-radius: 50%; }
.groove { inset: 2.2%; background:
  radial-gradient(closest-side, transparent 55%, rgb(0 0 0 / 0.3) 55.4% 56%, rgb(255 255 255 / 0.28) 56.4%, transparent 57% 70%, rgb(0 0 0 / 0.26) 70.4% 70.9%, rgb(255 255 255 / 0.24) 71.2%, transparent 72% 84%, rgb(0 0 0 / 0.26) 84.4% 84.9%, rgb(255 255 255 / 0.2) 85.3%, transparent 86%),
  repeating-radial-gradient(circle closest-side, rgb(0 0 0 / 0.085) 0 0.8px, rgb(255 255 255 / 0.07) 1.6px 2.2px, transparent 3px 3.6px);
  -webkit-mask: radial-gradient(closest-side, transparent 40%, #000 41%); mask: radial-gradient(closest-side, transparent 40%, #000 41%); }
.sheen { inset: 0.6%; background: conic-gradient(from 8deg, transparent 0 4%, rgb(255 255 255 / 0.72) 9%, transparent 15% 29%, rgb(255 255 255 / 0.22) 34%, transparent 40% 54%, rgb(255 255 255 / 0.62) 59%, transparent 65% 80%, rgb(255 255 255 / 0.2) 85%, transparent 91%); will-change: transform; }
.center { inset: 30.5%; background: radial-gradient(closest-side, #f2f2f2 0 9%, #555 9.6% 11.5%, transparent 12%), radial-gradient(closest-side, transparent 88%, rgb(0 0 0 / 0.35) 89% 91%, var(--rim) 92% 100%), var(--plate); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.28), 0 1px 3px rgb(0 0 0 / 0.4); }
.center b { position: absolute; left: 0; right: 0; top: 66%; text-align: center; color: var(--ink-d); font: 600 calc(var(--k) * 0.034) / 1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; }
.oro { --rim: #f3d98a; --ink-d: #f5dc93; --plate: radial-gradient(circle at 34% 28%, #3a3325, #100e0a 72%); --metal: conic-gradient(from 12deg, #a8741a, #f7d774 7%, #fff6cf 11%, #eab83f 19%, #b5801f 29%, #f3cb58 39%, #fff3bd 45%, #dda232 53%, #a36f16 62%, #f6d268 71%, #fffbe0 77%, #e4ae3a 86%, #a8741a); }
.plata { --rim: #e8e9ea; --ink-d: #e9eaeb; --plate: radial-gradient(circle at 34% 28%, #3a3b3d, #101112 72%); --metal: conic-gradient(from 40deg, #55585b, #d9dbdd 7%, #fff 11%, #a9acaf 19%, #5c5f62 29%, #c3c6c8 39%, #f8f9f9 45%, #8f9295 53%, #505356 62%, #d0d2d4 71%, #fff 77%, #a3a6a9 86%, #55585b); }
.platino { --rim: #d6ecff; --ink-d: #dff0ff; --plate: radial-gradient(circle at 34% 28%, #2b4d70, #0c1c2e 72%); --metal: conic-gradient(from 70deg, #6aa9e0, #cfeaff 7%, #f5fcff 11%, #a6d5fb 19%, #74b4ea 29%, #bfe3ff 39%, #f2faff 45%, #93caf5 54%, #64a5de 62%, #c6e6ff 71%, #f8fdff 77%, #a2d2f9 86%, #6aa9e0); }
.diamante { --rim: #fff; --ink-d: transparent; --plate: conic-gradient(from 11deg, #fff 0 7%, #b9d7f2 7% 13%, #f6fbff 13% 19%, #8fb6dc 19% 25%, #fff 25% 32%, #d9c8f3 32% 38%, #f4fbff 38% 44%, #9fc9e8 44% 50%, #fff 50% 57%, #c3e9ef 57% 63%, #eef6ff 63% 69%, #86aed6 69% 75%, #fff 75% 82%, #e7d2f0 82% 88%, #f7fcff 88% 94%, #a7cdea 94%); --metal: conic-gradient(from 25deg, #b8cbe0, #fff 6%, #d9f3ff 11%, #c9c6f5 18%, #f7e6ff 24%, #a9bdd6 31%, #e9fff9 38%, #fff 44%, #f9e2ef 50%, #aebfd8 57%, #dff0ff 64%, #fff 70%, #d4f5ea 76%, #c3c8ee 83%, #f3f7ff 91%, #b8cbe0); }
.diamante .center::before { content: ''; position: absolute; inset: 17%; border-radius: 50%; background: conic-gradient(from -8deg, #eaf6ff 0 12.5%, #9cc3e6 12.5% 25%, #fff 25% 37.5%, #b8c3ee 37.5% 50%, #f3fbff 50% 62.5%, #8eb7dd 62.5% 75%, #fff 75% 87.5%, #c7e4f3 87.5%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 0 6px rgb(255 255 255 / 0.8); }
.diamante .center::after { content: ''; position: absolute; inset: 34%; clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%); background: linear-gradient(135deg, #fff, #cfe6fa 45%, #fff 55%, #a9cdee); }

.stage-link { position: absolute; inset: 0 8%; z-index: 3; }
.record-info { border-top: 1px solid var(--line); padding-top: 16px; background: var(--base); }
.record-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.record-info .plays { margin: 0; text-align: right; color: var(--ink); flex: none; }
.record-info .plays strong { display: block; font-size: clamp(20px, 1.9vw, 34px); line-height: 1.05; letter-spacing: -0.02em; }
.plays span { display: block; margin-top: 6px; font: 400 11px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.record-info h3 { margin: 0; font-weight: 600; font-size: clamp(20px, 1.9vw, 34px); line-height: 1.05; letter-spacing: -0.02em; }
.record-info p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.record-info ul { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.record-info li { display: flex; align-items: center; gap: 7px; }
.record-info li .disc { --k: 24px; position: relative; }
.record-info li .center::before, .record-info li .center::after { display: none; }
.record-info strong { font-weight: 600; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.record-info li > span:last-child { font: 400 11px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .record-info a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
@media (max-width: 800px) {
  .records { grid-template-columns: 1fr; gap: 48px; }
  .record { --s: min(48vw, 300px); --step: var(--step-m) !important; }
}

/* galería */
.gallery { padding-bottom: 0; }
.view { position: relative; height: min(904px, 100svh); overflow: hidden; }
.canvas { --tw: clamp(150px, 16.67vw, 320px); --gap: calc(var(--tw) / 6); position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(10, var(--tw)); gap: var(--gap); transform: translate(-50%, -50%); will-change: transform; }
.tile { grid-column: var(--c); grid-row: var(--r); display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--raised); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--out), transform 0.5s var(--out); }
.tile img.in { opacity: 1; }
.tile img.cut { position: absolute; top: 0; max-width: none; height: 100%; }
@media (hover: hover) and (pointer: fine) { .tile:hover img:not(.cut) { transform: scale(1.04); } }

/* franja de logos: pasa sola, de izquierda a derecha y sin fin */
.logos { --k: 0.2; overflow: hidden; padding: clamp(16px, 1.6vw, 24px) 0; }
.logos.raised { background: var(--raised); }
.logos-track { display: flex; width: max-content; will-change: transform; animation: logos 45s linear infinite paused; }
.logos.run .logos-track { animation-play-state: running; }
.logos ul { display: flex; align-items: center; flex: none; }
.logos li { flex: none; width: calc(var(--w) * var(--k) * 1px); margin-right: clamp(76px, 8.5vw, 150px); }
.logos img { width: 100%; opacity: 0.45; }
@keyframes logos { from { transform: translate3d(-33.3333%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (min-width: 801px) { .logos { --k: 0.24; } }

/* página no encontrada */
.lost { min-height: 100svh; background: var(--hero); padding: var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.lost h1 { font-weight: 600; font-size: clamp(48px, 9vw, 160px); line-height: 0.9; letter-spacing: -0.04em; }
.lost a { font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }

/* sobre mí */
.about { background: var(--raised); padding: clamp(80px, 11vw, 160px) var(--pad); }
.dot { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); margin-bottom: 24px; }
.about h2 { font-weight: 400; font-size: clamp(36px, 5vw, 92px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.about-grid { display: flex; justify-content: space-between; gap: 64px; margin-top: clamp(56px, 8.3vw, 120px); }
.about-text { flex: 0 1 560px; margin-left: clamp(0px, 5.5vw, 80px); font-size: 18px; line-height: 26px; }
.about-text > p + p { margin-top: 26px; }
.about-text > p, .hero-foot p, .about dd { text-wrap: pretty; }
.about dl { margin-top: 40px; font-size: 14px; line-height: 18px; }
.about dl div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
dt { font: 400 12px/18px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.portrait { width: 440px; flex: 0 1 440px; min-width: 260px; aspect-ratio: 440 / 560; height: auto; object-fit: cover; align-self: flex-start; }

/* contacto */
.contact { background: var(--ink); color: #fff; padding: clamp(72px, 8.3vw, 120px) var(--pad) var(--pad); }
.contact .label { color: #a3a3a3; }
.mail { font-weight: 600; font-size: clamp(16px, 5.5vw, 100px); line-height: 1; letter-spacing: -0.03em; margin: 20px 0 80px; overflow-wrap: anywhere; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.nets { display: flex; gap: 32px; }

/* proyecto */
.nav, .pfoot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px var(--pad); }
.nav > a, .pfoot > a { font-weight: 600; text-transform: uppercase; }
.nav nav { display: flex; gap: clamp(16px, 2.2vw, 32px); font-size: 14px; }
.nav nav a, .hero-info a, .nets a, .credits a { text-decoration: underline transparent; text-underline-offset: 4px; transition: text-decoration-color 0.18s ease; }
.credits a { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .nav nav a:hover, .hero-info a:hover, .nets a:hover { text-decoration-color: currentColor; } .credits a:hover { color: var(--ink-2); } }
.cover { background: var(--media); }
.cover img { width: 100%; aspect-ratio: 1440 / 760; object-fit: cover; }
.intro { padding: 48px var(--pad) 96px; }
.intro h1 { font-weight: 600; font-size: clamp(40px, 9.72vw, 180px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; margin-left: -0.02em; }
.intro.long h1 { font-size: clamp(34px, 9.2vw, 170px); }
.intro h1 span { display: block; }
.intro h1 span:has(+ span) { margin-bottom: 0.06em; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.meta dd { margin-top: 6px; }
.desc { max-width: 680px; margin-top: 40px; font-size: 20px; line-height: 1.4; text-wrap: pretty; }
.pieces { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 16px; padding: 0 var(--pad); }
.row > div { min-width: 0; aspect-ratio: var(--r); background: var(--raised); }
.row img, .row video { width: 100%; height: 100%; object-fit: cover; }
.full { aspect-ratio: var(--r); background: var(--raised); }
.full img, .full video { width: 100%; height: 100%; object-fit: cover; }
.zoom { appearance: none; border: 0; padding: 0; margin: 0; background: none; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.zoom:focus-visible, .tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* pieza en grande */
html:has(.lb[open]) { overflow: hidden; }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--raised); color: var(--ink); overflow: hidden; opacity: 0; transition: opacity 0.18s var(--out), overlay 0.18s allow-discrete, display 0.18s allow-discrete; }
.lb[open] { opacity: 1; transition-duration: 0.24s; }
@starting-style { .lb[open] { opacity: 0; } }
.lb-stage { position: absolute; inset: 64px 88px; display: grid; place-items: center; container-type: size; transition: transform 0.24s var(--out); cursor: zoom-out; }
@starting-style { .lb[open] .lb-stage { transform: scale(0.97); } }
.lb-stage > * { display: block; width: min(100cqw, 100cqh * var(--r)); max-width: none; height: auto; aspect-ratio: var(--r); object-fit: contain; background: var(--media); }
.lb-cap { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; display: flex; justify-content: center; gap: 24px; color: var(--ink-2); pointer-events: none; }
.lb-close { position: absolute; top: 8px; right: calc(var(--pad) - 12px); padding: 14px 12px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.lb-nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: transform 0.14s var(--out); }
.lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb-nav:active { transform: scale(0.94); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
/* móvil: mismo ritmo que en computador. Cada sección abre con su etiqueta a 48 px del borde,
   el contenido entra 24 px más abajo y la sección cierra con 64 px de aire. */
@media (max-width: 800px) {
  .hero { gap: 40px; }
  /* portada: dos columnas limpias. Arriba quién y dónde, luego experiencia y programas, y el correo al final.
     Los proyectos destacados se quitan aquí porque aparecen justo debajo. */
  .hero-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 0; font-size: 13px; line-height: 19px; }
  .hero-info > div { gap: 0; }
  .hero-info > div:nth-child(1) { grid-area: 1 / 1; }
  .hero-info > div:nth-child(2) { display: contents; }
  .hero-info > div:nth-child(2) > p:nth-child(1) { grid-area: 1 / 2; }
  .hero-info > div:nth-child(2) > p:nth-child(2) { grid-area: 2 / 2; margin-top: 6px; color: var(--ink-2); }
  .hero-info > div:nth-child(2) > p:nth-child(3) { grid-area: 4 / 1 / 5 / 3; margin-top: 28px; }
  .hero-info > div:nth-child(3) { display: none; }
  .hero-info > div:nth-child(4) { grid-area: 3 / 1; margin-top: 28px; }
  .hero-info > div:nth-child(5) { grid-area: 3 / 2; margin-top: 28px; }
  .hero-info .label { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.03em; }
  .hero-info > div:nth-child(2) > .label { margin-bottom: 0; }
  .hero-info ul { gap: 2px; }
  /* mosaico: quieto y centrado en una pieza; las demás asoman alrededor */
  .view { height: 128vw; max-height: 620px; }
  .canvas { --tw: 34vw; --gap: 10px; transform: translate(calc(-50% + (var(--tw) + var(--gap)) / 2), calc(-50% + (var(--tw) * 1.25 + var(--gap)) / 2)) !important; will-change: auto; }
  /* franjas de logos: más pequeñas y sin la última, entre Sobre mí y el contacto */
  .logos { --k: 0.14 !important; padding: 14px 0; }
  .logos li { margin-right: 44px; }
  .about + .logos { display: none; }
  .bar { padding: 48px var(--pad) 24px; }
  .ring { padding: 64px 0; }
  .ring-title { margin-bottom: 32px; }
  /* en el celular la foto no crece ni suelta sombra: así no se descuadra del nombre */
  .card:hover .card-in, .card:focus-visible .card-in { transform: none; }
  .card:hover .card-in::after { opacity: 0; }
  .card:active .card-in { transform: scale(0.98); }
  .clients { padding: 0 0 64px; }
  .clients ul { margin-top: 0; }
  .covers { padding-bottom: 64px; }
  .about { padding: 64px var(--pad); }
  .about-grid { margin-top: 40px; gap: 40px; }
  .about dl { margin-top: 32px; }
  .contact { padding-top: 64px; }
  .mail { font-size: clamp(16px, 8.2vw, 100px); line-height: 1.05; margin: 16px 0 56px; overflow-wrap: normal; }
  /* cover arts: se deslizan de lado, como los proyectos; se abre la que queda al centro */
  .records { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 11vw; scrollbar-width: none; overscroll-behavior-x: contain; }
  .records::-webkit-scrollbar { display: none; }
  .record { flex: 0 0 78vw; scroll-snap-align: center; }
}

@media (max-width: 800px) {
  .lb-stage { inset: 56px 12px 112px; }
  .lb-stage.pano { overflow-x: auto; place-items: center start; scrollbar-width: none; }
  .lb-stage.pano > * { width: calc(60cqh * var(--r)); }
  .lb-cap { bottom: 72px; flex-wrap: wrap; gap: 4px 16px; }
  .lb-nav { top: auto; bottom: 12px; margin: 0; }
}

.credits { display: flex; gap: 40px; padding: 96px var(--pad); }
.credits h2 { flex: 0 0 22%; font-weight: 400; color: var(--ink-2); }
.credits dl { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 18px; }
.credits dl div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.credits dt { font: inherit; letter-spacing: 0; text-transform: none; }
.others { padding: 0 var(--pad) 96px; }
.others h2 { font-weight: 400; color: var(--ink-2); margin-bottom: 24px; }
.others > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other[hidden] { display: none; }
.other > span { display: block; aspect-ratio: 443 / 300; overflow: hidden; background: var(--media); }
.other img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--out); }
.other p { text-align: center; margin-top: 12px; }
@media (hover: hover) and (pointer: fine) { .other:hover img { transform: scale(1.03); } }
.pfoot { background: var(--ink); color: #fff; padding: 32px var(--pad); }

/* móvil y tablet */
@media (max-width: 800px) {
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-foot p { flex: none; max-width: 40ch; }
  .hero h1 { font-size: 21vw; }
  .nav { padding-block: 18px; gap: 16px; }
  .nav > a, .nav nav { font-size: 13px; white-space: nowrap; }
  .nav nav { gap: 14px; }
  .ring { aspect-ratio: auto; padding: 72px 0; }
  .ring-title { position: static; margin-bottom: 40px; }
  .ring-cards { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--pad); scrollbar-width: none; }
  .ring-cards::-webkit-scrollbar { display: none; }
  .card { position: static; flex: none; width: auto !important; aspect-ratio: auto; scroll-snap-align: center; will-change: auto; }
  /* todas las fotos con la medida de la de Ozuna (180 × 220) y sin nombre: se deslizan en fila pareja */
  .card-in { height: 58vw; max-height: 340px; width: auto; aspect-ratio: 180 / 220; }
  .crop img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; object-position: var(--fx, 50%) 50%; transform: scale(var(--z, 1)); transform-origin: 50% var(--fy, 50%); }
  .clients { padding: 32px 0 72px; }
  .clients li a { font-size: 8.4vw; padding-block: 0.16em; white-space: nowrap; }
  .wide { display: none; }
  .about-grid { flex-direction: column; gap: 48px; }
  .about-text { margin: 0; flex: none; }
  .about dl div { grid-template-columns: 1fr; gap: 4px; }
  .portrait { width: 100%; flex: none; }
  .meta { grid-template-columns: 1fr 1fr; }
  .intro { padding: 32px var(--pad) 56px; }
  .intro h1, .intro.long h1 { font-size: clamp(34px, 10.4vw, 80px); }
  .desc { font-size: 18px; }
  .cover img { aspect-ratio: 4 / 3; }
  .pieces { gap: 10px; }
  .row { flex-wrap: wrap; gap: 10px; }
  .row > div { flex: 0 0 var(--mb) !important; }
  .full.pano { aspect-ratio: auto; overflow-x: auto; scrollbar-width: none; }
  .full.pano .zoom { width: max-content; height: auto; }
  .full.pano img { width: auto; max-width: none; height: 64vw; }
  .credits { flex-direction: column; gap: 20px; padding: 64px var(--pad); }
  .credits dl div { grid-template-columns: 44% 1fr; gap: 12px; }
  .others > div { grid-template-columns: 1fr; gap: 28px; }
}
/* entradas suaves: los títulos se revelan de izquierda a derecha y pasan de borroso a nítido;
   el resto sube un poco y se aclara. Solo con JS activo (.motion) y sin "reducir movimiento". */
.line { display: block; }
.motion .line { display: block; padding: 0.14em 0 0.2em; margin: -0.14em 0 -0.2em; opacity: 0; filter: blur(12px); transform: translate3d(0, 0.16em, 0);
  -webkit-mask-image: linear-gradient(90deg, #000 34%, transparent 66%); mask-image: linear-gradient(90deg, #000 34%, transparent 66%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.6s var(--out), mask-position 1.6s var(--out), opacity 1.1s var(--out), filter 1.4s var(--out), transform 1.4s var(--out);
  transition-delay: var(--d, 0s); }
.motion .seen .line, .motion .line.seen { opacity: 1; filter: blur(0); transform: none; -webkit-mask-position: 0 0; mask-position: 0 0; }
.motion :is(.hero h1, .ring-title h2, .intro h1, .about h2, .mail, .bar h2) { display: flow-root; }
.motion .line.done { -webkit-mask-image: none; mask-image: none; filter: none; }
.motion .rise { opacity: 0; filter: blur(6px); transform: translate3d(0, 18px, 0); transition: opacity 0.9s var(--out), filter 0.9s var(--out), transform 1s var(--out); transition-delay: var(--d, 0s); }
.motion .rise.seen { opacity: 1; filter: none; transform: none; }
.motion .soak { overflow: hidden; }
.motion .soak img, .motion .soak video { opacity: 0; filter: blur(14px); transform: scale(1.04); transition: opacity 1s var(--out), filter 1.2s var(--out), transform 1.4s var(--out); }
.motion .soak.seen img, .motion .soak.seen video { opacity: 1; filter: none; transform: none; }
.motion .ring .crop { opacity: 0; filter: blur(10px); transition: opacity 1s var(--out), filter 1.2s var(--out); transition-delay: calc(var(--i) * 70ms + 0.2s); }
.motion .ring.seen .crop { opacity: 1; filter: none; }
/* la portada se queda quieta y la siguiente sección sube encima, como una hoja */
.hero.stick { position: sticky; top: 0; z-index: 0; }
.hero.stick ~ * { position: relative; z-index: 1; }
.hero.stick ~ .clients, .hero.stick ~ .covers, .hero.stick ~ .gallery, .hero.stick ~ .logos:not(.raised) { background-color: var(--base); }
@media (prefers-reduced-motion: reduce) {
  .motion .line, .motion .rise, .motion .soak img, .motion .soak video, .motion .ring .crop { opacity: 1; filter: none; transform: none; -webkit-mask-image: none; mask-image: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .card-in, .tile img, .other img { transition: opacity 0.2s ease; }
  .record, .stage, .discs .disc, .record.on .discs .disc { transition: opacity 0.2s ease; transition-delay: 0s; }
  .card:hover .card-in, .card:focus-visible .card-in, .card:active .card-in { transform: none; }
}
