/* =====================================================================
   Portfolio · Agustina Sánchez De Boeck
   Paleta de la web: blanco, beige y negro.
   Inter Tight en títulos y textos, DM Mono solo en rótulos cortos.
   ===================================================================== */

:root {
  --paper: #f7f6f2;   /* beige del fondo */
  --white: #ffffff;
  --ink: #141414;
  --muted: #62625c;
  --hair: rgba(20, 20, 20, .16);
  --r: 16px;
  --gut: clamp(16px, 3.2vw, 44px);
  --max: 1480px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.contact :focus-visible, .foot :focus-visible, .lb :focus-visible, .hero :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.skip { position: absolute; left: var(--gut); top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: .8rem; border-radius: 999px; }
.skip:focus { top: 8px; }

/* Rótulos en monoespaciada: cortos, nunca párrafos. */
.label {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Títulos grandes: una parte liviana y otra en negrita. */
.display { font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.display b { font-weight: 700; }

/* ------------------------------------------------------------- Píldoras */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
a.pill:hover { background: var(--ink); color: var(--white); }
.pill--cta { background: var(--ink); color: var(--paper); }
a.pill--cta:hover { background: var(--white); color: var(--ink); }
.pill--lg { min-height: 48px; padding: 0 26px; font-size: .76rem; }
.pill--ghost { background: transparent; }
.pill--links { padding: 0 8px; gap: 0; }
.pill--links a { padding: 10px 10px; text-decoration: none; border-radius: 999px; }
.pill--links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill--lang { padding: 3px; gap: 2px; }
.lang button { border: 0; background: none; cursor: pointer; min-height: 30px; padding: 0 10px; border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:hover:not([aria-pressed="true"]) { background: var(--paper); }

/* ---------------------------------------------------------- Barra fija */
.top {
  position: fixed; z-index: 40; top: 14px; left: 0; right: 0;
  padding-inline: var(--gut);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__nav { display: flex; align-items: center; gap: 6px; }
.brand__short { display: none; }
/* En pantallas chicas el menú baja a una segunda fila, a la derecha */
@media (max-width: 860px) {
  .top { align-items: flex-start; }
  .top__nav { flex: 1; flex-wrap: wrap; justify-content: flex-end; }
  .top__nav::before { content: ""; order: 2; flex-basis: 100%; height: 0; }   /* corte de fila */
  .pill--lang { order: 0; }
  .top__nav > .pill--cta { order: 1; }
  .pill--links { order: 3; }
  html { scroll-padding-top: 108px; }
}
@media (max-width: 560px) {
  .brand__full { display: none; }
  .brand__short { display: inline; }
  .top .pill { padding: 0 12px; font-size: .64rem; min-height: 36px; }
  .top .pill--lang { padding: 3px; }
  .top .pill--links { padding: 0 6px; }
  .top .lang button { padding: 0 8px; min-height: 28px; font-size: .64rem; }
}

/* -------------------------------------------------------------- Portada */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; background: var(--ink); overflow: hidden; }
/* Mosaico. Todas las medidas son explícitas (alto de fila y ancho de cada imagen) para que
   Safari en iPhone calcule igual que Chrome el largo de cada fila y el desplazamiento. */
.wall {
  --hero-h: max(100vh, 540px);
  --row-h: calc((var(--hero-h) - 32px) / 3);
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 0;
}
@supports (height: 100svh) { .wall { --hero-h: max(100svh, 540px); } }
.wall__row { flex: none; height: var(--row-h); overflow: hidden; }
.wall__track { display: flex; flex-wrap: nowrap; width: max-content; height: var(--row-h); animation: wall 110s linear infinite; }
.wall__row:nth-child(2) .wall__track { animation-name: wall-back; animation-duration: 130s; }
.wall__row:nth-child(3) .wall__track { animation-duration: 95s; }
.wall__tile { flex: none; height: var(--row-h); width: calc(var(--row-h) * var(--ar, 1)); margin-right: 8px; border-radius: 12px; overflow: hidden; background: #242424; }
.wall__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes wall-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes wall { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall__track { animation: none; } }

.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(20,20,20,.94) 0%, rgba(20,20,20,.6) 16%, rgba(20,20,20,0) 46%); }
.hero__name {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 72px;   /* deja libre la esquina donde Netlify pone su cartel */
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); color: #fff;
}
.hero__name h1 { font-size: clamp(2rem, 5.5vw, 5.9rem); font-weight: 300; letter-spacing: -.055em; line-height: .9; white-space: nowrap; }
.hero__name h1 b { font-weight: 700; }
.hero__line { flex: 1; height: 2px; background: #fff; min-width: 24px; margin-top: .6em; }
.hero__role { font-size: clamp(1rem, 1.7vw, 1.8rem); font-weight: 600; letter-spacing: -.04em; white-space: nowrap; margin-top: .5em; }
@media (max-width: 760px) {
  .hero__name { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__name h1 { white-space: normal; font-size: 11.4vw; }
  .hero__line { display: none; }
  .hero__role { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; margin: 0; }
}

/* --------------------------------------------------------- Presentación */
.intro { text-align: center; padding-block: clamp(72px, 13vw, 170px); display: flex; flex-direction: column; align-items: center; gap: 26px; }
.intro .label { color: var(--muted); }
.intro__h { font-size: clamp(1.9rem, 4.3vw, 4.2rem); text-wrap: balance; }
.intro__h b, .intro__h span { display: block; }
.intro__p { max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

/* ------------------------------------------------------ Banda «Diseño» */
.band { background: var(--ink); color: #fff; padding-block: clamp(48px, 8vw, 110px); overflow: hidden; }
.band__in { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-size: clamp(1.7rem, 5.4vw, 5rem); letter-spacing: -.045em; line-height: 1.12; }
.band__lead { font-weight: 700; flex: none; }
.band__roll { height: 3.36em; overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); }
.band__roll ul { animation: roll 15s linear infinite; }
.band__roll li { font-weight: 300; white-space: nowrap; }
@keyframes roll { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .band__roll { height: auto; -webkit-mask-image: none; mask-image: none; }
  .band__roll ul { animation: none; }
  .band__roll li[aria-hidden="true"] { display: none; }
}

/* ------------------------------------------------------------ Proyectos */
.work { padding-block: clamp(64px, 9vw, 130px) clamp(40px, 6vw, 90px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.work__head .label { color: var(--muted); }
.work__h { font-size: clamp(2.4rem, 6.4vw, 6rem); margin-top: 14px; }
.work__h span, .work__h b { display: block; }
.work__stat { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.work__n { font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 28px); padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--ink); }
.chip {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase;
  min-height: 36px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1px solid var(--ink); cursor: pointer;
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--white); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px) clamp(12px, 1.4vw, 20px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card__link { display: block; text-decoration: none; }
.card__thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--white); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card__link:hover .card__thumb img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card__thumb img { transition: none; } .card__link:hover .card__thumb img { transform: none; } }
.badge { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; background: var(--white); color: var(--ink); padding: 6px 11px; border-radius: 999px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.card__row .label { text-align: right; flex: none; }
.card__sub { display: block; margin-top: 5px; color: var(--muted); }
.card__title { font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.card__link:hover .card__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.note { padding: 16px 0; color: var(--muted); }

/* ------------------------------------------------------------- Sobre mí */
.about { padding: clamp(28px, 5vw, 72px) var(--gut) clamp(40px, 6vw, 90px); max-width: calc(var(--max) + 0px); margin-inline: auto; }
.about__panel { background: var(--white); border-radius: clamp(20px, 2.6vw, 36px); padding: clamp(22px, 4vw, 64px); }
.about__main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4.5vw, 72px); align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__h { font-size: clamp(2rem, 4.2vw, 4rem); text-wrap: balance; }
.about__h span, .about__h b { display: block; }
.about__p { max-width: 56ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.about__photo { position: relative; width: min(100%, 460px); justify-self: center; margin-block: clamp(20px, 3vw, 44px); }
.about__img { width: 100%; height: auto; border-radius: var(--r); display: block; }
/* Stickers alrededor de la foto, con borde blanco como calcomanía */
.sticker {
  position: absolute; height: auto; pointer-events: none;
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 8px 14px rgba(20, 20, 20, .28));
}
.sticker--cam { width: 38%; top: -7%; right: -13%; transform: rotate(13deg); }
.sticker--kid { width: 62%; bottom: -8%; left: -20%; transform: rotate(-5deg); }
.about__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(24px, 4vw, 56px); }
.acard { border: 1px solid var(--ink); border-radius: 22px; padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.acard p { font-size: 1.05rem; line-height: 1.4; }
.acard b { font-weight: 600; }
@media (max-width: 1180px) and (min-width: 901px) { .about__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li, .tag { background: var(--white); border: 1px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
@media (max-width: 900px) {
  .about__main { grid-template-columns: 1fr; }
  .about__photo { order: -1; width: min(78%, 400px); margin-block: 26px 40px; }
  .sticker--cam { right: -11%; }
  .sticker--kid { left: -13%; }
  .about__cards { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- Contacto */
.contact { background: var(--ink); color: #fff; padding-block: clamp(64px, 9vw, 130px) clamp(40px, 5vw, 70px); }
.contact .label { color: rgba(255, 255, 255, .62); }
.contact__h { font-size: clamp(2.5rem, 7vw, 7rem); margin-top: 18px; text-wrap: balance; }
.contact__h span { display: block; color: rgba(255, 255, 255, .58); }
.contact__h b { display: block; }
.links { margin-top: clamp(36px, 5vw, 72px); border-top: 1px solid rgba(255, 255, 255, .3); }
.links li > * {
  display: grid; grid-template-columns: 9rem 1fr auto; gap: 16px; align-items: baseline;
  padding: clamp(16px, 1.8vw, 24px) 0; border-bottom: 1px solid rgba(255, 255, 255, .3);
  text-decoration: none; color: #fff;
}
.links__v { font-size: clamp(1.15rem, 2.4vw, 2rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.links__arrow { font-size: clamp(1.15rem, 2.2vw, 1.8rem); transition: transform .2s; }
.links a:hover .links__v { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.links a:hover .links__arrow { transform: translate(4px, -4px); }
@media (max-width: 560px) { .links li > * { grid-template-columns: 1fr auto; } .links li .label { grid-column: 1 / -1; } }

/* --------------------------------------------------------------- Footer */
.foot { background: var(--ink); color: #fff; padding-bottom: 26px; overflow: hidden; }
.foot__name { font-size: clamp(2rem, 7.7vw, 8.4rem); font-weight: 300; letter-spacing: -.055em; line-height: 1; white-space: nowrap; padding-block: clamp(18px, 3vw, 46px); }
.foot__name b { font-weight: 700; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .3); }
.foot__row .label { color: rgba(255, 255, 255, .62); }
.foot__row a { color: #fff; text-decoration: none; }
.foot__row a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .foot__name { white-space: normal; font-size: 11.4vw; line-height: .95; } }

/* ----------------------------------------------------- Página de proyecto */
.project { outline: none; padding-top: clamp(84px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 100px); }
@media (max-width: 860px) { .project { padding-top: 124px; } }
/* Encabezado: el texto de la derecha arranca a la altura del nombre del proyecto */
.pj-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(24px, 5vw, 80px); row-gap: 18px; align-items: start;
  grid-template-areas: "back ." "meta ." "title desc" "tags desc";
}
.pj-top__l, .pj-top__r { display: contents; }
.pj-top__l > .pill { grid-area: back; justify-self: start; }
.pj-meta { grid-area: meta; color: var(--muted); margin-top: 14px; }
.pj-title { grid-area: title; font-size: clamp(3rem, 9.4vw, 9rem); font-weight: 700; letter-spacing: -.055em; line-height: .9; overflow-wrap: anywhere; }
.pj-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; }
.pj-desc { grid-area: desc; font-size: clamp(1.1rem, 1.55vw, 1.4rem); line-height: 1.45; letter-spacing: -.01em; max-width: 46ch; padding-top: clamp(2px, .55vw, 8px); }
@media (max-width: 860px) {
  .pj-top { grid-template-columns: 1fr; grid-template-areas: "back" "meta" "title" "tags" "desc"; }
  .pj-desc { padding-top: 6px; }
}

.pj-hero { display: block; width: 100%; margin-top: clamp(28px, 4vw, 56px); padding: 0; border: 0; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: var(--white); cursor: zoom-in; line-height: 0; }
.pj-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 700px) { .pj-hero img { aspect-ratio: 4 / 5; } }
/* Imagen principal apaisada: se muestra entera, en su proporción, sin recortar */
.pj-hero--land:not(.pj-hero--whole) img { aspect-ratio: auto; }
.pj-hero--whole img { object-fit: contain; padding: clamp(14px, 3vw, 44px); }
.pj-hero--nopad img { padding: 0; }
/* Imagen principal vertical que se muestra entera: caja más alta en compu y proporción natural en celular */
.pj-hero--tall img { aspect-ratio: 3 / 2; }
@media (max-width: 700px) { .pj-hero--whole.pj-hero--tall img { aspect-ratio: auto; padding: 0; } }
@media (max-width: 700px) { .pj-hero--whole img { aspect-ratio: 4 / 3; } }

.pj-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(40px, 6vw, 90px); }
.pj-facts__side { display: flex; flex-direction: column; gap: 28px; }
.pj-facts__side > .label, .pj-steps > .label, .digital > .label { color: var(--muted); }
.palette { display: flex; flex-direction: column; gap: 10px; }
.palette__list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.palette__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.palette__dot { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair); display: block; }
.pj-facts__list { border-top: 1px solid var(--ink); }
.pj-facts__list > div { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.pj-facts__list dt { color: var(--muted); }
.pj-facts__list dd { font-size: clamp(1.02rem, 1.3vw, 1.2rem); letter-spacing: -.01em; }
@media (max-width: 760px) {
  .pj-facts { grid-template-columns: 1fr; }
  .pj-facts__list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Historia del proyecto */
.pj-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(12px, 4vw, 64px); padding-bottom: clamp(40px, 6vw, 90px); }
.pj-story > .label { color: var(--muted); }
.pj-story__p { font-size: clamp(1.1rem, 1.55vw, 1.4rem); line-height: 1.45; letter-spacing: -.01em; max-width: 46ch; text-wrap: pretty; }
@media (max-width: 760px) { .pj-story { grid-template-columns: 1fr; } }

/* Galería */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); align-items: center; }
.shot { min-width: 0; }
.shot.is-wide { grid-column: 1 / -1; }
.shot.is-solo { grid-column: 1 / -1; justify-self: center; width: calc((100% - clamp(8px, 1vw, 14px)) / 2); }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #fff; cursor: zoom-in; line-height: 0; }
.shot__btn img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot__btn:hover img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .shot__btn img { transition: none; } .shot__btn:hover img { transform: none; } }
.shot__cap { margin-top: 8px; color: var(--muted); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .shot.is-solo { width: 100%; }
}

/* Galería armada por filas ("rows" en data.js) */
.gallery--rows { display: flex; flex-direction: column; }
/* Cada imagen ocupa un ancho proporcional a su formato, así todas las de la fila quedan a la misma altura */
.grow { display: flex; gap: clamp(8px, 1vw, 14px); align-items: flex-start; }
.grow > .shot { flex: var(--ar, 1) 1 0%; }
.grow:has(.shot__cap) { margin-bottom: clamp(10px, 1.4vw, 20px); }
@media (max-width: 700px) { .grow { flex-direction: column; } .grow > .shot { flex: none; width: 100%; } }

/* Versión digital: pieza larga dentro de un marco que se recorre */
.digital { padding-top: clamp(40px, 6vw, 90px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.digital__frame { width: min(100%, 430px); height: min(78vh, 780px); overflow-y: auto; border: 1px solid var(--ink); border-radius: 28px; background: #fff; overscroll-behavior: contain; }
.digital__frame img { width: 100%; height: auto; }
.digital__hint { color: var(--muted); }

/* Del pedido al resultado */
.pj-steps { padding-top: clamp(48px, 7vw, 110px); }
.pj-steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: 18px; }
.step { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.step__n { color: var(--muted); }
.step__h { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.step p { max-width: 40ch; }
@media (max-width: 860px) { .pj-steps__grid { grid-template-columns: 1fr; } }

/* Próximo proyecto */
.pj-next { margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.pj-next__main { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pj-next__main .label { color: var(--muted); }
.pj-next__title { font-size: clamp(2.8rem, 9vw, 8.4rem); font-weight: 700; letter-spacing: -.055em; line-height: .92; }
.pj-next__main:hover .pj-next__title { text-decoration: underline; text-underline-offset: .08em; text-decoration-thickness: .06em; }
.pj-next__prev { text-decoration: none; color: var(--muted); }
.pj-next__prev:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Visor */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 20, .97); color: #fff; display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; }
.lb__stage { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 56px 0 8px; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 8px; }
.lb__btn { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; width: 64px; height: 64px; align-self: center; }
.lb__btn:hover { opacity: .6; }
.lb__prev { grid-column: 1; grid-row: 1; }
.lb__next { grid-column: 3; grid-row: 1; }
.lb__close { position: absolute; top: 4px; right: 4px; align-self: auto; z-index: 2; }
.lb__bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 16px; padding: 10px var(--gut) 16px; color: #ddd; }
@media (max-width: 700px) {
  .lb { grid-template-columns: 44px 1fr 44px; }
  .lb__btn { width: 44px; font-size: 2rem; }
}
