/* ==========================================================================
   LO_? — Lola Pena · portfolio
   Identidad: PDF "Estética página web".
   Tipografías (Adobe Fonts, kit wzl6caq): neue-haas-grotesk-display + marydale
   ========================================================================== */

:root {
  --ink: #1d1d1b;
  --paper: #f6f6f6;
  --naranja: #ee7428;
  --oliva: #c8b83d;
  --bordo: #8c172d;
  --rosa: #f6b6b8;

  --ink-60: rgba(29, 29, 27, .6);
  --ink-40: rgba(29, 29, 27, .4);
  --ink-12: rgba(29, 29, 27, .12);

  --f-display: "neue-haas-grotesk-display", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "neue-haas-grotesk-text", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-script: "marydale", "Marydale", "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-wobble: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(16px, 3vw, 44px);
  --view-bg: var(--paper);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--view-bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .9s var(--ease-out);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-size: 14px; transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 1.5px solid var(--naranja);
  outline-offset: 4px;
  border-radius: 4px;
}
#main:focus { outline: none; }

.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }

/* Etiquetas de material pendiente (se apagan desde content.js) */
.pending {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- Scroll por vista ----------
   home, proyectos (escritorio), contacto: una pantalla sin scroll.
   sobre mí: scroll vertical.                                      */
body[data-view="home"], body[data-view="contacto"], body.is-intro { overflow: hidden; height: 100dvh; }
@media (min-width: 821px) {
  body[data-view="proyectos"] { overflow: hidden; height: 100dvh; }
}

/* ==========================================================================
   INTRO — logo que se arma
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bordo);
  cursor: pointer;
  display: grid; place-items: center;
  pointer-events: none;
}
.intro.is-done { display: none; }
.intro__stage { width: min(64vw, 560px); }
.intro__stage svg { width: 100%; height: auto; overflow: visible; }
.logo-piece { transform-box: fill-box; transform-origin: 50% 50%; }
/* Antes de que corra JS, las piezas no se ven (evita un frame del logo armado) */
.intro .logo-piece { opacity: 0; }
.logo-svg path { transition: fill .6s var(--ease-out); }

/* ==========================================================================
   MENÚ CÁPSULA
   ========================================================================== */
.nav-wrap {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 12px;
}
.nav {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(246, 246, 246, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(29, 29, 27, .06), 0 6px 24px -10px rgba(29, 29, 27, .25);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
body.nav-ready .nav { opacity: 1; transform: none; }

.nav__link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 400; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  color: var(--ink-60);
  transition: color .3s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__link:focus-visible { outline-offset: -2px; border-radius: 999px; }

/* indicador: pastilla blanca + corchetes que abrazan el activo */
.nav__mark {
  position: absolute; z-index: 0; top: 5px; left: 0;
  height: 34px; width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 27, .08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
  opacity: 0;
}
.nav__mark.is-on { opacity: 1; }
.nav__br {
  font-size: 15px; font-weight: 300; color: var(--naranja);
  line-height: 1; transform: translateY(-1px);
}

@media (max-width: 520px) {
  .nav { gap: 0; padding: 4px; }
  .nav__link { padding: 0 11px; font-size: 13.5px; height: 32px; }
  .nav__mark { top: 4px; height: 32px; padding: 0 4px; }
  .nav__br { font-size: 13px; }
}
@media (max-width: 360px) {
  .nav__link { padding: 0 8px; font-size: 13px; }
}

/* ==========================================================================
   VISTAS
   ========================================================================== */
.view { min-height: 100dvh; }
.view[hidden] { display: none !important; }
.view.is-entering { animation: viewIn .55s var(--ease-out) both; }
.view.is-leaving { animation: viewOut .22s ease-in both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; } }

/* ==========================================================================
   HOME
   ========================================================================== */
.view--home {
  position: relative; height: 100dvh; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.home__media { position: absolute; inset: 0; background: var(--ink) center / cover no-repeat; filter: grayscale(1) contrast(1.06) brightness(.8); }
.home__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.2s var(--ease-inout);
}
.home__media video.is-on { opacity: 1; }

/* Respaldo mientras no hay video: bruma lenta con la paleta */
.home__media.is-placeholder { background: #232321; }
.home__media .haze { position: absolute; inset: -20%; filter: blur(60px); opacity: .85; }
.home__media .haze span {
  position: absolute; border-radius: 50%; mix-blend-mode: screen;
  animation: drift 26s var(--ease-inout) infinite alternate;
}
.home__media .haze span:nth-child(1) { width: 46vw; height: 46vw; left: 8%; top: 18%; background: var(--bordo); }
.home__media .haze span:nth-child(2) { width: 34vw; height: 34vw; left: 52%; top: 8%; background: #6f6828; animation-duration: 31s; animation-delay: -8s; }
.home__media .haze span:nth-child(3) { width: 28vw; height: 28vw; left: 60%; top: 52%; background: #7a3a14; animation-duration: 22s; animation-delay: -4s; }
.home__media .haze span:nth-child(4) { width: 22vw; height: 22vw; left: 26%; top: 60%; background: #7a5556; animation-duration: 35s; animation-delay: -12s; }
@keyframes drift {
  to { transform: translate3d(8vw, -6vh, 0) scale(1.15); }
}

/* Velo mínimo: solo donde hay texto (abajo a la izquierda) */
.home__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(20, 20, 18, .62) 0%, rgba(20, 20, 18, .24) 42%, rgba(20, 20, 18, 0) 68%),
    linear-gradient(to bottom, rgba(20, 20, 18, .22), rgba(20, 20, 18, 0) 18%);
}

.home__content {
  position: absolute; inset: 0;
  padding: calc(var(--gutter) + 64px) var(--gutter) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  column-gap: 32px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .28);
}
.home__logo {
  grid-column: 1; grid-row: 2 / 4;
  width: clamp(160px, 21vw, 300px);
  align-self: end;
  filter: drop-shadow(0 1px 14px rgba(0, 0, 0, .22));
}
.home__logo svg { width: 100%; height: auto; overflow: visible; }
.home__question {
  position: relative;
  grid-column: 2; grid-row: 2;
  max-width: 13ch;
  font-size: clamp(38px, 4.9vw, 84px);
  line-height: 1; letter-spacing: -.025em; font-weight: 300;
  margin-bottom: clamp(22px, 4vh, 44px);
  text-wrap: balance;
}
.home__question .script {
  font-size: 1.06em; letter-spacing: 0; color: var(--rosa);
  line-height: .9;
}
.home__arrow {
  display: block; width: clamp(22px, 2vw, 30px); height: auto;
  color: var(--naranja);
  margin: 0 0 18px auto;
  transform-origin: 100% 0;
}
body.home-ready .home__arrow { animation: arrowNudge 1.4s 1.2s var(--ease-out) both; }
@keyframes arrowNudge { 0% { transform: translate(14px, -14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.home__desc {
  grid-column: 2; grid-row: 3; align-self: end;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 1.4; font-weight: 400;
  max-width: 46ch;
}
.home__desc span { display: block; }
.home__desc span + span { color: rgba(246, 246, 246, .78); }

.home__logo { opacity: 0; }
body.logo-landed .home__logo { opacity: 1; }
.home__content > :not(.home__logo) { opacity: 0; transform: translateY(14px); }
body.home-ready .home__content > :not(.home__logo) {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
body.home-ready .home__question { transition-delay: .12s; }
body.home-ready .home__desc { transition-delay: .32s; }

.pending--home {
  position: absolute; right: var(--gutter); top: calc(var(--gutter) + 64px);
  color: rgba(246, 246, 246, .5);
}

@media (max-width: 820px) {
  .home__content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto auto;
  }
  .home__question { grid-column: 1; grid-row: 2; font-size: clamp(36px, 10.5vw, 60px); margin-bottom: 16px; max-width: 12ch; }
  .home__arrow { margin: 0 0 14px 0; width: 22px; }
  .home__desc { grid-column: 1; grid-row: 3; margin-bottom: 26px; font-size: 14px; }
  .home__desc span { display: inline; }
  .home__desc span + span::before { content: " "; }
  .home__logo { grid-row: 4; width: clamp(130px, 42vw, 200px); }
  .home__veil {
    background:
      linear-gradient(to top, rgba(20, 20, 18, .62) 0%, rgba(20, 20, 18, .22) 50%, rgba(20, 20, 18, 0) 75%),
      linear-gradient(to bottom, rgba(20, 20, 18, .22), rgba(20, 20, 18, 0) 18%);
  }
}

/* ==========================================================================
   MARCOS DE ESQUINAS (Studio Agar)
   ========================================================================== */
.frame { position: relative; --c: 14px; --off: -9px; --cw: 1px; }
.frame__corner {
  position: absolute; width: var(--c); height: var(--c);
  border: 0 solid currentColor; pointer-events: none;
  transition: transform .6s var(--ease-out), opacity .4s, color .4s;
  color: var(--ink);
}
.frame__corner--tl { top: var(--off); left: var(--off); border-top-width: var(--cw); border-left-width: var(--cw); }
.frame__corner--tr { top: var(--off); right: var(--off); border-top-width: var(--cw); border-right-width: var(--cw); }
.frame__corner--bl { bottom: var(--off); left: var(--off); border-bottom-width: var(--cw); border-left-width: var(--cw); }
.frame__corner--br { bottom: var(--off); right: var(--off); border-bottom-width: var(--cw); border-right-width: var(--cw); }
/* hacia adentro: 2×|off| + margen interior.
   Se activa con hover / foco del contenedor interactivo (.frame-host). */
.frame-host:hover .frame__corner--tl, .frame-host:focus-visible .frame__corner--tl { transform: translate(20px, 20px); }
.frame-host:hover .frame__corner--tr, .frame-host:focus-visible .frame__corner--tr { transform: translate(-20px, 20px); }
.frame-host:hover .frame__corner--bl, .frame-host:focus-visible .frame__corner--bl { transform: translate(20px, -20px); }
.frame-host:hover .frame__corner--br, .frame-host:focus-visible .frame__corner--br { transform: translate(-20px, -20px); }
.frame-host:hover .frame__corner, .frame-host:focus-visible .frame__corner { color: var(--corner-in, #fff); opacity: 1; }
.frame.has-ph { --corner-in: var(--ink); }
@media (hover: none) {
  .frame-host:hover .frame__corner { transform: none !important; color: var(--ink); }
}

/* ==========================================================================
   PROYECTOS
   ========================================================================== */
.view--projects { position: relative; }
.projects {
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  padding: 0 var(--gutter);
}

/* ----- Trabajo estrella ----- */
.star {
  align-self: center; justify-self: center;
  display: grid; grid-template-columns: auto; gap: 22px;
  padding-top: 40px;
}
.star__meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60);
}
.star__meta b { font-weight: 500; color: var(--naranja); }
.star__box { position: relative; height: min(58vh, 560px); aspect-ratio: var(--ratio, 2 / 3); }
.star__tilt {
  position: absolute; inset: 0;
  transform-origin: 50% 85%;
  transition: transform .9s var(--ease-wobble);
}
.star__img { position: absolute; inset: 0; overflow: hidden; background: #e7e7e4; }
.star__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.star__box:hover .star__tilt,
.star__box:focus-within .star__tilt { transform: rotate(-2.4deg) skewX(-.6deg) translate3d(-4px, -6px, 0); }
.star__box:hover .star__img img { transform: scale(1.025); }
.star__title { max-width: 30ch; }
.star__kind { font-size: 13px; color: var(--ink-60); margin-bottom: 4px; }
.star__name {
  font-size: clamp(28px, 2.6vw, 42px); line-height: 1; letter-spacing: -.02em; font-weight: 400;
}
.star__soon {
  display: inline-block; margin-top: 10px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-40);
}

/* ----- Rueda ----- */
.wheel {
  position: relative; height: 100dvh;
  perspective: 1400px; perspective-origin: 40% 50%;
  overflow: hidden;
  /* desvanece hacia arriba y abajo para anticipar que hay más */
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 22%, #000 78%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 4%, #000 22%, #000 78%, transparent 96%);
}
.wheel__stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  pointer-events: none; /* el plano del escenario no tapa las portadas en 3D */
}
.wheel { touch-action: none; }
.w-item { pointer-events: auto; }
.wheel__stage:focus-visible { outline: none; }
.wheel__stage:focus-visible .w-item.is-active .frame__corner { color: var(--naranja); }

.w-item {
  --w: clamp(220px, 22vw, 340px);
  position: absolute; left: 34%; top: 50%;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  display: flex; align-items: center; gap: 28px;
}
.w-item--secundario { --w: clamp(170px, 16vw, 250px); }
.w-item__hit {
  display: block; width: 100%; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.w-item__scale {
  transition: transform .6s var(--ease-out);
}
.w-item__img {
  position: relative; overflow: hidden;
  aspect-ratio: var(--wratio, 4 / 3);
  background: #dcdcd8;
  filter: grayscale(1) contrast(1.02);
  transition: filter .7s var(--ease-out);
}
.w-item__img img { width: 100%; height: 100%; object-fit: cover; }
.w-item.is-active .w-item__img { filter: none; }
.w-item .frame__corner { opacity: .35; }
.w-item.is-active .frame__corner { opacity: 1; }

/* hover principal: imagen se amplía + esquinas entran (un solo gesto) */
@media (hover: hover) {
  .w-item--principal .w-item__hit:hover .w-item__scale { transform: scale(1.07); }
  .w-item__hit:hover .frame__corner { opacity: 1; }
  .w-item--secundario .w-item__hit:hover + .w-item__title .w-item__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}

/* Placeholder de portada (material pendiente) */
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 28px;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--ph-bg, #ddd) 70%, transparent) 9px 10px),
    var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink-12);
}
.ph__n { font-size: 12px; letter-spacing: .04em; }
.ph__t { font-size: clamp(18px, 1.7vw, 26px); line-height: 1; letter-spacing: -.02em; font-weight: 300; }
.ph__p { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }

/* título junto a la portada */
.w-item__title {
  position: absolute; left: calc(100% + 30px); top: 50%;
  width: max-content; max-width: 22ch;
  transform: translateY(-50%);
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.w-item__num { display: block; font-size: 11px; letter-spacing: .06em; color: var(--ink-60); margin-bottom: 6px; }
.w-item__kind { display: block; font-size: 13px; color: var(--ink-60); margin-bottom: 4px; }
.w-item__name {
  display: block; font-size: 17px; line-height: 1.05; letter-spacing: -.01em; font-weight: 400;
  transition: font-size .5s var(--ease-out);
}
.w-item--principal.is-active .w-item__name { font-size: clamp(26px, 2.3vw, 36px); letter-spacing: -.02em; }
.w-item--secundario .w-item__name { font-size: 15px; }
.w-item--secundario.is-active .w-item__name { font-size: 19px; }
.w-item__soon { display: block; margin-top: 10px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-40); opacity: 0; transition: opacity .4s; }
.w-item.is-active .w-item__soon { opacity: 1; }

.wheel__ui {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 5;
}
.wheel__btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; color: var(--ink-60);
  box-shadow: inset 0 0 0 1px var(--ink-12);
  transition: color .3s, box-shadow .3s, opacity .3s;
}
.wheel__btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-40); }
.wheel__btn:disabled { opacity: .3; cursor: default; }
.wheel__count { font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink-60); }

/* ----- Proyectos en móvil: primero la estrella, después la rueda horizontal ----- */
@media (max-width: 820px) {
  .projects { height: auto; display: block; padding: 0; }
  .star { padding: 92px 20px 24px; justify-self: stretch; }
  .star__box { height: auto; width: min(74vw, 340px); margin: 0 auto; }
  .star__title { margin: 0 auto; width: min(74vw, 340px); }
  .star__meta { width: min(74vw, 340px); margin: 0 auto; }
  .wheel {
    height: min(78vh, 560px); min-height: 420px;
    perspective-origin: 50% 40%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  }
  .wheel { touch-action: pan-y; }
  .w-item { left: 50%; top: 40%; display: block; --w: min(62vw, 280px); }
  .w-item--secundario { --w: min(50vw, 220px); }
  .w-item__title {
    position: absolute; left: 0; top: calc(100% + 18px); transform: none;
    max-width: 100%; text-align: left;
  }
  .w-item--principal.is-active .w-item__name { font-size: 26px; }
  .wheel__ui {
    top: auto; bottom: 18px; right: 50%; transform: translateX(50%);
    flex-direction: row;
  }
  .wheel__btn span { display: inline-block; transform: rotate(-90deg); }
}

/* ==========================================================================
   CASO (etapa 2)
   ========================================================================== */
.case { padding: 120px var(--gutter) 80px; max-width: 900px; margin: 0 auto; }

/* ==========================================================================
   SOBRE MÍ
   ========================================================================== */
.about {
  padding: clamp(120px, 22vh, 220px) var(--gutter) 18vh;
  max-width: 1280px; margin: 0 auto;
}
.about__headline {
  font-size: clamp(44px, 8.2vw, 136px);
  line-height: .95; letter-spacing: -.035em; font-weight: 300;
  max-width: 12ch;
  text-wrap: balance;
}
.about__headline .strong { font-weight: 500; }
.about__headline .script {
  font-size: 1.08em; letter-spacing: 0; color: var(--bordo);
  display: inline-block; transform: rotate(-3deg) translateY(.04em);
}
.about__label {
  margin: clamp(80px, 16vh, 160px) 0 clamp(36px, 6vh, 64px);
  margin-left: clamp(0px, 22vw, 330px);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60);
}
.about__label span { color: var(--ink); }
.about__ast { color: var(--naranja) !important; }

.manifesto {
  margin-left: clamp(0px, 22vw, 330px);
  max-width: 33ch;
  font-size: clamp(22px, 2.15vw, 33px);
  line-height: 1.32; letter-spacing: -.012em; font-weight: 400;
}
.manifesto p { margin: 0 0 1.35em; }
.manifesto p:nth-child(2n) { margin-left: clamp(0px, 4vw, 56px); }
.manifesto em { font-style: italic; }
.mw {
  --p: 0;
  color: color-mix(in srgb, var(--to) calc(var(--p) * 100%), var(--unread));
  --unread: #a2a29d;
  --to: #555552;
}
.mw.lv-fuerte { --to: var(--ink); font-weight: 500; }
.mw.lv-suave { --to: #8a8a85; }
/* Respaldo para navegadores sin color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .mw { color: var(--unread); transition: color .3s; }
  .mw.is-read { color: var(--to); }
}
.about__end { width: 120px; margin: 18vh 0 0 clamp(0px, 22vw, 330px); }
.about__end svg { width: 100%; height: auto; }
.about .pending { margin-left: clamp(0px, 22vw, 330px); margin-top: 8px; }

@media (max-width: 820px) {
  .about { padding-top: 120px; }
  .about__label, .manifesto, .about__end, .about .pending { margin-left: 0; }
  .manifesto { font-size: 22px; max-width: none; }
  .manifesto p:nth-child(2n) { margin-left: 0; }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.view--contact { height: 100dvh; overflow: hidden; }
.contact {
  height: 100%;
  display: grid; align-content: center;
  padding: 100px var(--gutter) var(--gutter);
  max-width: 1280px; margin: 0 auto;
}
.contact__title {
  font-size: clamp(40px, 7vw, 112px); line-height: .98; letter-spacing: -.03em; font-weight: 300;
  max-width: 14ch;
}
.contact__title .script { color: var(--bordo); letter-spacing: 0; font-size: 1.1em; display: inline-block; transform: rotate(-3deg); }
.contact__sub { margin-top: 22px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.35; color: var(--ink-60); }
.contact__list {
  margin-top: clamp(40px, 8vh, 88px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, max-content)); gap: 18px 56px;
}
.c-item { display: grid; gap: 6px; }
.c-item__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); }
.c-item__value { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.01em; }
.c-item a.c-item__value { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.c-item a.c-item__value:hover { background-size: 100% 1px; }
.c-item__value.is-pending { color: var(--ink-40); font-size: 14px; letter-spacing: .02em; }

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================== */
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .star__tilt, .w-item__scale, .frame__corner, .nav__mark { transition-duration: .2s !important; }
  .star__box:hover .star__tilt, .star__box:focus-within .star__tilt { transform: none; }
  .w-item--principal .w-item__hit:hover .w-item__scale { transform: none; }
  .home__media .haze span { animation: none; }
}


/* ==========================================================================
   FAMILIA DISPLAY en textos grandes (el resto usa neue-haas-grotesk-text)
   ========================================================================== */
.home__question, .star__name, .w-item__name, .about__headline, .manifesto,
.ph__t, .wp, .contact__email { font-family: var(--f-display); }

/* ==========================================================================
   JUEGO DE PALABRAS Y SIGNOS (manual: MAN___IFI :[ES__TO*)
   ========================================================================== */
.wp {
  display: grid; justify-items: start; margin: 0;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(32px, 1.1rem + 3.2vw, 68px);
  line-height: .98; letter-spacing: -.02em;
  cursor: default;
}
.wp__l { display: flex; align-items: flex-end; white-space: nowrap; }
.wp__s { font-weight: inherit; }
.wp__bar {
  display: inline-block; flex: none; width: 2.2em; height: .09em; margin: 0 .14em .07em;
  background: currentColor; transform-origin: 0 50%;
  transition: transform .8s var(--ease-inout) .15s;
}
.wp__bar--s { width: 1.15em; }
.wp__dot {
  display: inline-block; flex: none; width: .26em; height: .26em; margin: 0 0 .14em .1em;
  border-radius: 50%; background: currentColor;
  transition: transform .26s var(--ease-out), opacity .3s;
}
.wp__ast { display: inline-block; transition: transform .26s var(--ease-out); }
.wp__q { display: inline-block; color: var(--naranja); transform-origin: 50% 90%; transition: transform .26s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .wp:hover .wp__ast { transform: rotate(90deg); }
  .wp.is-in:hover .wp__dot { transform: scale(1.35); transition-delay: 0s; }
  .wp:hover .wp__q { transform: rotate(-10deg); }
}
/* entrada: líneas, barras y puntos se arman al entrar al apartado */
.wp .wp__l { opacity: 0; transform: translateX(-.2em); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.wp .wp__bar { transform: scaleX(0); }
.wp .wp__dot { opacity: 0; transform: scale(.5); }
.wp.is-in .wp__l { opacity: 1; transform: none; }
.wp.is-in .wp__l:nth-child(2) { transition-delay: .08s; }
.wp.is-in .wp__l:nth-child(3) { transition-delay: .16s; }
.wp.is-in .wp__bar { transform: scaleX(1); }
.wp.is-in .wp__dot { opacity: 1; transform: scale(1); transition-delay: .35s; }

/* A · PROYECTOS — bordó, signos en naranja */
.wp--a { text-transform: uppercase; color: var(--bordo); font-size: clamp(26px, .8rem + 1.9vw, 46px); }
.wp--a .wp__s, .wp--a .wp__ast { color: var(--naranja); }
.wp--a .wp__bar, .wp--a .wp__dot { background: var(--naranja); }
.wp--a .wp__l--in { padding-left: .9em; }
.wp--a .wp__l--3 { padding-left: .25em; }
/* B · SOBRE MÍ — negro + oliva */
.wp--b { text-transform: uppercase; color: var(--ink); }
.wp--b .wp__l--b { color: var(--oliva); }
/* C · CONTACTO — minúsculas sobre negro: rosa, signos naranja, barras oliva */
.wp--c { color: var(--rosa); font-size: clamp(40px, 1.2rem + 4.6vw, 92px); letter-spacing: -.03em; }
.wp--c .wp__s { color: var(--naranja); margin-right: .04em; }
.wp--c .wp__bar, .wp--c .wp__dot { background: var(--oliva); }
.wp--c .wp__l--in { padding-left: 1.4em; }

/* ---------- Proyectos: título + estrella en la columna izquierda ---------- */
.proj-left {
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.4vh, 40px);
  padding-top: 76px; min-width: 0;
}
.proj-left .star { align-self: start; padding-top: 0; }
.proj-left .star__box { height: min(48vh, 480px); }
@media (max-width: 820px) {
  .proj-left { padding: 92px 20px 0; gap: 28px; }
  .proj-left .star { padding: 0 0 24px; align-self: stretch; }
  .proj-left .star__box { height: auto; }
}

/* ---------- Sobre mí: el título MANIFIESTO reemplaza la etiqueta ---------- */
.about .wp--b { margin: clamp(80px, 16vh, 160px) 0 clamp(36px, 6vh, 64px) clamp(0px, 22vw, 330px); }
@media (max-width: 820px) { .about .wp--b { margin-left: 0; } }

/* ---------- Contacto sobre negro ---------- */
body[data-view="contacto"] { color: var(--paper); }
.view--contact { background: var(--ink); color: var(--paper); }
.contact {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-content: center; align-items: end; gap: 48px clamp(32px, 6vw, 96px);
}
.contact__sub { margin-top: clamp(24px, 4vh, 40px); max-width: 36ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.38; color: rgba(246, 246, 246, .86); }
.contact__side { display: grid; gap: 18px; min-width: 0; }
.contact__hand { font-size: 22px; color: var(--rosa); transform: rotate(-4deg); transform-origin: 0 100%; width: max-content; }
.contact__hand-ast { color: var(--naranja); }
.contact__mail { display: grid; gap: 12px; justify-items: start; }
.contact__email {
  font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.015em; text-decoration: none; color: var(--paper);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--naranja), var(--naranja)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out);
}
.contact__email:hover { background-size: 100% 1px; }
.contact__copy {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  background: var(--paper); color: var(--ink); transition: transform .14s var(--ease-out);
}
.contact__copy:active { transform: scale(.96); }
.contact__list { margin-top: 18px; display: grid; gap: 0; }
.c-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-top: 1px solid rgba(246, 246, 246, .18); text-decoration: none; font-size: 15px; color: var(--paper);
}
.c-row:last-of-type { border-bottom: 1px solid rgba(246, 246, 246, .18); }
.c-row.is-pending { color: rgba(246, 246, 246, .45); font-size: 14px; }
a.c-row:hover span:last-child { color: var(--naranja); }
.c-loc { margin-top: 10px; font-size: 13px; color: rgba(246, 246, 246, .55); }
.view--contact .c-item__value.is-pending { color: rgba(246, 246, 246, .45); }
@media (max-width: 820px) {
  .view--contact { height: auto; min-height: 100dvh; overflow: visible; }
  .contact { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 48px; }
}
body[data-view="contacto"] { overflow: hidden; height: 100dvh; }
@media (max-width: 820px) { body[data-view="contacto"] { overflow: auto; height: auto; } }
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  .wp .wp__l, .wp .wp__bar, .wp .wp__dot { transition: none !important; }
}

/* ajustes de composición */
.contact__side .contact__list { grid-template-columns: 1fr; margin-top: 18px; gap: 0; }
@media (min-width: 821px) {
  .proj-left { padding-top: 72px; gap: clamp(14px, 2.6vh, 32px); }
  .proj-left .star__box { height: min(53vh, 520px); }
  .w-item { --w: clamp(200px, 19vw, 300px); }
  .w-item--secundario { --w: clamp(160px, 14vw, 230px); }
}


/* ==========================================================================
   HOME v3 — frase arriba a la derecha (del medio para arriba)
   ========================================================================== */
.home__claim {
  grid-column: 2; grid-row: 1;
  align-self: start;
  margin-top: clamp(24px, 9vh, 110px);
  max-width: 19ch;
  font-size: clamp(30px, 3.3vw, 56px);
}
.home__headline {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1em; line-height: 1.02; letter-spacing: -.012em;
  text-transform: uppercase;
  text-wrap: balance;
}
.home__tagline {
  margin-top: .55em;
  font-size: clamp(20px, 1.6vw, 28px); line-height: 1.2;
  color: var(--rosa);
}
body.home-ready .home__claim { transition-delay: .12s; }
@media (max-width: 820px) {
  .home__claim { grid-column: 1; grid-row: 1; margin-top: clamp(24px, 6vh, 64px); font-size: clamp(26px, 8vw, 40px); max-width: 16ch; }
  .home__tagline { font-size: 20px; }
}

/* ==========================================================================
   MENÚ v3 — sin cápsula: [ home ] [ proyectos ] [ sobre mí ] [ contacto ]
   Cambian de color al pasar el mouse y al estar elegidos.
   ========================================================================== */
.nav-wrap { --nav-fg: var(--ink); --nav-hi: var(--naranja); }
body[data-view="home"] .nav-wrap, body[data-view="contacto"] .nav-wrap { --nav-fg: var(--paper); }
.nav {
  background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0; gap: clamp(6px, 1.4vw, 22px);
}
.nav__mark { display: none; }
.nav__link {
  height: 36px; padding: 0 2px; border-radius: 4px;
  color: var(--nav-fg); font-size: 15px; font-weight: 400;
  transition: color .25s var(--ease-out);
}
.nav__link::before { content: "["; margin-right: .32em; }
.nav__link::after { content: "]"; margin-left: .32em; }
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current="page"] { color: var(--nav-hi); }
.nav__link[aria-current="page"] { font-weight: 500; }
body[data-view="home"] .nav__link { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
@media (max-width: 520px) {
  .nav { gap: 6px; }
  .nav__link { font-size: 13px; padding: 0; height: 32px; }
  .nav__link::before { margin-right: .2em; }
  .nav__link::after { margin-left: .2em; }
}
@media (max-width: 360px) { .nav__link { font-size: 12px; } }


/* HOME v4 — logo más grande, frase más chica y contra el borde derecho */
.home__logo { width: clamp(210px, 27vw, 420px); }
.home__claim {
  justify-self: end; text-align: right;
  max-width: 21ch;
  font-size: clamp(22px, 2.15vw, 38px);
}
.home__tagline { font-size: clamp(17px, 1.3vw, 23px); }
@media (max-width: 820px) {
  .home__logo { width: clamp(170px, 56vw, 260px); }
  .home__claim { font-size: clamp(22px, 6.6vw, 32px); max-width: 17ch; }
  .home__tagline { font-size: 18px; }
}


/* HOME v5 — frase en minúsculas (como está escrita) y logo más grande */
.home__headline { text-transform: none; letter-spacing: -.015em; line-height: 1.05; font-weight: 400; }
.home__claim { max-width: 20ch; font-size: clamp(24px, 2.4vw, 42px); }
.home__logo { width: clamp(260px, 35vw, 560px); }
@media (max-width: 820px) {
  .home__logo { width: clamp(210px, 72vw, 320px); }
  .home__claim { font-size: clamp(24px, 7vw, 34px); }
}

/* ==========================================================================
   PROYECTOS v3 — estrella grande a la izquierda + recorrido horizontal
   Solo colores de la paleta (#1d1d1b #f6f6f6 #ee7428 #c8b83d #8c172d #f6b6b8)
   ========================================================================== */
.view--projects { background: var(--paper); }
.projects {
  height: 100dvh; padding: 0;
  display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
}
/* — estrella — */
.star {
  align-self: stretch; justify-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 84px 0 28px var(--gutter);
}
.star__box { display: block; position: relative; height: min(72vh, 780px); width: auto; max-width: 100%; aspect-ratio: var(--ratio, 2 / 3); }
.star__img { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.star__title { max-width: 26ch; }
.star__name { font-size: clamp(28px, 2.6vw, 44px); line-height: 1; letter-spacing: -.02em; font-weight: 500; color: var(--ink); }
.star__kind { margin-top: 6px; font-size: 14px; color: rgba(29, 29, 27, .55); }

/* — recorrido — */
.strip {
  position: relative; height: 100dvh; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline: none; }
.strip__track {
  --top: 96px; --bottom: 40px; --cap: 52px;
  list-style: none; margin: 0;
  display: flex; align-items: flex-start; gap: clamp(36px, 4.4vw, 80px);
  width: max-content; height: 100%;
  padding: var(--top) clamp(80px, 9vw, 160px) var(--bottom) clamp(56px, 6vw, 110px);
}
.s-item {
  --h: min(46vh, 470px); --s: 1.45;
  flex: none; position: relative;
  margin-top: calc(var(--y) * (100dvh - var(--top) - var(--bottom) - var(--h) - var(--cap)));
  opacity: 0; transform: translateX(48px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.s-item--secundario { --h: min(28vh, 290px); --s: 1.6; }
.s-item.is-in { opacity: 1; transform: none; }
.s-item:hover, .s-item:focus-within { z-index: 10; }
.s-item__hit { display: block; color: inherit; text-decoration: none; cursor: default; }
a.s-item__hit { cursor: pointer; }
.s-item__hit:focus-visible { outline: none; }
.s-item__img {
  display: block; position: relative; overflow: hidden;
  height: var(--h); aspect-ratio: var(--ratio, 4 / 5);
  transform-origin: 50% 0;
  transition: transform .7s var(--ease-out);
}
.s-item__img img { width: 100%; height: 100%; object-fit: cover; }
.s-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; }
.s-ph span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(29, 29, 27, .55); }
.s-ph--dark span { color: rgba(246, 246, 246, .6); }
.s-item__cap {
  display: grid; gap: 2px; padding-top: 12px; height: var(--cap);
  transition: transform .7s var(--ease-out);
}
.s-item__name {
  font-family: var(--f-display); font-size: 19px; line-height: 1.1; letter-spacing: -.01em;
  color: rgba(29, 29, 27, .38); font-weight: 400;
  transition: color .35s var(--ease-out);
}
.s-item--secundario .s-item__name { font-size: 15px; }
.s-item__kind { font-size: 12px; color: rgba(29, 29, 27, .38); transition: color .35s var(--ease-out); }

/* hover: la imagen crece mucho y el título pasa a negro fuerte */
.s-item__hit:hover .s-item__img, .s-item__hit:focus-visible .s-item__img { transform: scale(var(--s)); }
.s-item__hit:hover .s-item__cap, .s-item__hit:focus-visible .s-item__cap { transform: translateY(calc(var(--h) * (var(--s) - 1))); }
.s-item.is-up .s-item__img { transform-origin: 50% 100%; }
.s-item.is-up .s-item__hit:hover .s-item__cap, .s-item.is-up .s-item__hit:focus-visible .s-item__cap { transform: none; }
.s-item__hit:hover .s-item__name, .s-item__hit:focus-visible .s-item__name { color: var(--ink); font-weight: 500; }
.s-item__hit:hover .s-item__kind, .s-item__hit:focus-visible .s-item__kind { color: var(--ink); }

/* — móvil: primero la estrella, después el recorrido deslizando con el dedo — */
@media (max-width: 820px) {
  .projects { display: block; height: auto; }
  .star { padding: 88px 20px 28px; gap: 14px; }
  .star__box { height: auto; width: 100%; }
  .strip { height: 70vh; min-height: 460px; touch-action: pan-x pan-y; }
  .strip__track { --top: 16px; --bottom: 24px; padding-left: 20px; padding-right: 48px; gap: 28px; }
  .s-item { --h: min(38vh, 320px); --s: 1.18; }
  .s-item--secundario { --h: min(24vh, 210px); --s: 1.3; }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  .s-item, .s-item__img, .s-item__cap { transition-duration: .01ms !important; }
  .s-item { opacity: 1; transform: none; }
}

/* ajustes proyectos v3 */
.star__title { max-width: none; margin: 0; width: auto; }
.strip {
  margin-left: clamp(20px, 2.6vw, 48px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 40px), transparent 100%);
}
@media (max-width: 820px) {
  .strip { margin-left: 0; -webkit-mask-image: none; mask-image: none; }
  .star__box { width: 100%; }
}
/* franja suave detrás del menú en las vistas claras que scrollean (no es una cápsula) */
body[data-view="sobre-mi"] .nav-wrap::before,
body[data-view="mi-mirada"] .nav-wrap::before,
body[data-view="caso"] .nav-wrap::before {
  content: ""; position: absolute; inset: calc(-1 * max(14px, env(safe-area-inset-top))) 0 -18px;
  background: linear-gradient(to bottom, var(--paper) 55%, rgba(246, 246, 246, 0));
  z-index: -1; pointer-events: none;
}
@media (max-width: 820px) {
  body[data-view="proyectos"] .nav-wrap::before {
    content: ""; position: absolute; inset: calc(-1 * max(14px, env(safe-area-inset-top))) 0 -18px;
    background: linear-gradient(to bottom, var(--paper) 55%, rgba(246, 246, 246, 0));
    z-index: -1; pointer-events: none;
  }
}

/* ==========================================================================
   PROYECTOS v4 — todo en un solo recorrido horizontal (la estrella también se desplaza)
   Disposición en dos líneas, grandes y chicos intercalados, marcos de esquinas.
   ========================================================================== */
.projects { display: block; height: 100dvh; }
.strip { margin-left: 0; height: 100dvh;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent 100%);
}
.strip__track {
  --top: 92px; --bottom: 34px; --cap: 44px;
  --band: calc(100dvh - var(--top) - var(--bottom));
  gap: clamp(22px, 2vw, 36px);
  padding: var(--top) clamp(80px, 8vw, 140px) var(--bottom) var(--gutter);
}
.s-item { margin-top: calc(var(--y) * var(--band)); --h: calc(var(--band) * .54); --s: 1.35; }
.s-item--secundario { --h: calc(var(--band) * .32); --s: 1.6; }
.s-item--star { --h: calc(var(--band) - var(--cap)); --s: 1; opacity: 1; transform: none; margin-right: clamp(10px, 1.5vw, 28px); }
.s-item__scale { display: block; transform-origin: 50% 0; transition: transform .7s var(--ease-out); }
.s-item.is-up .s-item__scale { transform-origin: 50% 100%; }
.s-item__frame { display: block; position: relative; }
.s-item__img { transform: none !important; transition: none; }
.s-item__hit:hover .s-item__scale, .s-item__hit:focus-visible .s-item__scale { transform: scale(var(--s)); }
.s-item--star .s-item__scale { transform-origin: 50% 85%; transition: transform .9s var(--ease-wobble); }
.s-item--star .s-item__hit:hover .s-item__scale, .s-item--star .s-item__hit:focus-visible .s-item__scale {
  transform: rotate(-2.2deg) skewX(-.5deg) translate3d(-4px, -6px, 0);
}
.s-item--star .s-item__hit:hover .s-item__cap, .s-item--star .s-item__hit:focus-visible .s-item__cap { transform: none; }
/* leyenda a la derecha, debajo de cada portada (como la referencia) */
.s-item__cap { text-align: right; justify-items: end; padding-top: 10px; }
.s-item--star .s-item__name { font-size: clamp(22px, 1.9vw, 32px); font-weight: 500; color: var(--ink); }
.s-item--star .s-item__kind { color: rgba(29, 29, 27, .55); font-size: 13px; }
/* marcos: L finas apenas por fuera; con el hover entran a la imagen junto con la ampliación */
.s-item .frame__corner { --c: 12px; color: var(--ink); opacity: .9; }
@media (max-width: 820px) {
  .projects { height: auto; }
  .strip { height: 100dvh; min-height: 560px; -webkit-mask-image: none; mask-image: none; }
  .strip__track { --top: 80px; --bottom: 28px; padding-left: 20px; }
  .s-item { --h: calc(var(--band) * .5); --s: 1.15; }
  .s-item--secundario { --h: calc(var(--band) * .3); --s: 1.25; }
  .s-item--star { --h: calc(var(--band) - var(--cap)); --s: 1; }
  body[data-view="proyectos"] { overflow: hidden; height: 100dvh; }
}
@media (max-width: 820px) {
  .s-item--star { --h: min(calc(var(--band) - var(--cap)), 120vw); }
}

/* ==========================================================================
   LOGO arriba a la izquierda (siempre lleva a home)
   ========================================================================== */
.brand {
  position: absolute; left: max(var(--gutter), env(safe-area-inset-left)); top: 2px;
  width: 64px; pointer-events: auto; display: block; border-radius: 4px;
  opacity: 0; transition: opacity .6s var(--ease-out), transform .3s var(--ease-out);
}
body.nav-ready .brand { opacity: 1; }
.brand svg { width: 100%; height: auto; overflow: visible; }
.brand:hover { transform: rotate(-4deg); }
body[data-view="home"] .brand { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .35)); }
@media (max-width: 820px) {
  .nav-wrap { justify-content: flex-end; padding-left: 0; padding-right: 12px; }
  .brand { width: 46px; top: 6px; left: 14px; }
}
@media (max-width: 520px) {
  .nav { gap: 4px; }
  .nav__link { font-size: 12px; }
}

/* ==========================================================================
   PÁGINA DE PROYECTO — Infiltración Infantil
   ========================================================================== */
body[data-view="caso"] { background: var(--paper); }
.view--case { background: var(--paper); }
.case { padding: 0; max-width: none; margin: 0; }
.case__hero {
  min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
  align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: 88px var(--gutter) 48px;
}
.case__book { min-width: 0; display: grid; place-items: center; }
.case__info { align-self: end; padding-bottom: 4vh; max-width: 40ch; }
.case__kind { font-size: 13px; color: rgba(29, 29, 27, .6); margin-bottom: 8px; }
.case__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(32px, 3.2vw, 56px); line-height: .98; letter-spacing: -.025em; margin-bottom: 22px; }
.case__text { font-size: 15.5px; line-height: 1.5; color: rgba(29, 29, 27, .85); margin-bottom: 12px; }
.case__signals { margin: 18px 0 22px; font-size: 19px; line-height: 1.3; color: var(--bordo); }
.case__facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(29, 29, 27, .14); }
.case__facts div { display: grid; grid-template-columns: 9ch 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(29, 29, 27, .14); }
.case__facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(29, 29, 27, .5); padding-top: 2px; }
.case__facts dd { margin: 0; font-size: 14px; line-height: 1.4; }

/* entrada de la página */
.case__info > * { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
body[data-view="caso"]:not(.case-opening) .case__info > * { opacity: 1; transform: none; }
.case__info > *:nth-child(2) { transition-delay: .06s; } .case__info > *:nth-child(3) { transition-delay: .12s; }
.case__info > *:nth-child(4) { transition-delay: .18s; } .case__info > *:nth-child(5) { transition-delay: .24s; }
.case__info > *:nth-child(6) { transition-delay: .3s; }
body.case-opening .case__book { opacity: 0; }
.case__book { transition: opacity .3s; }

/* — libro — */
.fb { --pw: 280px; --ph: 400px; width: 100%; height: var(--ph); position: relative; perspective: 2600px; pointer-events: none; user-select: none; }
.fb__book {
  position: absolute; top: 0; left: 50%; width: calc(var(--pw) * 2); height: var(--ph);
  margin-left: calc(var(--pw) * -1);
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease-inout), opacity .6s var(--ease-out);
}
.fb__book.is-fading { opacity: 0; }
.fb__leaf {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%;
  transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.45, .05, .25, 1);
}
.fb__leaf.is-flipped { transform: rotateY(-180deg); }
.fb__leaf.no-anim { transition: none; }
.fb__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fff; overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(29, 29, 27, .45);
}
.fb__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb__back { transform: rotateY(180deg); }
/* sombra del lomo */
.fb__front::after, .fb__back::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fb__front::after { background: linear-gradient(to right, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 7%); }
.fb__back::after { background: linear-gradient(to left, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 7%); }

/* — frase del medio — */
.case__quote {
  min-height: 78vh; display: grid; place-items: center; text-align: center;
  padding: 10vh var(--gutter);
}
.case__quote p {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 4.4vw, 76px);
  line-height: 1.04; letter-spacing: -.025em; max-width: 17ch; text-wrap: balance;
  opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.case__quote.is-in p { opacity: 1; transform: none; }
.case__quote .q { color: var(--naranja); }

/* — foto + reporte de prensa — */
.case__gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px;
  padding: 4vh var(--gutter) 22vh; align-items: start;
}
.cg { margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.cg.is-in { opacity: 1; transform: none; }
.cg--1 { grid-column: 1 / span 5; }
.cg--2 { grid-column: 7 / span 3; margin-top: 6vh; transition-delay: .1s; }
.cg--3 { grid-column: 10 / span 3; margin-top: 22vh; transition-delay: .2s; }
.cg__frame { display: block; position: relative; }
.cg__frame img { width: 100%; height: auto; display: block; }
.cg--objeto .cg__frame img { filter: drop-shadow(0 30px 40px rgba(29, 29, 27, .28)); }
.cg figcaption { margin-top: 12px; font-size: 12px; color: rgba(29, 29, 27, .55); text-align: right; }
.cg .frame__corner { --c: 12px; }

/* — cerrar — */
.case__close {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: .02em;
  transition: background .25s, transform .2s var(--ease-out);
}
.case__close:hover { background: var(--naranja); }
.case__close:active { transform: translateX(-50%) scale(.97); }

@media (max-width: 820px) {
  .case__hero { grid-template-columns: 1fr; padding-top: 84px; gap: 28px; min-height: 0; }
  .case__info { align-self: start; padding-bottom: 0; }
  .case__quote { min-height: 60vh; }
  .case__gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 36px; }
  .cg--1 { grid-column: 1 / -1; }
  .cg--2 { grid-column: 1 / span 3; margin-top: 0; }
  .cg--3 { grid-column: 4 / span 3; margin-top: 12vh; }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  .fb__leaf, .fb__book { transition-duration: .01ms; }
  .case__quote p, .cg { opacity: 1; transform: none; }
}

/* ==========================================================================
   PROYECTO v2 — sin sombra en el libro, páginas más rápidas, nuevas secciones
   ========================================================================== */
.fb__face { box-shadow: none; }
.fb__leaf { transition-duration: .9s; }
.fb__book { transition-duration: .9s; }

body.case-text-in .case__info > * { opacity: 1; transform: none; }

/* frase después del libro */
.case__quote p { max-width: 16ch; }

/* pieza impresa: foto sin fondo + qué es */
.case__object {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: end; padding: 6vh var(--gutter) 14vh;
}
.co { grid-column: 2 / span 5; margin: 0; }
.co img { width: 100%; height: auto; display: block; }
.co__text { grid-column: 8 / span 4; padding-bottom: 6vh; max-width: 34ch; }
.co__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(29, 29, 27, .55); margin-bottom: 10px; }
.co__desc { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.2; letter-spacing: -.01em; }
.case__object > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.case__object.is-in > * { opacity: 1; transform: none; }
.case__object.is-in .co__text { transition-delay: .15s; }

/* reporte de prensa: se tuercen al pasar el mouse */
.case__press {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start; padding: 4vh var(--gutter) 10vh;
}
.cp__label { grid-column: 2 / span 3; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(29, 29, 27, .55); padding-top: 8px; }
.cp { margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.cp.is-in { opacity: 1; transform: none; }
.cp--1 { grid-column: 5 / span 3; }
.cp--2 { grid-column: 9 / span 3; margin-top: 16vh; transition-delay: .12s; }
.cp__tilt { display: block; position: relative; transform-origin: 50% 85%; transition: transform .9s var(--ease-wobble); }
.cp__tilt img { width: 100%; height: auto; display: block; }
.cp__tilt .frame__corner { --c: 12px; }
.cp:hover .cp__tilt { transform: rotate(-3.2deg) skewX(-1deg) translate3d(-4px, -8px, 0); }
.cp--2:hover .cp__tilt { transform: rotate(3deg) skewX(1deg) translate3d(4px, -8px, 0); }
.cp figcaption { margin-top: 12px; font-size: 12px; color: rgba(29, 29, 27, .55); text-align: right; }

/* frase final */
.case__closing { min-height: 70vh; display: grid; place-items: center; padding: 8vh var(--gutter) 22vh; text-align: center; }
.case__closing p {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 3.4vw, 58px);
  line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance;
  opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.case__closing.is-in p { opacity: 1; transform: none; }
.no-reveal, .no-reveal > * { transition: none !important; }

/* ---------- apertura en mazo ---------- */
.s-item.is-dimmed { opacity: 0 !important; filter: blur(6px); transform: scale(.96) !important; transition: opacity .5s var(--ease-out), filter .5s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.s-item.is-chosen .s-item__cap, .s-item.is-chosen .frame__corner { opacity: 0; transition: opacity .3s; }
.deck { position: fixed; inset: 0; z-index: 140; pointer-events: none; }
.deck__card {
  position: fixed; display: block; margin: 0; object-fit: cover;
  box-shadow: 0 10px 28px -18px rgba(29, 29, 27, .5);
  will-change: transform, left, top, width, height;
}

@media (max-width: 820px) {
  .case__object, .case__press { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .co { grid-column: 1 / -1; }
  .co__text { grid-column: 1 / -1; padding: 24px 0 0; }
  .cp__label { grid-column: 1 / -1; margin-bottom: 16px; }
  .cp--1 { grid-column: 1 / span 3; }
  .cp--2 { grid-column: 4 / span 3; margin-top: 10vh; }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  .case__object > *, .cp, .case__closing p { opacity: 1; transform: none; }
}

/* ==========================================================================
   MENÚ v4 — sin "home" (el logo lleva a home), resaltado en verde oliva
   ========================================================================== */
.nav-wrap { --nav-hi: var(--oliva); }
body[data-view="home"] .brand { opacity: 0 !important; pointer-events: none; }

/* ==========================================================================
   PROYECTO SOBRE BORDÓ (#8c172d)
   ========================================================================== */
body.case-dark[data-view="caso"] { color: var(--paper); }
body.case-dark .view--case { background: transparent; }
body.case-dark[data-view="caso"] .nav-wrap { --nav-fg: var(--paper); }
body.case-dark[data-view="caso"] .nav-wrap::before { background: linear-gradient(to bottom, var(--bordo) 55%, rgba(140, 23, 45, 0)); }
body.case-dark .case__kind, body.case-dark .co__label, body.case-dark .cp__label { color: rgba(246, 246, 246, .62); }
body.case-dark .case__title { color: var(--paper); }
body.case-dark .case__text { color: rgba(246, 246, 246, .88); }
body.case-dark .case__signals { color: var(--rosa); }
body.case-dark .case__facts, body.case-dark .case__facts div { border-color: rgba(246, 246, 246, .22); }
body.case-dark .case__facts dt { color: rgba(246, 246, 246, .55); }
body.case-dark .case__facts dd { color: var(--paper); }
body.case-dark .cp .frame__corner { color: var(--paper); }
body.case-dark .case__close { background: var(--paper); color: var(--ink); }
body.case-dark .case__close:hover { background: var(--oliva); color: var(--ink); }
body.case-dark .deck__card { box-shadow: none; }
.co__label { font-size: 13px; letter-spacing: .06em; }

/* ==========================================================================
   TABLERO DE PALABRAS Y SIGNOS (pregunta y frase final)
   ========================================================================== */
.case__quote, .case__closing { place-items: center start; text-align: left; }
.board {
  margin: 0 auto; width: max-content; max-width: 100%;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(36px, 6.2vw, 112px); line-height: .98; letter-spacing: -.02em;
  color: var(--paper);
}
.case__closing .board { font-size: clamp(30px, 4.6vw, 84px); }
.board > span { display: grid; justify-items: start; }
.bd-row {
  --dx: 0px;
  display: flex; align-items: flex-end; gap: .28em; white-space: nowrap;
  transform: translateX(var(--dx));
  opacity: 0; translate: -.35em 0;
  transition: opacity .7s var(--ease-out), translate .9s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}
.bd-row:nth-child(4n+2) { padding-left: .9em; }
.bd-row:nth-child(4n+3) { padding-left: .15em; }
.bd-row:nth-child(4n) { padding-left: 1.6em; }
.is-in .bd-row { opacity: 1; translate: 0 0; }
.bd-sg { font-weight: inherit; color: var(--rosa); }
.bd-ast { display: inline-block; color: var(--naranja); animation: bdSpin 9s linear infinite; }
.bd-bar {
  display: inline-block; flex: none; width: 2.4em; height: .075em; margin-bottom: .17em;
  background: currentColor; transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1s var(--ease-inout); transition-delay: calc(var(--i) * 90ms + .35s);
}
.bd-bar--s { width: 1.1em; }
.is-in .bd-bar { transform: scaleX(1); }
.bd-dot {
  display: inline-block; flex: none; width: .24em; height: .24em; margin: 0 0 .2em .05em; border-radius: 50%;
  background: currentColor; transform: scale(0);
  transition: transform .5s var(--ease-wobble); transition-delay: calc(var(--i) * 90ms + .9s);
}
.is-in .bd-dot { transform: scale(1); animation: bdPulse 2.6s 1.6s var(--ease-inout) infinite; }
.bd-row--accent em { font-style: italic; color: var(--oliva); font-weight: 700; }
.bd-end { color: var(--naranja); font-style: normal; }
@keyframes bdSpin { to { transform: rotate(360deg); } }
@keyframes bdPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
/* el tablero sobre fondo claro (si otro proyecto no es oscuro) */
body:not(.case-dark) .board { color: var(--ink); }
@media (max-width: 820px) {
  .board { font-size: clamp(30px, 10vw, 56px); }
  .case__closing .board { font-size: clamp(24px, 7.6vw, 44px); }
  .bd-row:nth-child(4n) { padding-left: .9em; }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  .bd-row { opacity: 1; translate: 0 0; transform: none; }
  .bd-bar, .bd-dot { transform: none; transition: none; }
  .bd-ast, .is-in .bd-dot { animation: none; }
}
body.case-dark[data-view="caso"] { background: var(--bordo); }

/* ==========================================================================
   FRASES v2 — 2–3 líneas, pocos signos, mezcla de tipografías, más grandes
   ========================================================================== */
.board {
  font-weight: 300; letter-spacing: -.025em; line-height: 1;
  font-size: clamp(40px, 7.4vw, 132px);
}
.case__closing .board { font-size: clamp(30px, 4.3vw, 78px); line-height: 1.04; }
.bd-row { gap: .24em; padding-left: 0 !important; }
.bd-row:nth-child(2) { padding-left: .9em !important; }
.case__closing .bd-row:nth-child(2) { padding-left: 1.6em !important; }
.bd-b { font-weight: 600; }
.bd-s {
  font-family: var(--f-script); font-weight: 400; letter-spacing: 0;
  color: var(--oliva); font-size: 1.12em; line-height: .8;
  display: inline-block; transform: rotate(-4deg) translateY(.04em);
}
.bd-end { color: var(--naranja); font-weight: 400; margin-left: -.18em; }
.bd-bar { width: 1.6em; height: .06em; margin-bottom: .2em; }
.case__closing .bd-bar { width: 1.2em; }
.bd-dot { width: .2em; height: .2em; }
body.case-dark .bd-sg { color: var(--rosa); }
.case__quote, .case__closing { place-items: center; }

/* ==========================================================================
   FOTO + REPORTE DE PRENSA juntos (menos blanco)
   ========================================================================== */
.case__pieces {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start; padding: 4vh var(--gutter) 8vh;
}
.co { grid-column: 1 / span 5; margin: 0; opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.co.is-in { opacity: 1; transform: none; }
.co img { width: 100%; height: auto; display: block; }
.co .co__label { margin-top: 14px; }
.cp--1 { grid-column: 6 / span 3; margin-top: 10vh; }
.cp--2 { grid-column: 9 / span 3; margin-top: 24vh; }
.cp .cp__label { margin-top: 14px; padding: 0; text-align: left; }
@media (max-width: 820px) {
  .case__pieces { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
  .co { grid-column: 1 / -1; }
  .cp--1 { grid-column: 1 / span 3; margin-top: 0; }
  .cp--2 { grid-column: 4 / span 3; margin-top: 8vh; }
  .board { font-size: clamp(32px, 9.6vw, 60px); }
  .case__closing .board { font-size: clamp(22px, 6.4vw, 40px); }
  .case__closing .bd-row { white-space: normal; flex-wrap: wrap; }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ { .co { opacity: 1; transform: none; } }
.case__quote .board, .case__closing .board { max-width: none; width: max-content; text-wrap: nowrap; font-weight: 300; }
.case__quote .board { font-size: clamp(40px, 7vw, 128px); line-height: 1; }
.case__closing .board { font-size: clamp(28px, 3.5vw, 64px); line-height: 1.06; }
@media (max-width: 820px) {
  .case__quote .board { font-size: clamp(32px, 9.4vw, 60px); }
  .case__closing .board { font-size: clamp(20px, 5.6vw, 36px); width: auto; }
}

/* Pregunta: quieta; lo único que se mueve es "jugar" */
.board--still .bd-row { opacity: 1; translate: 0 0; transform: none; transition: none; }
.board--still .bd-s { animation: jugar 2.8s var(--ease-inout) infinite; transform-origin: 50% 80%; }
@keyframes jugar {
  0%, 100% { transform: rotate(-4deg) translateY(.04em); }
  25% { transform: rotate(3deg) translateY(-.06em); }
  50% { transform: rotate(-6deg) translateY(.02em); }
  75% { transform: rotate(2deg) translateY(-.08em); }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ { .board--still .bd-s { animation: none; } }
/* "jugar" se mueve solo cuando pasás el mouse por encima (o lo tocás) */
.board--still .bd-s { animation: none; cursor: default; pointer-events: auto; transition: transform .5s var(--ease-wobble); }
.board--still .bd-s:hover, .board--still .bd-s:active { animation: jugar 1.4s var(--ease-inout) infinite; }
/* pregunta: los dos signos en blanco */
.board--still .bd-end { color: inherit; }

/* ==========================================================================
   PROYECTO CON FASHION FILM + FOTOS + EVENTO (Oasis en el vértigo, fondo rosa)
   ========================================================================== */
body[data-view="caso"]:not(.case-dark) { background: var(--view-bg, var(--paper)); }
body[data-view="caso"]:not(.case-dark) .view--case { background: transparent; }
body[data-view="caso"]:not(.case-dark) .nav-wrap::before { background: linear-gradient(to bottom, var(--view-bg) 55%, transparent); }
body:not(.case-dark) .case__signals, body:not(.case-dark) .ev__tags { color: var(--bordo); }
body:not(.case-dark) .bd-s { color: var(--bordo); }
body:not(.case-dark) .bd-sg { color: var(--bordo); }

/* film en el lugar del libro */
.case__film { min-width: 0; display: grid; gap: 14px; justify-items: start; }
.film__frame { display: block; position: relative; width: 100%; }
.film__video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.film__frame .frame__corner { --c: 14px; }
.film__sound { font-size: 13px; color: inherit; opacity: .75; transition: opacity .2s, color .2s; }
.film__sound:hover { opacity: 1; color: var(--bordo); }
body.case-dark .film__sound:hover { color: var(--oliva); }
body.case-opening .case__film { opacity: 0; }
.case__film { transition: opacity .3s; }

/* — fotos, vista individual: de a una o de a tres, sin grilla perfecta — */
.case__photos { padding: 4vh var(--gutter) 10vh; }
.ph-individual { display: grid; gap: clamp(60px, 12vh, 140px); }
.pg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 1.8vw, 28px); align-items: start; }
.pg__item { margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.pg.is-in .pg__item { opacity: 1; transform: none; }
.pg.is-in .pg__item--2 { transition-delay: .12s; } .pg.is-in .pg__item--3 { transition-delay: .24s; }
.pg__hit { display: block; width: 100%; padding: 0; position: relative; cursor: default; }
.pg__hit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg__hit .frame__corner { --c: 14px; }
.pg--solo-l .pg__item--1 { grid-column: 2 / span 5; }
.pg--solo-r .pg__item--1 { grid-column: 7 / span 5; }
.pg--solo-c .pg__item--1 { grid-column: 4 / span 5; }
.pg--trio-a .pg__item--1 { grid-column: 1 / span 4; }
.pg--trio-a .pg__item--2 { grid-column: 6 / span 3; margin-top: 18vh; }
.pg--trio-a .pg__item--3 { grid-column: 10 / span 3; margin-top: 6vh; }
.pg--trio-b .pg__item--1 { grid-column: 2 / span 3; margin-top: 10vh; }
.pg--trio-b .pg__item--2 { grid-column: 5 / span 4; }
.pg--trio-b .pg__item--3 { grid-column: 10 / span 3; margin-top: 24vh; }
.pg--solo-l + .pg--solo-r { margin-top: -38vh; }

/* — fotos, vista general: todas chiquitas, una al lado de la otra — */
.ph-general { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 4vh 0 8vh; }
.ph-mini { width: clamp(86px, 9vw, 140px); aspect-ratio: 2 / 3; padding: 0; overflow: hidden; cursor: zoom-in; animation: miniIn .5s var(--ease-out) both; }
.ph-mini img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.ph-mini:hover img, .ph-mini:focus-visible img { transform: scale(1.06); }
@keyframes miniIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.lightbox {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center;
  background: rgba(29, 29, 27, .86); opacity: 0; transition: opacity .3s var(--ease-out); cursor: zoom-out;
}
.lightbox.is-on { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; transform: scale(.94); transition: transform .45s var(--ease-out); cursor: pointer; }
.lightbox.is-on img { transform: none; }
.lb__close { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: var(--paper); font-size: 13px; }

/* — evento de lanzamiento — */
.case__event {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 1.8vw, 28px); row-gap: clamp(28px, 5vh, 60px);
  padding: 8vh var(--gutter) 8vh; align-items: start;
}
.ev__text { grid-column: 1 / span 4; position: sticky; top: 96px; }
.ev__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.ev__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 64px); line-height: .95; letter-spacing: -.025em; margin-bottom: 20px; }
.ev__p { font-size: 15.5px; line-height: 1.5; margin-bottom: 12px; max-width: 40ch; }
.ev__tags { margin-top: 16px; font-size: 20px; line-height: 1.3; }
.ev__slide { margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ev__slide.is-in, .ev__text.is-in { opacity: 1; transform: none; }
.ev__text { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ev__frame { display: block; position: relative; transition: transform .9s var(--ease-wobble); transform-origin: 50% 85%; }
.ev__frame img { width: 100%; height: auto; display: block; }
.ev__frame .frame__corner { --c: 12px; }
.ev__slide:hover .ev__frame { transform: rotate(-1.6deg) translate3d(-3px, -6px, 0); }
.ev__slide:nth-of-type(even):hover .ev__frame { transform: rotate(1.6deg) translate3d(3px, -6px, 0); }
.ev__slide--1 { grid-column: 6 / span 7; grid-row: 1; }
.ev__slide--2 { grid-column: 5 / span 5; grid-row: 2; }
.ev__slide--3 { grid-column: 10 / span 3; grid-row: 2; margin-top: 14vh; }
.ev__slide--4 { grid-column: 6 / span 4; grid-row: 3; margin-top: 4vh; }
.ev__slide--5 { grid-column: 10 / span 3; grid-row: 3; margin-top: 22vh; }
.ev__slide--6 { grid-column: 5 / span 6; grid-row: 4; }
.ev__slide--7 { grid-column: 3 / span 10; grid-row: 5; margin-top: 6vh; }

/* — barra de abajo: vista general / individual + cerrar — */
.case__bar {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--ink);
}
.case__bar .case__close { position: static; transform: none; left: auto; bottom: auto; }
.case__btn {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; letter-spacing: .02em; text-decoration: none;
  color: var(--paper); background: transparent; transition: background .25s, color .25s;
}
.case__btn:hover { background: var(--oliva); color: var(--ink); }
body.case-dark .case__bar { background: var(--paper); }
body.case-dark .case__btn { color: var(--ink); background: transparent; }
body.case-dark .case__btn:hover { background: var(--oliva); }
.case__bar .case__close, body.case-dark .case__bar .case__close { background: transparent; }

@media (max-width: 820px) {
  .pg { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 16px; }
  .pg--solo-l .pg__item--1, .pg--solo-r .pg__item--1, .pg--solo-c .pg__item--1 { grid-column: 1 / span 5; }
  .pg--solo-r .pg__item--1 { grid-column: 2 / span 5; }
  .pg--trio-a .pg__item--1, .pg--trio-b .pg__item--2 { grid-column: 1 / span 4; margin-top: 0; }
  .pg--trio-a .pg__item--2, .pg--trio-b .pg__item--1 { grid-column: 4 / span 3; margin-top: 10vh; }
  .pg--trio-a .pg__item--3, .pg--trio-b .pg__item--3 { grid-column: 2 / span 3; margin-top: 0; }
  .pg--solo-l + .pg--solo-r { margin-top: 0; }
  .case__event { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ev__text { grid-column: 1 / -1; position: static; }
  .ev__slide { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ {
  .pg__item, .ev__slide, .ev__text { opacity: 1; transform: none; }
}
.ev__slide--7 { grid-column: 5 / span 8; }
.ph-mini { width: clamp(64px, 8.2vw, 128px); }
@media (max-width: 820px) { .ph-mini { width: calc((100% - 30px) / 4); } }
.ph-general[hidden], .ph-individual[hidden] { display: none !important; }
.case__btn { white-space: nowrap; }

/* ==========================================================================
   OASIS v2 — fondo oliva, controles del film, presentación del evento
   ========================================================================== */
body:not(.case-dark) .case__signals, body:not(.case-dark) .ev__tags,
body:not(.case-dark) .bd-s, body:not(.case-dark) .bd-sg { color: var(--bordo); }
.case__btn:hover { background: var(--paper); color: var(--ink); }
.film__video { cursor: pointer; }
.film__ctrl { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; width: 100%; font-size: 13px; }
.film__ctrl button { font-size: 13px; opacity: .8; transition: opacity .2s; }
.film__ctrl button:hover { opacity: 1; }
.film__bar { flex: 1 1 120px; height: 14px; display: flex; align-items: center; cursor: pointer; position: relative; }
.film__bar::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; opacity: .3; }
.film__bar i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.film__time { font-variant-numeric: tabular-nums; opacity: .7; min-width: 3.5ch; }
.film__sound:hover { color: inherit; }

.ev__show { grid-column: 6 / span 7; grid-row: 1; margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ev__show.is-in { opacity: 1; transform: none; }
.ev__stage { display: block; position: relative; aspect-ratio: 16 / 9; pointer-events: none; }
.ev__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease-inout); }
.ev__img.is-on { opacity: 1; }
.ev__stage .frame__corner { --c: 14px; }
.ev__dots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; }
.ev__dots i { width: 18px; height: 2px; background: currentColor; opacity: .25; transition: opacity .4s; }
.ev__dots i.is-on { opacity: 1; }
.case__event { align-items: center; min-height: 80vh; }
.ev__text { position: static; }
@media (max-width: 820px) { .ev__show { grid-column: 1 / -1; grid-row: auto; } }
/* sobre fondo oliva, el resaltado del menú pasa a bordó para que se vea */
body[data-view="caso"]:not(.case-dark) .nav-wrap { --nav-hi: var(--bordo); }

/* Controles del film como un reproductor: aparecen sobre el video al pasar el cursor */
.film__frame { overflow: visible; }
.film__frame .film__ctrl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 6px; padding: 28px 14px 12px; width: auto;
  background: linear-gradient(to top, rgba(29, 29, 27, .7), rgba(29, 29, 27, 0));
  color: var(--paper); font-size: 12px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.film__frame:hover .film__ctrl, .film__frame:focus-within .film__ctrl, .film__frame.is-paused .film__ctrl { opacity: 1; transform: none; }
@media (hover: none) { .film__frame .film__ctrl { opacity: 1; transform: none; } }
.film__ctrl button { display: inline-flex; align-items: center; gap: 2px; height: 32px; min-width: 32px; justify-content: center; padding: 0 4px; border-radius: 4px; opacity: .9; color: var(--paper); font-size: 11px; }
.film__ctrl button:hover { opacity: 1; background: rgba(246, 246, 246, .15); }
.film__ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.film__ctrl .i-play { display: none; }
.film__frame.is-paused .i-play { display: block; } .film__frame.is-paused .i-pause { display: none; }
.film__sound .i-on { display: none; } .film__sound.is-on .i-on { display: block; } .film__sound.is-on .i-off { display: none; }
.film__ctrl .film__bar { flex: 1 1 auto; margin: 0 8px; }
.film__ctrl .film__bar::before { opacity: .35; }
.film__ctrl .film__time { opacity: .9; font-size: 12px; }

/* Carrusel de fotos (Oasis) */
.ph-reel { position: relative; height: min(88vh, 900px); min-height: 460px; overflow: hidden; touch-action: pan-y; cursor: grab; margin: 0 calc(-1 * var(--gutter)); outline: none; }
.ph-reel:active { cursor: grabbing; }
.reel__track { position: absolute; inset: 0; }
.reel__item {
  --g: 1; position: absolute; left: 0; top: 50%; aspect-ratio: 2 / 3; padding: 0; display: block;
  filter: grayscale(var(--g)); transition: filter .35s; will-change: transform, width;
}
.reel__item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.reel__item .frame__corner { --c: 14px; opacity: 0; transition: opacity .4s; }
.reel__item.is-center .frame__corner { opacity: 1; }
@media (max-width: 820px) { .ph-reel { height: 70vh; } }
.reel__item { cursor: zoom-in; }
.ph-reel { cursor: default; }

.reel__item { aspect-ratio: var(--rr, 2 / 3); }
.ph-reel[style*='--rr:1.7'] { height: min(70vh, 720px); }

/* MENÚ v5 — proyectos / sobre mí / contacto ; los corchetes aparecen solo en el elegido */
.nav { gap: clamp(8px, 1.2vw, 16px); }
.nav__sep { color: var(--nav-fg); opacity: .55; font-size: 15px; pointer-events: none; }
.nav__link::before, .nav__link::after { display: inline-block; opacity: 0; width: 0; overflow: hidden; transition: opacity .3s var(--ease-out), width .3s var(--ease-out), margin .3s var(--ease-out); margin: 0; }
.nav__link::before { content: "["; } .nav__link::after { content: "]"; }
.nav__link[aria-current="page"]::before { opacity: 1; width: .5em; margin-right: .3em; }
.nav__link[aria-current="page"]::after { opacity: 1; width: .5em; margin-left: .3em; }
@media (max-width: 520px) { .nav__sep { font-size: 12px; } }

/* proyecto oscuro genérico (Ay Not Dead sobre negro) */
body.case-dark[data-view="caso"] { background: var(--view-bg); }
body.case-dark[data-view="caso"] .nav-wrap::before { background: linear-gradient(to bottom, var(--view-bg) 55%, transparent); }
body.case-dark .ev__frame .frame__corner, body.case-dark .ev__stage .frame__corner, body.case-dark .film__frame .frame__corner { color: var(--paper); }
body.case-dark .ev__tags { color: var(--rosa); }
/* sobre fondo naranja, el "?" del logo pasa a negro para que se vea */
body.case-orange[data-view="caso"] .brand [data-piece="?"] path { fill: var(--ink) !important; }

/* ==========================================================================
   ALIEN — galería de fotos (pares grande / chica) + vista grilla
   ========================================================================== */
.case__gal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 19rem);
  gap: clamp(28px, 4vw, 72px); align-items: start;
  padding: 88px var(--gutter) 22vh;
}
.case__gal .case__info { position: sticky; top: 96px; align-self: start; padding-bottom: 0; max-width: none; }
.case__gal .case__title { font-size: clamp(30px, 2.6vw, 46px); }
.case__gal .case__text { font-size: 14.5px; }
.gal__photos { min-width: 0; }
.gal__pair {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 1.6vw, 28px); margin-bottom: clamp(56px, 11vh, 140px);
}
.gal__pair:nth-child(3n+1) .gal__item:nth-child(1) { grid-column: 1 / span 6; }
.gal__pair:nth-child(3n+1) .gal__item:nth-child(2) { grid-column: 9 / span 3; align-self: start; }
.gal__pair:nth-child(3n+2) .gal__item:nth-child(1) { grid-column: 1 / span 3; align-self: end; }
.gal__pair:nth-child(3n+2) .gal__item:nth-child(2) { grid-column: 6 / span 6; }
.gal__pair:nth-child(3n+3) .gal__item:nth-child(1) { grid-column: 2 / span 5; }
.gal__pair:nth-child(3n+3) .gal__item:nth-child(2) { grid-column: 9 / span 4; align-self: end; margin-bottom: 10vh; }
.gal__item { margin: 0; min-width: 0; opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.gal__item.is-in { opacity: 1; transform: none; }
.gal__item:nth-child(2) { transition-delay: .12s; }
.gal__hit { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; transform-origin: 0 0; overflow: hidden; }
.gal__hit img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gal__hit:hover img { transform: scale(1.025); }
.gal__num { margin-top: 8px; font-size: 11px; letter-spacing: .06em; color: rgba(29, 29, 27, .55); font-variant-numeric: tabular-nums; }

/* vista grilla: todas chiquitas, numeradas */
.case__gal[data-mode="grilla"] .gal__photos {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2vh, 28px) clamp(10px, 1.1vw, 18px); align-items: start;
}
.case__gal[data-mode="grilla"] .gal__pair { display: contents; }
.case__gal[data-mode="grilla"] .gal__item { grid-column: auto !important; align-self: start !important; margin: 0 !important; transition-delay: 0s; }
.case__gal[data-mode="grilla"] .gal__hit { cursor: pointer; }
.case__gal[data-mode="grilla"] .gal__hit img { aspect-ratio: 2 / 3 !important; }
.case__gal[data-mode="grilla"] .gal__num { margin-top: 5px; font-size: 10px; }
.case__gal.is-swapping .gal__hit img { transition: none; transform: none; }

@media (max-width: 820px) {
  .case__gal { grid-template-columns: 1fr; padding-top: 84px; }
  .case__gal .case__info { position: static; order: -1; }
  .gal__pair { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 56px; }
  .gal__pair:nth-child(odd) .gal__item:nth-child(1) { grid-column: 1 / span 4; align-self: start; margin: 0; }
  .gal__pair:nth-child(odd) .gal__item:nth-child(2) { grid-column: 4 / span 3; align-self: start; margin: 26vh 0 0; position: relative; z-index: 1; }
  .gal__pair:nth-child(even) .gal__item:nth-child(1) { grid-column: 1 / span 3; align-self: start; margin: 18vh 0 0; }
  .gal__pair:nth-child(even) .gal__item:nth-child(2) { grid-column: 3 / span 4; align-self: start; margin: 0; }
  .case__gal[data-mode="grilla"] .gal__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ { .gal__item { opacity: 1; transform: none; } }
/* foto destacada (la favorita): más grande y arriba de todo */
.gal__pair:nth-child(3n+1) .gal__item--big:nth-child(1) { grid-column: 1 / span 8; }
.gal__pair:nth-child(3n+1) .gal__item--big:nth-child(1) + .gal__item { grid-column: 10 / span 3; align-self: end; }
@media (max-width: 820px) {
  .gal__pair:nth-child(odd) .gal__item--big:nth-child(1) { grid-column: 1 / span 5; }
  .gal__pair:nth-child(odd) .gal__item--big:nth-child(1) + .gal__item { grid-column: 4 / span 3; align-self: start; margin-top: 40vh; }
}
/* marcos en las fotos de la galería (sin números) + frase entre las fotos */
.gal__hit { overflow: visible; }
.gal__hit:hover img { transform: none; }
.gal__hit .frame__corner { --c: 12px; }
.case__gal[data-mode="grilla"] .gal__hit .frame__corner { --c: 8px; --off: -6px; }
.gal__quote { min-height: 0; padding: 4vh 0 clamp(64px, 13vh, 160px); justify-items: center; }
.gal__quote .board { font-size: clamp(36px, 5.4vw, 100px); }
.case__gal[data-mode="grilla"] .gal__quote { display: none; }
@media (max-width: 820px) { .gal__quote .board { font-size: clamp(30px, 9vw, 52px); } }
/* presentación grande arriba (Enredarse) + muchos puntitos en la del TP1 */
.case__show { width: 100%; }
.case__show .ev__stage { width: 100%; }
.ev__dots { flex-wrap: nowrap; }
.ev__dots i { flex: 0 1 18px; min-width: 3px; }
/* en fondo naranja el punto final de las frases no se vería: va en negro */
body.case-orange .bd-end { color: var(--ink); }
/* indicador de página (todos los PDF que se pasan solos) */
.pind { display: flex; align-items: center; gap: 14px; margin-top: 14px; width: 100%; max-width: 100%; }
.pind .ev__dots { flex: 1; margin: 0; justify-content: flex-start; gap: 5px; min-width: 0; }
.pind .ev__dots i { flex: 1 1 18px; max-width: 22px; min-width: 2px; }
.pind__n { font-size: 11px; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .7; }
.pind__n b { font-weight: 500; opacity: 1; }
.case__book .pind { margin-left: auto; margin-right: auto; }
.case__show .pind { width: 100%; }
body.case-opening .pind { opacity: 0; }
/* galería en fondo oscuro (Snark): esquinas y textos claros */
body.case-dark .gal__hit .frame__corner { color: var(--paper); }
body.case-dark .gal__hit { --corner-in: #1d1d1b; }

/* ==========================================================================
   GRILLA DE FONDO — en toda la web menos en la home (ahí está el video)
   ========================================================================== */
:root { --cell: 12.5vw; --grid-c: rgba(29, 29, 27, .075); }
@media (max-width: 820px) { :root { --cell: 25vw; } }
body:not([data-view="home"]):not(#_) {
  background-image:
    linear-gradient(to right, var(--grid-c) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-c) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
body.case-dark[data-view="caso"], body[data-view="contacto"] { --grid-c: rgba(246, 246, 246, .08); }
.view--case, .view--about, .view--projects { background: transparent; }
.view--contact {
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(246, 246, 246, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 246, 246, .08) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}

/* ==========================================================================
   SOBRE MÍ v3 — pregunta en dos renglones delante de la foto, manifiesto que se lee,
   cierre que tacha lo que no busca
   ========================================================================== */
.ab { position: relative; overflow: hidden; padding: 0 0 16vh; }
.ab > * { position: relative; margin-left: var(--gutter); margin-right: var(--gutter); }

/* 1 · pregunta + foto */
.ab-q { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 84px 0 22px; isolation: isolate; }
.ab-q__photo {
  position: absolute; left: 50%; top: 50%; z-index: -1; margin: 0;
  height: min(72vh, 760px); aspect-ratio: 4 / 5; translate: -50% calc(-50% + var(--py, 0px));
}
.ab-q__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.ab-ph { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 18px; background: #e4e4e1;
  background-image: repeating-linear-gradient(135deg, rgba(29, 29, 27, .06) 0 1px, transparent 1px 14px); }
.ab-ph span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); }
.ab-q__t {
  grid-row: 1; align-self: center; width: 100%; margin: 0; text-align: center;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.35vw, 92px); line-height: 1.04; letter-spacing: -.03em;
}
.ab-q__t > span { display: grid; justify-items: center; }
.abq-row {
  display: flex; align-items: baseline; justify-content: center; gap: .24em; white-space: nowrap;
  translate: var(--sx, 0) 0; opacity: 0; transform: translateY(.4em);
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i) * 120ms + 150ms);
}
.ab-q.is-in .abq-row { opacity: 1; transform: none; }
.qw { display: inline-block; will-change: transform; color: var(--ink); }
.qw--b { font-weight: 500; }
.qw--s { font-family: var(--f-script); font-size: 1.08em; letter-spacing: 0; color: var(--bordo); }
.qw--end { color: var(--naranja); font-weight: 500; margin-left: -.2em; }
/* sobre la foto la pregunta se invierte para que siempre se lea */
.ab-q.has-photo .qw:not(.qw--s):not(.qw--end) { color: #f6f6f6; mix-blend-mode: difference; }
.ab-me__row { grid-row: 2; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); background: var(--view-bg); }
.ab-me__row div { padding: 12px 18px 0 0; }
.ab-me__row div + div { border-left: 1px solid var(--ink); padding-left: 18px; }
.ab-me__row dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 6px; }
.ab-me__row dd { margin: 0; font-size: clamp(15px, 1.25vw, 19px); }

/* 2 · manifiesto: gris → negro al leer; lo resaltado → naranja */
.ab .ab-label { margin-top: clamp(110px, 22vh, 220px); margin-bottom: clamp(40px, 8vh, 80px); padding-left: calc(var(--cell) * 2 - var(--gutter)); }
.ab-man { margin-left: var(--gutter); max-width: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: clamp(64px, 13vh, 140px); font-size: clamp(22px, 2.1vw, 34px); line-height: 1.3; }
.ab-man .ab-par { padding-right: 1.2em; }
.ab-man .ab-par:nth-child(1) { grid-column: 1 / span 4; }
.ab-man .ab-par:nth-child(2) { grid-column: 5 / span 4; margin-top: 18vh; }
.ab-man .ab-par:nth-child(3) { grid-column: 2 / span 4; }
.ab-man .ab-par:nth-child(4) { grid-column: 5 / span 4; margin-top: 12vh; }
.ab-man p, .ab-man p:nth-child(2n) { margin: 0; }
.ab-man .mw { --unread: #b4b4af; --to: var(--ink); }
.ab-man .mw.lv-fuerte { --to: var(--naranja); font-weight: 500; }

/* 3 · cierre: cada línea aparece y lo que no busca queda tachado con la raya del logo */
.ab-end { margin-top: clamp(120px, 24vh, 240px); display: grid; row-gap: clamp(18px, 3.5vh, 40px); }
.abl {
  margin: 0; color: var(--ink); text-decoration: none; display: block;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.1vw, 84px); line-height: 1.02; letter-spacing: -.035em;
  opacity: 0; transform: translateY(.35em); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
}
.abl.is-in { opacity: 1; transform: none; }
.abl:nth-child(1) { padding-left: 0; }
.abl:nth-child(2) { padding-left: calc(var(--cell) * .5); }
.abl:nth-child(3) { padding-left: calc(var(--cell) * 1.5); }
.abl__end { white-space: nowrap; }
.abl__a { font-weight: 500; }
.abl__x { position: relative; display: inline-block; color: var(--ink); transition: color .6s .5s; }
.abl__x i {
  position: absolute; left: -.06em; right: -.06em; top: 54%; height: max(3px, .07em); background: var(--naranja);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s .55s var(--ease-inout);
}
.abl.is-in .abl__x { color: #a2a29d; }
.abl.is-in .abl__x i { transform: scaleX(1); }
/* al pasar el mouse por lo tachado, se destacha (y vuelve) */
.abl__x:hover i { transform: scaleX(0) !important; transform-origin: 100% 50%; transition-delay: 0s; }
.abl__x:hover { color: var(--ink) !important; transition-delay: 0s; }
.abl--last { margin-top: clamp(30px, 7vh, 80px); font-size: clamp(38px, 6.6vw, 128px); }
.abl__s { font-style: normal; font-size: 1.08em; letter-spacing: 0; color: var(--bordo); display: inline-block; transition: transform .6s var(--ease-wobble); }
.abl__c { font-weight: 500; color: var(--naranja); }
.abl--last:hover .abl__s { transform: rotate(-3deg) scale(1.04); }
.ab .about__end { margin: 16vh 0 0 calc(var(--cell) * 4 - var(--gutter)); }

@media (max-width: 820px) {
  .ab-q { padding-top: 76px; }
  .ab-q__photo { height: auto; width: 78vw; }
  .ab-q__t { font-size: clamp(30px, 9.4vw, 52px); }
  .abq-row { white-space: normal; flex-wrap: wrap; column-gap: .22em; }
  .ab-me__row { grid-template-columns: 1fr; }
  .ab-me__row div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(29, 29, 27, .2); margin-top: 10px; }
  .ab .ab-label { padding-left: 0; }
  .ab-man { grid-template-columns: 1fr; font-size: 21px; }
  .ab-man .ab-par:nth-child(n) { grid-column: 1; margin-top: 0; }
  .abl { font-size: clamp(30px, 9vw, 48px); }
  .abl:nth-child(n) { padding-left: 0; }
  .abl--last { font-size: clamp(34px, 10.5vw, 56px); }
  .abl__end { white-space: normal; }
  .abl__s { display: inline; }
  .ab .about__end { margin-left: var(--gutter); }
}
@media not all /* reduced-motion desactivado: Windows lo trae activo y dejaba la web quieta */ { .abq-row, .abl { opacity: 1; transform: none; } }

/* — frase de inicio "lo [in] es : pera do tam * bien es posible" (dos columnas con signos) — */
.ab-q__t { font-weight: 600; font-size: min(10.2vh, 8.6vw); line-height: .98; letter-spacing: -.035em; text-align: left; width: auto; }
.ab-q__t > .pz { display: grid; justify-items: start; }
.pz-row { display: grid; grid-template-columns: 1.95em 2.65em; column-gap: .42em; align-items: center; white-space: nowrap; justify-content: start; }
.pz-row--full { grid-template-columns: 1fr; }
.pz-c { display: block; }
.pz-s { font-weight: inherit; color: var(--naranja); }
.pz-bar { display: flex; align-items: center; gap: .14em; width: 100%; height: .9em; }
.pz-bar i { flex: 1; height: max(3px, .075em); background: currentColor; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease-inout); transition-delay: calc(var(--i) * 120ms + 450ms); }
.ab-q.is-in .pz-bar i { transform: scaleX(1); }
.pz-dot { flex: none; width: .24em; height: .24em; border-radius: 50%; background: currentColor; }
.pz-em { font-style: italic; color: var(--oliva); font-weight: 700; padding-top: .06em; }
.ab-q.has-photo .pz-s, .ab-q.has-photo .pz-em { mix-blend-mode: normal; }
.ab-q.has-photo .pz-bar i, .ab-q.has-photo .pz-dot { background: #f6f6f6; }
.ab-q.has-photo .pz-bar { mix-blend-mode: difference; }

/* — manifiesto: la pregunta va primero, normal y en cursiva — */
.ab-man .ab-par:nth-child(1) { grid-column: 1 / span 5; }
.ab-man .ab-par:nth-child(2) { grid-column: 2 / span 4; margin-top: 0; }
.ab-man .ab-par:nth-child(3) { grid-column: 5 / span 4; margin-top: 16vh; }
.ab-man .ab-par:nth-child(4) { grid-column: 2 / span 4; margin-top: 0; }
.ab-man .ab-par:nth-child(5) { grid-column: 5 / span 4; margin-top: 12vh; }

/* — la palabra MANIFIESTO: las rayas se estiran y se achican con el scroll — */
.ab-label .wp__bar { width: var(--b1, 2.2em); transition: transform .8s var(--ease-inout) .15s, width .25s linear; }
.ab-label .wp__bar--s { width: var(--b2, 1.15em); }

@media (max-width: 820px) {
  .ab-q__t { font-size: min(9vh, 15vw); }
  .ab-man .ab-par:nth-child(n) { grid-column: 1; margin-top: 0; }
}

/* — SOBRE MÍ · primera pantalla: "soy lola" arriba, foto al centro, información a los costados (ref. Van Cliff) — */
.ab-hero {
  min-height: 100dvh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: clamp(24px, 4vw, 72px); padding: 88px 0 5vh;
}
.ab-hero__t {
  position: absolute; left: 0; right: 0; top: max(84px, 9vh); z-index: 2; margin: 0; text-align: center;
  display: flex; justify-content: center; gap: calc(.22em + var(--tsp, 0em));
  font-family: var(--f-display); font-weight: 300; font-size: clamp(64px, 11.5vw, 220px); line-height: .82; letter-spacing: -.045em;
  color: var(--ink); pointer-events: none;
  opacity: 0; transform: translateY(.18em); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
.ab-hero.is-in .ab-hero__t { opacity: 1; transform: none; }
.ab-hero__t .qw--b { font-weight: 500; }
.ab-hero.has-photo .ab-hero__t { color: #f6f6f6; mix-blend-mode: difference; }
.ab-hero__photo {
  grid-column: 2; position: relative; margin: calc(clamp(64px, 11.5vw, 220px) * .5) 0 0;
  height: min(68vh, 720px); aspect-ratio: 4 / 5; translate: 0 var(--py, 0px);
}
.ab-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter .8s var(--ease-out); }
.ab-hero__photo:hover img { filter: none; }
.ab-side {
  margin: calc(clamp(64px, 11.5vw, 220px) * .5) 0 0; max-width: 30ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.5; color: var(--ink);
  opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out) .45s, transform 1s var(--ease-out) .45s;
}
.ab-hero.is-in .ab-side { opacity: 1; transform: none; }
.ab-side--l { grid-column: 1; justify-self: end; text-align: right; }
.ab-side--r { grid-column: 3; justify-self: start; }
.ab-side__k { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); }

/* la frase pasa a la segunda pantalla, sola */
.ab-q { min-height: 90dvh; padding: 10vh 0; }
.ab-q .abq-row { opacity: 0; }
.ab-q.is-in .abq-row { opacity: 1; }

@media (max-width: 820px) {
  .ab-hero { grid-template-columns: 1fr; row-gap: 22px; padding-top: 76px; justify-items: center; }
  .ab-hero__t { position: relative; top: 0; grid-row: 1; font-size: clamp(56px, 18vw, 96px); }
  .ab-hero__photo { grid-column: 1; grid-row: 2; height: auto; width: 74vw; margin-top: -.28em; }
  .ab-hero__t + .ab-side { margin-top: 0; }
  .ab-side { margin: 0; max-width: none; justify-self: stretch; text-align: left !important; }
  .ab-side--l { grid-row: 3; } .ab-side--r { grid-row: 4; grid-column: 1; }
}

/* — título de la primera pantalla: "lo ___ [in] es : pera do / tam * bién es posible" — */
.ab-hero__t { display: grid; justify-items: center; row-gap: .02em; font-weight: 400; font-size: clamp(40px, 6.3vw, 124px); line-height: .9; letter-spacing: -.04em; gap: 0; }
.ht-row { display: flex; align-items: baseline; justify-content: center; gap: .26em; white-space: nowrap; }
.ht-bar { width: 2.3em; height: max(3px, .07em); background: currentColor; align-self: center; translate: 0 .1em; }
.ht-gap { width: 1.1em; }
.ht-em { font-style: italic; font-weight: 700; color: var(--oliva); }
.ab-hero.has-photo .ab-hero__t .pz-s, .ab-hero.has-photo .ht-em { mix-blend-mode: normal; }
.ab-hero__photo, .ab-side { margin-top: calc(clamp(40px, 6.3vw, 124px) * 1.05); }
@media (max-width: 820px) {
  .ab-hero__t { font-size: min(7.9vw, 48px); }
  .ht-row { gap: .22em; }
  .ht-bar { width: 1.2em; }
  .ht-gap { width: .35em; }
  .ab-hero__photo { margin-top: -.2em; }
  .ab-side { margin-top: 0; }
}

/* — SOBRE MÍ · primera pantalla v4: frase grande a la izquierda, textos debajo, foto a la derecha más abajo;
     al bajar, la foto sube y pasa por encima de la frase ("se la come") — */
.ab-hero { display: block; min-height: 0; height: 215vh; padding: 0; }
.ab-stage {
  position: sticky; top: 0; height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: 1fr auto;
  column-gap: 4vw; padding: 92px 0 5vh;
}
.ab-stage .ab-pz {
  grid-column: 1; grid-row: 1; align-self: center; justify-self: start; margin: 0; width: auto; text-align: left;
  font-weight: 600; font-size: min(9.6vh, 6.4vw); line-height: .98; letter-spacing: -.035em;
  transform: scale(calc(1 - var(--eat, 0) * .05)); transform-origin: 0 50%;
}
.ab-stage .qw { will-change: auto; }
.ab-hero .abq-row { translate: none; }
.ab-hero.is-in .abq-row { opacity: 1; transform: none; }
.ab-hero.is-in .pz-bar i { transform: scaleX(1); }
.ab-sides { grid-column: 1; grid-row: 2; display: flex; gap: clamp(20px, 3vw, 56px); }
.ab-sides .ab-side {
  margin: 0; max-width: 32ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.5; text-align: left;
  opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out) .5s, transform 1s var(--ease-out) .5s;
}
.ab-hero.is-in .ab-side { opacity: 1; transform: none; }
.ab-stage .ab-hero__photo {
  grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: end; z-index: 3;
  margin: 0 0 -26vh; translate: none; height: min(72vh, 760px); aspect-ratio: 4 / 5; will-change: transform;
}
.ab-stage .ab-hero__photo .ab-ph { box-shadow: 0 30px 60px -30px rgba(29, 29, 27, .35); }
.ab-stage .ab-hero__photo .ab-ph { background-color: #e4e4e1; }

@media (max-width: 820px) {
  .ab-hero { height: 200vh; }
  .ab-stage { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding-top: 80px; row-gap: 22px; }
  .ab-stage .ab-pz { font-size: min(6.4vh, 12.5vw); align-self: start; }
  .ab-sides { grid-row: 2; flex-direction: column; gap: 12px; }
  .ab-sides .ab-side { font-size: 14px; }
  .ab-stage .ab-hero__photo { grid-column: 1; grid-row: 3; width: 58vw; height: auto; margin: 0 0 -30vh; }
}
/* sticky necesita que ningún contenedor recorte con overflow:hidden */
.ab { overflow: visible; overflow-x: clip; }

/* — v5: textos al lado de la foto (a la derecha, alineados a la derecha); foto y textos suben al bajar;
     las rayas de la frase se estiran/achican y el asterisco gira con el scroll — */
.ab-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 17vw) auto; grid-template-rows: 1fr; column-gap: clamp(20px, 2.6vw, 48px); }
.ab-stage .ab-pz { grid-column: 1; grid-row: 1; transform: none; }
.ab-sides {
  grid-column: 2; grid-row: 1; align-self: end; flex-direction: column; gap: 22px; margin-bottom: -6vh;
  text-align: right;
}
.ab-sides .ab-side { max-width: none; text-align: right; }
.ab-stage .ab-hero__photo { grid-column: 3; grid-row: 1; margin: 0 0 -30vh; }
.ab-rise { translate: 0 var(--rise, 0px); will-change: translate; }
.pz-bar i { transform: scaleX(0); }
.ab-hero.is-in .pz-bar i { transform: scaleX(var(--bs, 1)); }
.ab-hero.is-live .pz-bar i { transition: transform .15s linear; transition-delay: 0s; }
.pz-ast { display: inline-block; transform: rotate(var(--ar, 0deg)); transition: transform .12s linear; }

@media (max-width: 820px) {
  .ab-stage { grid-template-columns: minmax(0, 1fr) 50vw; grid-template-rows: auto 1fr; }
  .ab-stage .ab-pz { grid-column: 1 / -1; grid-row: 1; }
  .ab-sides { grid-column: 1; grid-row: 2; margin-bottom: -10vh; gap: 12px; }
  .ab-sides .ab-side { font-size: 12.5px; }
  .ab-stage .ab-hero__photo { grid-column: 2; grid-row: 2; width: 50vw; margin: 0 0 -34vh; }
}
.ab-stage .ab-rise { translate: 0 var(--rise, 0px); }
/* contacto: título más largo ("¿Y si pensamos algo juntas?") */
.wp--c { font-size: clamp(34px, .9rem + 3.4vw, 74px); }
.wp--c .wp__l--in { padding-left: 1.1em; }

/* — SOBRE MÍ v6: 1) la frase a pantalla completa · 2) foto con un texto a cada costado · 3) manifiesto — */
.ab-open { min-height: 100dvh; display: grid; place-items: center; padding: 84px 0 6vh; }
.ab-open__t {
  margin: 0; display: grid; justify-items: start; row-gap: .04em;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6.6vw, 132px); line-height: .95; letter-spacing: -.04em; color: var(--ink);
}
.ab-open .ht-row { display: flex; align-items: baseline; gap: .26em; white-space: nowrap; opacity: 0; transform: translateY(.3em); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i) * 140ms + 100ms); }
.ab-open .ht-row:nth-child(2) { padding-left: 1.1em; }
.ab-open.is-in .ht-row { opacity: 1; transform: none; }
.ab-open .ht-bar { width: 2.4em; height: .9em; background: none; translate: none; display: flex; align-items: center; gap: .12em; }
.ab-open .ht-bar i { flex: 1; height: max(3px, .07em); background: currentColor; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease-inout) .5s; }
.ab-open.is-in .ht-bar i { transform: scaleX(var(--bs, 1)); }
.ab-open.is-live .ht-bar i { transition: transform .15s linear; }
.ab-open .pz-dot { width: .2em; height: .2em; }
.ab-open .ht-gap { width: 1em; }
.ab-open .ht-em { font-style: italic; font-weight: 700; color: var(--oliva); }

.ab-me2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(24px, 4vw, 72px); padding: 6vh 0 4vh; }
.ab-me2__photo { margin: 0; height: min(80vh, 820px); aspect-ratio: 4 / 5; }
.ab-me2__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter .8s var(--ease-out); }
.ab-me2__photo:hover img { filter: none; }
.ab-me2 .ab-side { margin: 0; max-width: 30ch; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.5; opacity: 1; transform: none; }
.ab-me2 .ab-side--l { justify-self: end; text-align: right; }
.ab-me2 .ab-side--r { justify-self: start; text-align: left; }

@media (max-width: 820px) {
  .ab-open__t { font-size: min(7.9vw, 48px); }
  .ab-open .ht-row { gap: .2em; }
  .ab-open .ht-row:nth-child(2) { padding-left: .6em; }
  .ab-open .ht-bar { width: 1.3em; }
  .ab-open .ht-gap { width: .35em; }
  .ab-me2 { grid-template-columns: 1fr; row-gap: 20px; justify-items: center; }
  .ab-me2__photo { height: auto; width: 78vw; grid-row: 1; }
  .ab-me2 .ab-side { max-width: none; justify-self: stretch; text-align: left !important; font-size: 15px; }
}
.wp--c .wp__cm { color: var(--oliva); letter-spacing: .02em; }
/* foto de Lola: blanco y negro, tamaño medio */
.ab-me2__photo { height: min(58vh, 560px); }
.ab-me2__photo img, .ab-me2__photo:hover img { filter: grayscale(1); }
@media (max-width: 820px) { .ab-me2__photo { height: auto; width: 62vw; } }

/* ==========================================================================
   SOBRE MÍ v7 — frase arriba a la izquierda, presentación, manifiesto,
   recorrido (CV) desplegable y cintas de habilidades
   ========================================================================== */
.ab-open { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30vw); grid-template-rows: 1fr auto; place-items: initial; padding: 104px 0 7vh; column-gap: 5vw; }
.ab-open__t { grid-column: 1 / -1; grid-row: 1; align-self: start; justify-self: start; font-size: clamp(44px, 7.4vw, 150px); }
.ab-open .ht-row:nth-child(2) { padding-left: 0; }
.ab-intro { grid-column: 2; grid-row: 2; align-self: end; display: grid; gap: 22px;
  opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
.ab-open.is-in .ab-intro { opacity: 1; transform: none; }
.ab-intro__lead { margin: 0; font-family: var(--f-display); font-size: clamp(19px, 1.55vw, 26px); line-height: 1.25; letter-spacing: -.012em; }
.ab-intro__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 18px; border-top: 1px solid var(--ink); }
.ab-intro .ab-side { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(29, 29, 27, .78); text-align: left; opacity: 1; transform: none; max-width: none; }

/* recorrido */
.ab-cv { margin-top: clamp(120px, 22vh, 220px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); column-gap: 4vw; }
.ab-cv__t { margin: 0; align-self: start; position: sticky; top: 110px; display: grid; font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 3.6vw, 64px); line-height: .95; letter-spacing: -.035em; }
.ab-cv__t .script { font-weight: 400; color: var(--bordo); font-size: .82em; letter-spacing: 0; transform: rotate(-4deg) translateX(.4em); transform-origin: 0 50%; }
.ab-cv__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cvr { border-bottom: 1px solid var(--ink); }
.cvr__head {
  width: 100%; display: grid; grid-template-columns: 10ch minmax(0, 1fr) auto 28px; align-items: baseline; column-gap: 20px;
  padding: 18px 0 16px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.cvr__when { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.cvr__what { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 40px); line-height: 1.05; letter-spacing: -.025em; transition: transform .5s var(--ease-out), color .3s; }
.cvr__where { font-size: 13px; color: var(--ink-60); text-align: right; }
.cvr__pm { position: relative; width: 16px; height: 16px; align-self: center; justify-self: end; }
.cvr__pm::before, .cvr__pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--naranja); transition: transform .4s var(--ease-out); }
.cvr__pm::after { transform: rotate(90deg); }
.cvr.is-open .cvr__pm::after { transform: rotate(0deg); }
.cvr__head:hover .cvr__what { transform: translateX(.35em); }
.cvr.is-open .cvr__what { color: var(--bordo); }
.cvr__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.cvr__body > div { overflow: hidden; }
.cvr.is-open .cvr__body { grid-template-rows: 1fr; }
.cvr__body p { margin: 0; padding: 0 0 22px calc(10ch + 20px); max-width: 62ch; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5; color: rgba(29, 29, 27, .8); }

/* cintas de habilidades / herramientas */
.ab-tape { margin: clamp(110px, 20vh, 200px) calc(var(--gutter) * -1) 0; display: grid; gap: 10px; overflow: hidden; }
.ab-tape__row { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; }
.ab-tape__row--rev { border-top: 0; background: var(--ink); color: var(--paper); }
.tape-track { display: flex; width: max-content; animation: tape 42s linear infinite; }
.ab-tape__row--rev .tape-track { animation-direction: reverse; animation-duration: 30s; }
.ab-tape__row:hover .tape-track { animation-play-state: paused; }
.tape-seg { display: flex; align-items: center; flex: none; }
.tape-seg span { font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 56px); letter-spacing: -.03em; white-space: nowrap; padding: 0 .45em; }
.ab-tape__row--rev .tape-seg span { font-size: clamp(18px, 2vw, 32px); font-weight: 300; }
.tape-sep { color: var(--naranja); font-weight: 500; font-size: clamp(26px, 3.2vw, 56px); }
.ab-tape__row--rev .tape-sep { color: var(--oliva); font-size: clamp(18px, 2vw, 32px); }
@keyframes tape { to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .ab-open { grid-template-columns: 1fr; padding-top: 88px; row-gap: 40px; min-height: 92dvh; }
  .ab-open__t { font-size: min(8.4vw, 52px); }
  .ab-intro { grid-column: 1; }
  .ab-intro__cols { grid-template-columns: 1fr; gap: 12px; }
  .ab-cv { grid-template-columns: 1fr; row-gap: 26px; }
  .ab-cv__t { position: static; }
  .cvr__head { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 4px; }
  .cvr__when { grid-column: 1; }
  .cvr__what { grid-column: 1; }
  .cvr__where { grid-column: 1; text-align: left; }
  .cvr__pm { grid-column: 2; grid-row: 1 / span 3; }
  .cvr__body p { padding-left: 0; }
}
.ab { padding-bottom: 14vh; }

/* — SOBRE MÍ v8: primera parte en negro, "posible" ×3, sin textos — */
.ab-open {
  margin: 0 !important; padding: 104px var(--gutter) 9vh; background: var(--ink); color: var(--paper);
  grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; min-height: 100dvh;
  background-image: linear-gradient(to right, rgba(246, 246, 246, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.ab-open__t { color: var(--paper); align-self: end; }
.ab-pos { display: grid; justify-items: start; padding-left: calc(1.94em); font-family: var(--f-display); font-weight: 700; font-style: italic;
  font-size: clamp(44px, 7.4vw, 150px); line-height: .95; letter-spacing: -.04em; color: var(--oliva); }
.ab-pos__w { display: block; overflow: hidden; padding: 0 .12em .06em 0; }
.ab-pos__w span { display: block; transform: translateY(105%) skewY(6deg); opacity: 0; }
.ab-pos__w:nth-child(1) span { --o: .6; }
.ab-pos__w:nth-child(2) span { --o: .3; }
.ab-open.is-in .ab-pos__w span { animation: posIn .75s cubic-bezier(.2, 1.35, .35, 1) forwards; animation-delay: calc(1.1s + var(--k) * .42s); }
@keyframes posIn { 0% { transform: translateY(105%) skewY(6deg); opacity: 1; } 100% { transform: none; opacity: var(--o); } }
@media (max-width: 820px) { .ab-pos { font-size: min(8.4vw, 52px); padding-left: 1.84em; } }
/* el menú se vuelve claro mientras la parte negra está debajo */
body.ab-dark[data-view="mi-mirada"] .nav-wrap { --nav-fg: var(--paper); }
body.ab-dark[data-view="mi-mirada"] .nav-wrap::before { background: linear-gradient(to bottom, var(--ink) 55%, rgba(29, 29, 27, 0)); }

/* — MENÚ: en la home los corchetes abrazan todo: [ proyectos / sobre mí / contacto ] — */
body[data-view="home"] .nav__link[data-route="proyectos"]::before { opacity: 1; width: .5em; margin-right: .3em; }
body[data-view="home"] .nav__link[data-route="contacto"]::after { opacity: 1; width: .5em; margin-left: .3em; }
.ab-open .qw { color: var(--paper); }
.ab-open .ht-em, .ab-open .pz-s { color: inherit; }
.ab-open .ht-em { color: var(--oliva); }
.ab-open .pz-s { color: var(--naranja); }
.ab-pos { padding-left: var(--pos-x, 1.94em); font-size: inherit; }
.ab-open__t, .ab-pos { font-size: clamp(44px, 7.4vw, 150px); }
@media (max-width: 820px) { .ab-open__t, .ab-pos { font-size: min(8.4vw, 52px); } }
.ab-open { row-gap: 0 !important; }

/* — scroll: la parte negra queda quieta y la blanca sube y la tapa — */
.ab-open { position: sticky; top: 0; z-index: 0; }
.ab-open > * { transform: scale(calc(1 - var(--cover, 0) * .08)); transform-origin: 0 40%; opacity: calc(1 - var(--cover, 0) * .55); }
.ab-rest {
  position: relative; z-index: 1; margin: 0 !important; padding: 1px var(--gutter) 14vh;
  background-color: var(--paper);
  background-image: linear-gradient(to right, var(--grid-c) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-c) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .45);
}
.ab-rest > * { position: relative; }
.ab-rest .ab-man { margin-left: 0; }
.ab-rest .ab-tape { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.ab { padding-bottom: 0; }

/* — "posible": aparecen de golpe — */
.ab-pos__w { overflow: visible; }
.ab-pos__w span { transform: none; opacity: 0; }
.ab-open.is-in .ab-pos__w span { animation: posPum .32s steps(1, end) forwards, posHit .32s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(1.1s + var(--k) * .5s); }
@keyframes posPum { 0% { opacity: 0; } 100% { opacity: var(--o); } }
@keyframes posHit { 0% { transform: scale(1.12); } 100% { transform: none; } }

/* — manifiesto: título a la izquierda, texto a la derecha — */
.ab-rest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); column-gap: 5vw; align-items: start; }
.ab-rest > .ab-label { grid-column: 1; position: sticky; top: 120px; padding-left: 0; margin-bottom: 0; }
.ab-rest > .ab-man { grid-column: 2; margin-top: clamp(110px, 22vh, 220px); display: grid; grid-template-columns: 1fr; row-gap: clamp(40px, 8vh, 90px); }
.ab-rest .ab-man .ab-par:nth-child(n) { grid-column: 1; margin-top: 0; padding-right: 0; }
.ab-rest > .ab-cv, .ab-rest > .ab-tape { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .ab-rest { grid-template-columns: 1fr; }
  .ab-rest > .ab-label { position: static; }
  .ab-rest > .ab-man { grid-column: 1; margin-top: 30px; }
}

/* — cintas: asteriscos rosa en habilidades; herramientas sin cortes — */
.ab-tape__row:not(.ab-tape__row--rev) .tape-sep { color: var(--rosa); }
.ab-tape__row:hover .tape-track { animation-play-state: running; }
.tape-track { will-change: transform; }
.ab-rest { display: block; }
.ab-mwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); column-gap: 5vw; align-items: start; }
.ab-mwrap > .ab-label { grid-column: 1; position: sticky; top: 120px; padding-left: 0; margin-bottom: 0; }
.ab-mwrap > .ab-man { grid-column: 2; margin-top: clamp(110px, 22vh, 220px); display: grid; grid-template-columns: 1fr; row-gap: clamp(40px, 8vh, 90px); }
.ab-mwrap .ab-man .ab-par:nth-child(n) { grid-column: 1; margin-top: 0; padding-right: 0; }
@media (max-width: 820px) {
  .ab-mwrap { grid-template-columns: 1fr; }
  .ab-mwrap > .ab-label { position: static; }
  .ab-mwrap > .ab-man { grid-column: 1; margin-top: 30px; }
}
/* "posible" más rápido */
.ab-open.is-in .ab-pos__w span { animation-delay: calc(.5s + var(--k) * .2s); }
/* cintas: se frenan al pasar el mouse */
.ab-tape__row:hover .tape-track { animation-play-state: paused; }

/* — qué hago · formación · experiencia — */
.ab-facts { margin-top: clamp(110px, 20vh, 200px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); }
.abf { border-top: 1px solid var(--ink); padding-top: 16px; }
.abf__t { margin: 0 0 22px; font-weight: 400; }
.abf__t .script { font-size: clamp(26px, 2.4vw, 40px); color: var(--bordo); display: inline-block; transform: rotate(-3deg); transform-origin: 0 60%; }
.abf__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.abf__l li { display: grid; gap: 4px; padding-left: 18px; position: relative; transition: transform .45s var(--ease-out); }
.abf__l li::before { content: "*"; position: absolute; left: 0; top: .05em; color: var(--naranja); font-weight: 600; transition: transform .45s var(--ease-out); }
.abf__l li:hover { transform: translateX(6px); }
.abf__l li:hover::before { transform: rotate(90deg); }
.abf__n { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 25px); line-height: 1.15; letter-spacing: -.015em; }
.abf__m { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
@media (max-width: 820px) { .ab-facts { grid-template-columns: 1fr; row-gap: 40px; } }

/* — sobre mí: frase centrada — */
.ab-open { justify-items: center; }
.ab-open__t { justify-self: center; align-self: center; }

/* — antes de las cintas: foco grande a la derecha, mini texto al lado, formación/experiencia mínima — */
.ab-facts { display: block; margin-top: clamp(120px, 22vh, 220px); }
.abx__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: clamp(28px, 4vw, 72px); }
.abx__txt { margin: 0; max-width: 34ch; justify-self: end; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: rgba(29, 29, 27, .78); padding-bottom: .5em; }
.abx__big { margin: 0; display: grid; justify-items: end; text-align: right; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 5.6vw, 108px); line-height: .94; letter-spacing: -.045em; }
.abx__amp { font-family: var(--f-script); font-weight: 400; color: var(--naranja); letter-spacing: 0; font-size: 1.05em; }
.abx__big span:last-child { color: var(--bordo); }
.abx__rec { margin-top: clamp(60px, 11vh, 120px); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 72px); }
.abx__gl { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); }
.abx__r { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 18px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(29, 29, 27, .18); font-size: 14px; }
.abx__g .abx__r:last-child { border-bottom: 1px solid rgba(29, 29, 27, .18); }
.abx__w { color: var(--ink-60); }
.abx__y { color: var(--ink-60); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
.ab-tape { margin-top: clamp(90px, 16vh, 160px); }
@media (max-width: 820px) {
  .abx__top { grid-template-columns: 1fr; row-gap: 22px; }
  .abx__big { grid-row: 1; font-size: min(10.5vw, 52px); }
  .abx__txt { justify-self: end; text-align: right; }
  .abx__rec { grid-template-columns: 1fr; row-gap: 30px; }
  .abx__r { grid-template-columns: minmax(0, 1fr) auto; }
  .abx__w { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  .abx__y { grid-column: 2; grid-row: 1; }
}
/* foco todo en negro */
.abx__big, .abx__big span:last-child, .abx__amp { color: var(--ink); }
.abx__amp { font-family: inherit; font-weight: inherit; font-size: inherit; letter-spacing: inherit; }
.abx__txt { max-width: 40ch; }
.abx__txt p { margin: 0 0 .9em; }
.abx__txt p:last-child { margin-bottom: 0; }
/* frase inicial: renglones centrados */
.ab-open__t { justify-items: center; text-align: center; }
.ab-open .ht-row { justify-content: center; }
/* la página termina en la cinta de herramientas */
.ab-rest { padding-bottom: 0; }
.ab-rest > .ab-tape { margin-bottom: 0; }
.ab, .view--about { padding-bottom: 0 !important; }
.ab-tape { padding-bottom: 0; }

/* — SOBRE MÍ (sin la frase): arranca directo con el foco — */
.ab--about .ab-rest--plain { box-shadow: none; background: transparent; padding-top: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.ab--about .ab-facts { margin-top: clamp(120px, 18vh, 190px); }
.ab--about .ab-tape { margin-top: auto; padding-top: clamp(80px, 14vh, 140px); }
.view--mirada .ab-rest { padding-bottom: 18vh; }

/* — frase de "mi mirada": la raya no pasa el punto (solo se acorta) — */
.ab-open .ht-bar i { max-width: 100%; }

/* — manifiesto: lo resaltado se marca como resaltador (ref. imagen) — */
.ab-man .mw.lv-fuerte {
  --to: var(--ink); font-weight: 500; color: var(--ink);
  background-image: linear-gradient(var(--oliva), var(--oliva));
  background-repeat: no-repeat; background-position: 0 55%;
  background-size: calc(var(--p, 0) * 100%) 88%;
  padding: 0 .12em; margin: 0 -.04em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@supports not (color: color-mix(in srgb, red 50%, blue)) { .ab-man .mw.lv-fuerte.is-read { background-size: 100% 88%; } }

/* — logo final de "mi mirada" — */
.ml { position: relative; width: min(520px, 68vw); margin: clamp(140px, 24vh, 240px) auto 0; }
.ml svg { width: 100%; height: auto; display: block; overflow: visible; }
.ml .logo-piece { transition: transform .62s cubic-bezier(.77, 0, .175, 1); }
.ml [data-piece="_"] { transform-origin: left center; transform-box: fill-box; }
.ml__w {
  position: absolute; bottom: 4%; left: 0; white-space: nowrap; pointer-events: none;
  font-size: clamp(30px, 6.4vw, 92px); line-height: 1; color: var(--bordo);
  opacity: 0; transform: translateY(18%); transition: opacity .3s, transform .45s var(--ease-out);
}
.ml__w.is-on { opacity: 1; transform: none; }

/* — sobre mí: arranca con "soy lola" — */
.ab-soy { margin: clamp(110px, 16vh, 170px) 0 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(64px, 13vw, 250px); line-height: .82; letter-spacing: -.055em; color: var(--ink); }
.ab-soy b { font-weight: 700; }
.ab-soy__dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--naranja); margin-left: .04em; }
.ab--about .ab-facts { margin-top: clamp(70px, 12vh, 130px); }
.abx__txt { max-width: 46ch; }
/* manifiesto: lo resaltado vuelve a naranja (sin recuadro) y se enciende antes */
.ab-man .mw.lv-fuerte { --to: var(--naranja); color: color-mix(in srgb, var(--to) calc(var(--p) * 100%), var(--unread)); background: none; padding: 0; margin: 0; }
/* logo más chico; la palabra se apoya sobre la raya */
.ml { width: min(340px, 52vw); }
.ml__w { bottom: 13%; font-size: clamp(22px, 3.4vw, 50px); }
.ml__w { bottom: 19%; padding-left: 3px; }

/* mi mirada: logo chico abajo a la izquierda · soy lola punto bordó */
.ml { width: min(220px, 38vw); margin: clamp(120px, 20vh, 200px) auto 0 0; }
.ab-soy__dot { background: var(--bordo); }
.ml__w { font-size: clamp(17px, 2.2vw, 32px); }
.wp--c { font-size: clamp(30px, .7rem + 3vw, 64px); }
.ml { margin: clamp(120px, 20vh, 200px) auto 0; }
.ml { margin: clamp(120px, 20vh, 200px) clamp(150px, 16vw, 230px) 0 auto; }
/* botón cerrar / barra: rectángulo de vértices rectos */
.case__close, .case__bar, .case__btn { border-radius: 0; }
/* reporte de prensa solo (sin foto del objeto) */
.case__pieces--solo .cp--1 { grid-column: 3 / span 4; margin-top: 0; }
.case__pieces--solo .cp--2 { grid-column: 7 / span 4; margin-top: 14vh; }
@media (max-width: 820px) {
  .case__pieces--solo .cp--1 { grid-column: 1 / span 3; }
  .case__pieces--solo .cp--2 { grid-column: 4 / span 3; margin-top: 8vh; }
}
/* cerrar: vuelve a cambiar de color al pasar / tocar */
.case__bar .case__close:hover, .case__bar .case__close:active, .case__bar .case__close:focus-visible { background: var(--naranja); color: var(--paper); }
body.case-dark .case__bar .case__close:hover, body.case-dark .case__bar .case__close:active, body.case-dark .case__bar .case__close:focus-visible { background: var(--oliva); color: var(--ink); }
.case__close:active { background: var(--naranja); }
body.case-dark .case__close:active { background: var(--oliva); color: var(--ink); }
.gal__quote--long .board { font-size: clamp(28px, 3.9vw, 60px); }
/* palabra manuscrita quieta */
.bd-s.bd-s--fix, .board--still .bd-s.bd-s--fix, .board--still .bd-s.bd-s--fix:hover, .board--still .bd-s.bd-s--fix:active { animation: none !important; transform: rotate(-4deg) translateY(.04em); transition: none; }

/* cerrar: si es negro se pone blanco al pasar, y al revés */
.case__close:hover, .case__close:active, .case__close:focus-visible,
.case__bar .case__close:hover, .case__bar .case__close:active, .case__bar .case__close:focus-visible { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
body.case-dark .case__close:hover, body.case-dark .case__close:active, body.case-dark .case__close:focus-visible,
body.case-dark .case__bar .case__close:hover, body.case-dark .case__bar .case__close:active, body.case-dark .case__bar .case__close:focus-visible { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
/* frases: tachado, dos puntos, asterisco dentro de palabra, corchetes al pasar */
.bd-del { text-decoration: line-through; text-decoration-thickness: .07em; text-decoration-color: var(--naranja); }
.bd-colon { color: var(--naranja); margin-right: 1.2em; }
.bd-ast--in { font-size: .8em; margin: 0 .02em; vertical-align: .25em; }
.bd-s--br { position: relative; cursor: default; }
.bd-s--br::before, .bd-s--br::after { font-family: var(--f-display); font-weight: 300; color: var(--naranja); opacity: 0; transition: opacity .25s, transform .35s var(--ease-out); display: inline-block; }
.bd-s--br::before { content: '['; margin-right: .08em; transform: translateX(.25em); }
.bd-s--br::after { content: ']'; margin-left: .08em; transform: translateX(-.25em); }
.bd-s--br:hover::before, .bd-s--br:hover::after, .bd-s--br:active::before, .bd-s--br:active::after { opacity: 1; transform: none; }
/* presentación de Enredarse: entra en su columna, no tapa el texto */
.case__show { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; }
.case__show .ev__stage { width: 100%; max-width: 100%; }
/* frases con alguna línea larga: un poco más chicas para que no se salgan */
.case__quote .board.board--long, .gal__quote .board.board--long { font-size: clamp(28px, 3.9vw, 62px); }
.gal__quote .board.board--long { font-size: clamp(26px, 3.3vw, 52px); }
/* sobre mí en rosa */
body[data-view="sobre-mi"] { background: var(--view-bg); }
body[data-view="sobre-mi"] .nav-wrap::before { background: linear-gradient(to bottom, var(--view-bg) 55%, transparent); }
body[data-view="sobre-mi"] { --grid-c: rgba(29, 29, 27, .08); }
/* asterisco dentro de una palabra: quieto */
.bd-ast--in { animation: none !important; }
body[data-view="sobre-mi"] { --nav-hi: var(--bordo); }
.ab-tape__row:not(.ab-tape__row--rev) .tape-sep { color: var(--naranja); }

/* cursor: un signo de pregunta chiquito naranja (el ? del logo), solo al pasar por los proyectos para elegirlos */

/* SOBRE MÍ v5 — frase grande a la izquierda (distintos pesos) + columna de datos a la derecha */
.ab--about .ab-facts.abs {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 96px); align-items: start;
  margin-top: clamp(110px, 17vh, 170px);
}
.abs__st {
  margin: 0; position: sticky; top: clamp(90px, 13vh, 120px);
  font-family: var(--f-display); font-size: clamp(40px, 4.7vw, 88px);
  line-height: 1.02; letter-spacing: -.035em; color: var(--ink); text-wrap: pretty;
}
.abs__w300 { font-weight: 300; }
.abs__w500 { font-weight: 500; }
.abs__w700 { font-weight: 700; }
.abs__side { display: grid; row-gap: clamp(30px, 5vh, 46px); padding-top: .6em; }
.abs__h { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.abs__p { margin: 0 0 .9em; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; color: var(--ink); max-width: 52ch; }
.abs__p:last-child { margin-bottom: 0; }
.abs__r { margin: 0; padding: 7px 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.45; color: var(--ink); }
.abs__ar { color: var(--naranja); }
.abs__y { color: rgba(29, 29, 27, .6); }
@media (max-width: 820px) {
  .ab--about .ab-facts.abs { grid-template-columns: 1fr; row-gap: 56px; margin-top: clamp(100px, 16vh, 140px); }
  .abs__st { position: static; font-size: clamp(36px, 10.5vw, 54px); }
  .abs__side { padding-top: 0; }
}
body[data-view="sobre-mi"] .nav-wrap { --nav-hi: var(--bordo); }


/* ==========================================================================
   HOME v6 — el video de fondo con la frase "lo [in] es : pera do…" arriba;
   al bajar, la hoja del manifiesto sube y tapa el video. El logo del intro termina arriba a la izquierda.
   ========================================================================== */
body[data-view="home"]:not(.is-intro) { overflow: visible; overflow-x: clip; height: auto; }
.view--home { height: auto; overflow: visible; background: var(--ink); }
body[data-view="home"] .brand { opacity: 1 !important; pointer-events: auto; }
body.is-intro .brand { opacity: 0 !important; }
/* hero: video en blanco y negro + frase enorme a color */
.home-hero { position: sticky; top: 0; z-index: 0; overflow: hidden; isolation: isolate;
  background: var(--ink) !important; background-image: none !important; }
.home-hero > .home__media, .home-hero > .home__veil { position: absolute; inset: 0; z-index: -1; transform: none !important; opacity: 1 !important; }
.home-hero > .home__media { transform: scale(calc(1 + var(--cover, 0) * .06)) !important; }
.home-hero .home__veil {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(18, 18, 16, .45), rgba(18, 18, 16, .15) 70%),
    linear-gradient(to bottom, rgba(18, 18, 16, .5) 0%, rgba(18, 18, 16, 0) 22%, rgba(18, 18, 16, 0) 70%, rgba(18, 18, 16, .55) 100%);
}
.home-hero .ab-open__t { position: relative; z-index: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); font-size: clamp(44px, 6.9vw, 150px); }
.home-hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; z-index: 1;
  transform: none !important; opacity: calc(1 - var(--cover, 0) * 1.6) !important;
}
.home-hero__foot .home__tagline { margin: 0; color: var(--rosa); font-size: clamp(20px, 1.8vw, 30px); text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.home-hero__down { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.home-hero__down i { font-style: normal; font-size: 22px; color: var(--naranja); animation: downNudge 1.6s var(--ease-inout) infinite; }
@keyframes downNudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
/* la frase entra cuando termina el logo (no mientras está la entrada) */
body.is-intro .home-hero .ht-row { opacity: 0 !important; transition: none !important; }
/* menú: claro sobre el video; oscuro cuando la hoja blanca ya subió */
body[data-view="home"].ab-dark .nav-wrap { --nav-fg: var(--paper); }
body[data-view="home"]:not(.ab-dark) .nav-wrap { --nav-fg: var(--ink); }
body[data-view="home"]:not(.ab-dark) .nav__link { text-shadow: none; }
body[data-view="home"]:not(.ab-dark) .brand { filter: none; }
body[data-view="home"]:not(.ab-dark) .nav-wrap::before { content: ""; position: absolute; inset: calc(-1 * max(14px, env(safe-area-inset-top))) 0 -18px; background: linear-gradient(to bottom, var(--paper) 55%, rgba(246, 246, 246, 0)); z-index: -1; pointer-events: none; }

.view--home .ab-rest { padding-bottom: 14vh; }
@media (max-width: 820px) {
  .home-hero .ab-open__t { font-size: min(9.2vw, 56px); }
  .home-hero__foot { flex-direction: row; }
  .home-hero__down span { display: none; }
}

/* HOME — la frase más grande y con una entrada más potente:
   cada pieza sube desde abajo con desenfoque, los signos naranjas "saltan", las rayas se dibujan y "posible" cae de golpe */
.home-hero .ab-open__t { font-size: clamp(48px, 7.7vw, 168px); }
.home-hero .ht-row { opacity: 1 !important; transform: none !important; transition: none !important; }
.home-hero .ht-row > * { display: inline-flex; opacity: 0; }
body:not(.is-intro) .home-hero.is-in .ht-row > * {
  animation: tokUp 1.05s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(.15s + var(--k, 0) * 95ms);
}
body:not(.is-intro) .home-hero.is-in .ht-row > .ht-gap { animation: none; }
body:not(.is-intro) .home-hero.is-in .ht-row .pz-s {
  display: inline-block;
  animation: tokPop .8s cubic-bezier(.2, 1.7, .35, 1) backwards;
  animation-delay: calc(.55s + var(--k, 0) * 95ms);
}
body:not(.is-intro) .home-hero.is-in .ht-row > .ht-em {
  animation: tokSlam .9s cubic-bezier(.2, 1.25, .3, 1) both;
  animation-delay: calc(.5s + var(--k, 0) * 95ms);
  transform-origin: 30% 80%;
}
.home-hero .ht-bar i { transition: transform 1s var(--ease-inout) !important; transition-delay: calc(.4s + var(--k, 0) * 95ms) !important; }
/* cuando terminó la entrada: las rayas y el asterisco vuelven a moverse con el scroll, al instante */
body.hero-settled .home-hero .ht-bar i { transition: transform .15s linear !important; transition-delay: 0s !important; }
body.is-intro .home-hero .ht-bar i { transform: scaleX(0) !important; }
@keyframes tokUp {
  0% { opacity: 0; transform: translateY(.55em) rotate(5deg); filter: blur(14px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes tokPop {
  0% { opacity: 0; transform: scale(2.6) rotate(-25deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes tokSlam {
  0% { opacity: 0; transform: scale(2.2) rotate(-6deg); filter: blur(18px); }
  55% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 820px) { .home-hero .ab-open__t { font-size: min(9vw, 62px); } }

/* menú en la home: los corchetes rodean todo el menú mientras se ve el video */
body[data-view="home"] .nav__link[data-route="proyectos"]::before { opacity: 1; width: .5em; margin-right: .3em; }
body[data-view="home"] .nav__link[data-route="contacto"]::after { opacity: 1; width: .5em; margin-left: .3em; }
/* proyectos: mientras los trabajos vuelan y arman el "?", sin clicks ni textos */
.strip.is-flying { pointer-events: none; }
.strip.is-flying .s-item__cap { opacity: 0; }
.s-item__cap { transition: opacity .5s var(--ease-out); }
.view--projects.is-entering { animation: none; }
.strip.pre-fly .s-item { opacity: 0 !important; }

/* Intro más chico · después: el logo arriba al centro y el menú arriba a la izquierda */
.intro__stage { width: min(38vw, 330px); }
.brand { left: calc(50% - 32px); }
.nav-wrap { justify-content: flex-start; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: 12px; }
@media (max-width: 820px) {
  .intro__stage { width: min(56vw, 260px); }
  .brand { width: 40px; left: calc(50% - 20px); top: 4px; }
  .nav-wrap { justify-content: flex-start; padding-left: 10px; padding-top: 18px; }
}

/* HOME — texto centrado entre el video y el manifiesto: gris que se vuelve negro al bajar */
.hx {
  max-width: 30ch; margin: 0 auto; padding: clamp(110px, 20vh, 200px) 0 clamp(60px, 12vh, 140px);
  text-align: center; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(26px, 2.9vw, 50px); line-height: 1.16; letter-spacing: -.02em;
}
.hx p { margin: 0; text-wrap: pretty; }
.hx p + p { margin-top: .9em; }
.hx__w { color: rgba(29, 29, 27, .2); transition: color .45s var(--ease-out); }
.hx__w.is-on { color: var(--ink); }
@media (max-width: 820px) { .hx { max-width: none; font-size: clamp(22px, 6.4vw, 30px); padding-top: 90px; } }

/* cortina naranja entre secciones */
.wipe {
  position: fixed; inset: 0; z-index: 95; background: var(--naranja); visibility: hidden;
  transform: translateY(100%); display: grid; place-items: center; pointer-events: none;
}
.wipe__mark { width: clamp(90px, 9vw, 140px); opacity: 0; }
.wipe__mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.hx { font-size: clamp(20px, 2vw, 34px); max-width: 36ch; }
@media (max-width: 820px) { .hx { font-size: clamp(18px, 5.2vw, 24px); max-width: none; } }

/* ==========================================================================
   PROYECTOS v5 — en la grilla del fondo: cada trabajo ocupa un bloque de cuadros
   (la estrella 3×4, los principales 2×3 o 3×2, los secundarios 2×2)
   ========================================================================== */
body[data-view="proyectos"] { overflow: visible; overflow-x: clip; height: auto; }
.projects { height: auto !important; display: block; padding: 0; }
.strip.is-grid { height: auto !important; overflow: visible; margin: 0; -webkit-mask-image: none; mask-image: none; touch-action: auto; }
.strip.is-grid .strip__track {
  position: relative; display: block; width: 100%; height: calc(var(--rows, 14) * var(--cell)); padding: 0; margin: 0; gap: 0;
}
.strip.is-grid .s-item {
  --pad: clamp(10px, 1.1vw, 18px);
  position: absolute; margin: 0 !important;
  left: calc(var(--gc) * var(--cell)); top: calc(var(--gr) * var(--cell));
  width: calc(var(--gw) * var(--cell)); height: calc(var(--gh) * var(--cell));
  padding: var(--pad);
  transition: opacity .45s var(--ease-out), filter .45s var(--ease-out);
}
.strip.is-grid .s-item__hit { width: 100%; height: 100%; display: block; }
.strip.is-grid .s-item__scale, .strip.is-grid .s-item__frame { width: 100%; height: 100%; transform: none !important; }
.strip.is-grid .s-item__img { width: 100%; height: 100%; aspect-ratio: auto; transform: none !important; }
.strip.is-grid .s-item__img img { transition: transform .9s var(--ease-out); }
.strip.is-grid .s-item__cap { display: none; }
.strip.is-grid .s-item__hit:hover .s-item__img img { transform: scale(1.04); }
/* al pasar: los demás se apagan y aparece el logo con la portada en el centro */
.strip.is-grid.is-hovering .s-item { opacity: .14; filter: grayscale(1); }
.strip.is-grid.is-hovering .s-item.is-hot { opacity: .3; }
.pjx {
  position: fixed; left: 0; right: 0; top: 50%; z-index: 40; pointer-events: none;
  --lh: clamp(90px, 17vh, 190px);
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 1.6vw, 26px);
  transform: translateY(-50%); opacity: 0; transition: opacity .25s var(--ease-out);
}
.pjx.is-on { opacity: 1; }
.pjx__lo, .pjx__q { display: block; height: var(--lh); }
.pjx__lo svg, .pjx__q svg { height: 100%; width: auto; display: block; overflow: visible; }
.pjx__img { display: block; height: var(--lh); width: 0; overflow: hidden; position: relative; background: var(--ink); }
.pjx__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pjx.is-on .pjx__img { width: calc(var(--lh) * var(--ir, .75)); transition: width .7s cubic-bezier(.77, 0, .175, 1) .05s; }
.pjx__name, .pjx__kind {
  align-self: center; max-width: 18ch; font-family: var(--f-display); font-size: clamp(18px, 1.7vw, 30px);
  line-height: 1.05; letter-spacing: -.01em; color: var(--ink); opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out) .25s, transform .6s var(--ease-out) .25s;
}
.pjx__name { font-weight: 600; text-align: right; }
.pjx__kind { font-weight: 300; }
.pjx.is-on .pjx__name, .pjx.is-on .pjx__kind { opacity: 1; transform: none; }
/* celular: sin hover; el nombre va sobre la foto */
@media (max-width: 820px) {
  .pjx { display: none; }
  .strip.is-grid .s-item { --pad: 6px; }
  .strip.is-grid .s-item__cap { display: block; position: absolute; left: calc(var(--pad) + 8px); bottom: calc(var(--pad) + 6px); right: 8px; height: auto; padding: 0; z-index: 2; }
  .strip.is-grid .s-item__name { color: var(--paper); font-size: 13px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
  .strip.is-grid .s-item__kind { display: none; }
}
/* proyectos en blanco y negro · en el hover la portada es más grande que el logo */
.strip.is-grid .s-item__img img { filter: grayscale(1); }
.pjx { --lh: clamp(64px, 11vh, 120px); --ih: calc(var(--lh) * 2.4); }
.pjx__img { height: var(--ih); }
.pjx.is-on .pjx__img { width: calc(var(--ih) * var(--ir, .75)); }
.pjx__name, .pjx__kind { align-self: flex-end; margin-bottom: calc(var(--lh) * .36); }
/* hover de proyectos: nombre y tipo más lejos del logo y con otra tipografía */
.pjx__name, .pjx__kind { max-width: 16ch; }
.pjx__name {
  margin-right: clamp(36px, 5vw, 96px);
  font-family: var(--f-script); font-weight: 400; letter-spacing: 0;
  font-size: clamp(26px, 2.5vw, 44px); line-height: 1; color: var(--bordo);
}
.pjx__kind {
  margin-left: clamp(36px, 5vw, 96px);
  font-family: var(--f-text); font-weight: 500; text-transform: uppercase;
  font-size: clamp(11px, .85vw, 14px); letter-spacing: .16em; line-height: 1.5; color: var(--ink);
}
.pjx__name, .pjx__kind { color: var(--ink); }
/* el logo y la portada nunca se achican; el nombre y el tipo se acomodan sin salirse de la pantalla */
.pjx { padding: 0 var(--gutter); }
.pjx__lo, .pjx__img, .pjx__q { flex: none; }
.pjx__name, .pjx__kind { flex: 0 1 auto; min-width: 0; overflow-wrap: break-word; }
.pjx__name { margin-right: clamp(18px, 3vw, 64px); }
.pjx__kind { margin-left: clamp(18px, 3vw, 64px); max-width: 14ch; }
.pjx__kind { max-width: 24ch; }

/* hover de proyectos v3: el logo siempre visible y entero, las palabras nunca se cortan */
.pjx { --lh: clamp(46px, min(11vh, 7.2vw), 120px); --ih: calc(var(--lh) * 2.4); display: flex !important; padding: 0 clamp(16px, 3vw, 48px); }
.pjx__lo svg { width: calc(var(--lh) * 1.512); height: var(--lh); }
.pjx__q svg { width: calc(var(--lh) * .591); height: var(--lh); }
.pjx__name, .pjx__kind { overflow-wrap: normal; word-break: normal; hyphens: none; flex: 0 1 auto; min-width: min-content; }
.pjx__name { font-size: clamp(18px, 2.1vw, 44px); max-width: 12em; margin-right: clamp(14px, 2.6vw, 56px); }
.pjx__kind { font-size: clamp(10px, .82vw, 14px); max-width: 18em; margin-left: clamp(14px, 2.6vw, 56px); }
@media (hover: none) { .pjx { display: none !important; } }
/* en pantallas con mouse no hacen falta los nombres sobre las fotos */
@media (max-width: 820px) and (hover: hover) and (pointer: fine) { .strip.is-grid .s-item__cap { display: none; } }
/* nombres sobre las fotos (celular): enteros, sin cortar palabras */
.strip.is-grid .s-item__name { overflow-wrap: normal; word-break: normal; hyphens: none; }
/* cortina: solo el naranja, sin logo */
.wipe__mark { display: none; }
/* proyectos: cursor normal (sin el signo de pregunta) */
a.s-item__hit, a.s-item__hit * { cursor: pointer; }
.strip.is-grid .s-item.is-tiny { --pad: clamp(8px, .8vw, 14px); }
@media (hover: none) { .strip.is-grid .s-item.is-tiny .s-item__cap { display: none; } }

/* ==========================================================================
   HOME — reel dinámico (HOME.mode = 'reel')
   ========================================================================== */
.home__media.is-reel { filter: none; background: var(--ink); overflow: hidden; }
.rl__scene { position: absolute; inset: 0; display: grid; gap: 4px; background: var(--ink); }
.rl--full { grid-template-columns: 1fr; }
.rl--split.rl--n2 { grid-template-columns: 1fr 1fr; }
.rl--split.rl--n3 { grid-template-columns: 1fr 1fr 1fr; }
.rl--grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
@media (max-aspect-ratio: 4/5) {
  .rl--split.rl--n2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .rl--split.rl--n3 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr 1fr; }
}
.rl__slot { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.rl__slot img, .rl__slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* las pantallas divididas entran una detrás de otra */
.rl--split .rl__slot, .rl--grid .rl__slot { animation: rlIn .32s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--j) * 70ms); }
@keyframes rlIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
/* las fotos se mueven: zoom de golpe, deslizamientos */
.rl__slot.rl-punch img { animation: rlPunch .9s cubic-bezier(.16, 1, .3, 1) both; }
.rl__slot.rl-left img { animation: rlLeft 1.2s cubic-bezier(.16, 1, .3, 1) both; }
.rl__slot.rl-right img { animation: rlRight 1.2s cubic-bezier(.16, 1, .3, 1) both; }
.rl__slot.rl-up img { animation: rlUp 1.2s cubic-bezier(.16, 1, .3, 1) both; }
.rl__slot.rl-out img { animation: rlOut 1.2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rlPunch { from { transform: scale(1.28); } to { transform: scale(1.04); } }
@keyframes rlLeft { from { transform: scale(1.14) translateX(5%); } to { transform: scale(1.14) translateX(-1%); } }
@keyframes rlRight { from { transform: scale(1.14) translateX(-5%); } to { transform: scale(1.14) translateX(1%); } }
@keyframes rlUp { from { transform: scale(1.14) translateY(5%); } to { transform: scale(1.14) translateY(-1%); } }
@keyframes rlOut { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.rl__slot.is-clip video { animation: rlClip 1.6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rlClip { from { transform: scale(1.12); } to { transform: scale(1.02); } }
/* golpes de color con el "?" o el logo */
.rl__card { position: absolute; inset: 0; display: grid; place-items: center; }
.rl__q { height: 34vh; animation: rlQ .45s cubic-bezier(.2, 1.6, .35, 1) both; }
.rl__q svg { height: 100%; width: auto; display: block; }
@keyframes rlQ { from { transform: scale(.2) rotate(-35deg); } to { transform: none; } }
.rl__logo { width: min(40vw, 460px); animation: rlQ .5s cubic-bezier(.2, 1.5, .35, 1) both; }
.rl__logo svg { width: 100%; height: auto; display: block; }
/* la frase se lee sobre el reel */
body.home-reel .home-hero .home__veil { background: rgba(18, 18, 16, .38); }
body.home-reel .home-hero .ab-open__t { text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.rl__slot.is-clip img { animation: rlClip 1.6s cubic-bezier(.16, 1, .3, 1) both; }
.rl__card { place-items: end; padding: 0 9vw 10vh; }
.rl__q { height: 46vh; }
body.home-reel .home-hero .home__veil { background: rgba(18, 18, 16, .3); }
/* texto de la home después de la frase: de punta a punta con aire a los costados, un poco más chico, destacados en naranja */
.hx { max-width: none; margin: 0; padding-left: clamp(24px, 7vw, 140px); padding-right: clamp(24px, 7vw, 140px);
  font-size: clamp(18px, 1.75vw, 30px); line-height: 1.22; }
.hx__w--hot.is-on { color: var(--naranja); }
.hx__w--hot { color: rgba(238, 116, 40, .3); }
@media (max-width: 820px) { .hx { padding-left: 20px; padding-right: 20px; font-size: clamp(17px, 4.8vw, 22px); } }

/* HOME — después del video: la pregunta a la izquierda y el texto a la derecha (sin el manifiesto) */
.view--home .ab-mwrap { display: none; }
.hx {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 110px); align-items: start;
  text-align: left; padding: clamp(110px, 20vh, 200px) var(--gutter) clamp(110px, 20vh, 200px);
}
.hx__q { margin: 0; position: sticky; top: clamp(100px, 16vh, 150px);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 60px); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.hx__t { font-size: clamp(18px, 1.55vw, 26px); line-height: 1.32; }
.hx__t p + p { margin-top: 1em; }
@media (max-width: 820px) {
  .hx { grid-template-columns: 1fr; row-gap: 40px; padding: 90px 20px 100px; }
  .hx__q { position: static; font-size: clamp(28px, 8vw, 38px); }
  .hx__t { font-size: clamp(17px, 4.8vw, 21px); }
}
.view--home .hx { padding-bottom: clamp(140px, 26vh, 260px); } .view--home .ab-rest { padding-bottom: 0; }

/* HOME — trabajo destacado: Infiltración Infantil sobre bordó, con el libro pasando páginas */
.hf {
  margin: 0 calc(var(--gutter) * -1); padding: clamp(80px, 14vh, 150px) var(--gutter);
  background-color: var(--bordo); color: var(--paper);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 110px); align-items: center;
}
.hf__tag { margin: 0 0 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rosa); }
.hf__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(54px, 7.6vw, 150px); line-height: .9; letter-spacing: -.045em; }
.hf__kind { margin: 18px 0 0; font-family: var(--f-script); font-size: clamp(22px, 2vw, 34px); color: var(--rosa); line-height: 1.1; }
.hf__txt { margin: 26px 0 0; max-width: 44ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: rgba(246, 246, 246, .86); }
.hf__sig { margin: 18px 0 0; max-width: 44ch; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 246, 246, .6); line-height: 1.7; }
.hf__cta { display: inline-block; margin-top: 30px; color: var(--paper); text-decoration: none; font-size: 15px; letter-spacing: .02em; transition: color .25s; }
.hf__cta span { display: inline-block; transition: transform .35s var(--ease-out); }
.hf__cta:hover { color: var(--naranja); }
.hf__cta:hover span { transform: translateX(6px); }
.hf__book { justify-self: center; display: grid; gap: 12px; text-decoration: none; color: inherit; width: min(100%, 440px); }
.hf__page { display: block; aspect-ratio: 419.528 / 595.276; background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); overflow: hidden;
  transform: rotate(-3deg); transition: transform .6s var(--ease-out); }
.hf__book:hover .hf__page { transform: rotate(0deg) scale(1.02); }
.hf__page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf__n { justify-self: end; font-size: 11px; letter-spacing: .08em; color: rgba(246, 246, 246, .7); font-variant-numeric: tabular-nums; }
.hf__n b { font-weight: 500; color: var(--paper); }
/* entra al llegar */
.hf__info > *, .hf__book { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.hf.is-in .hf__info > *, .hf.is-in .hf__book { opacity: 1; transform: none; }
.hf.is-in .hf__info > :nth-child(2) { transition-delay: .08s; } .hf.is-in .hf__info > :nth-child(3) { transition-delay: .16s; }
.hf.is-in .hf__info > :nth-child(4) { transition-delay: .24s; } .hf.is-in .hf__info > :nth-child(5) { transition-delay: .3s; }
.hf.is-in .hf__info > :nth-child(6) { transition-delay: .36s; } .hf.is-in .hf__book { transition-delay: .2s; }
@media (max-width: 820px) {
  .hf { grid-template-columns: 1fr; row-gap: 48px; margin: 0 -20px; padding: 80px 20px; }
  .hf__book { width: min(78vw, 360px); }
}
body.nav-on-bordo[data-view="home"] .nav-wrap { --nav-fg: var(--paper); }
body.nav-on-bordo[data-view="home"] .nav-wrap::before { background: linear-gradient(to bottom, var(--bordo) 55%, rgba(140, 23, 45, 0)) !important; }

/* HOME — trabajo destacado v2 (como un collage en profundidad, fondo oscuro) */
.hf {
  display: block; position: relative; overflow: hidden;
  margin: 0 calc(var(--gutter) * -1); padding: 0; height: clamp(900px, 190vh, 1700px);
  background-color: var(--ink); color: var(--paper);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .06) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.hf__stage { position: absolute; inset: 0; display: block; }
.hf__p { position: absolute; display: block; overflow: hidden; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .7);
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform; transition: filter .5s var(--ease-out); }
.hf__p img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.hf__p--main { left: 50%; top: 50%; width: clamp(300px, 38vw, 600px); aspect-ratio: 419.5 / 595.3; margin-left: calc(clamp(300px, 38vw, 600px) / -2); margin-top: calc(clamp(300px, 38vw, 600px) * -.71); z-index: 2; }
.hf__p--tr { right: 9vw; top: 12%; width: clamp(130px, 13vw, 220px); aspect-ratio: 419.5 / 595.3; z-index: 3; }
.hf__p--bl { left: 14vw; top: 62%; width: clamp(170px, 16vw, 270px); aspect-ratio: 877 / 1241; z-index: 3; }
.hf__p--r { right: 15vw; top: 64%; width: clamp(120px, 11vw, 190px); aspect-ratio: 419.5 / 595.3; z-index: 1; }
.hf__p--tl { left: 9vw; top: 18%; width: clamp(110px, 10vw, 170px); aspect-ratio: 419.5 / 595.3; z-index: 1; }
.hf__stage:hover .hf__p--main img { transform: scale(1.04); }
.hf__info { position: absolute; left: var(--gutter); bottom: clamp(40px, 8vh, 90px); z-index: 4; pointer-events: none; }
.hf__info a { pointer-events: auto; }
.hf__tag { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rosa); }
.hf__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 7vw, 140px); line-height: .9; letter-spacing: -.045em; color: var(--paper); max-width: 9ch; }
.hf__kind { margin: 14px 0 0; font-family: var(--f-script); font-size: clamp(20px, 1.8vw, 30px); color: var(--rosa); }
.hf__cta { display: inline-block; margin-top: 22px; color: var(--paper); text-decoration: none; font-size: 15px; transition: color .25s; }
.hf__cta span { display: inline-block; transition: transform .35s var(--ease-out); }
.hf__cta:hover { color: var(--naranja); } .hf__cta:hover span { transform: translateX(6px); }
/* entrada */
.hf__p, .hf__info { opacity: 0; transition: opacity 1s var(--ease-out), filter .5s var(--ease-out); }
.hf.is-in .hf__p, .hf.is-in .hf__info { opacity: 1; }
.hf.is-in .hf__p--tr { transition-delay: .15s; } .hf.is-in .hf__p--bl { transition-delay: .25s; }
.hf.is-in .hf__p--r { transition-delay: .35s; } .hf.is-in .hf__p--tl { transition-delay: .45s; } .hf.is-in .hf__info { transition-delay: .3s; }
body.nav-on-bordo[data-view="home"] .nav-wrap::before { background: linear-gradient(to bottom, var(--ink) 55%, rgba(29, 29, 27, 0)) !important; }
@media (max-width: 820px) {
  .hf { margin: 0 -20px; height: 150vh; }
  .hf__p--main { width: 66vw; margin-left: -33vw; margin-top: -47vw; }
  .hf__p--tr { right: 4vw; top: 10%; width: 30vw; }
  .hf__p--bl { left: 4vw; top: 60%; width: 34vw; }
  .hf__p--r { right: 6vw; top: 70%; width: 24vw; }
  .hf__p--tl { left: 6vw; top: 16%; width: 22vw; }
  .hf__info { left: 20px; bottom: 36px; }
}

/* HOME — trabajo destacado v3: tapa grande al centro, ciudad a la derecha y pregunta a la izquierda encima */
.hf.hf--v3 { height: auto; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(70px, 12vh, 130px); }
.hf3 { display: block; color: var(--paper); text-decoration: none; }
.hf3__stage { display: flex; justify-content: center; }
.hf3__wrap { --mw: clamp(280px, 31vw, 520px); --sw: clamp(150px, 17vw, 290px); position: relative; width: var(--mw); aspect-ratio: 758 / 1075; }
.hf3__p { position: absolute; transition: opacity 1s var(--ease-out), filter .5s var(--ease-out); }
.hf3__p--main { inset: 0; width: auto; margin: 0; z-index: 1; }
.hf3__p--q { width: var(--sw); aspect-ratio: 758 / 1075; left: calc(var(--sw) * -.7); top: 9%; z-index: 2; }
.hf3__p--city { width: var(--sw); aspect-ratio: 758 / 1075; right: calc(var(--sw) * -.7); top: 44%; z-index: 2; }
.hf3__cta { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%) scale(.92); opacity: 0; pointer-events: none;
  background: var(--naranja); color: var(--ink); padding: .7em 1.2em; font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; white-space: nowrap;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.hf3__cta i { font-style: normal; display: inline-block; transition: transform .35s var(--ease-out); }
.hf3:hover .hf3__cta, .hf3:focus-visible .hf3__cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hf3:hover .hf3__cta i { transform: translateX(5px); }
.hf3:hover .hf3__p--main img { transform: scale(1.04); }
.hf3:hover .hf3__p--q, .hf3:hover .hf3__p--city { filter: brightness(.8); }
.hf3__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: clamp(70px, 12vh, 130px);
  padding-top: 18px; border-top: 1px solid rgba(246, 246, 246, .25); }
.hf3__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4.4vw, 80px); line-height: .95; letter-spacing: -.04em; }
.hf3__kind { margin: 0; font-family: var(--f-script); font-size: clamp(20px, 2vw, 34px); color: var(--rosa); text-align: right; }
.hf3__bar { opacity: 0; transition: opacity 1s var(--ease-out) .3s; } .hf.is-in .hf3__bar { opacity: 1; }
.hf.is-in .hf3__p--q { transition-delay: .2s; } .hf.is-in .hf3__p--city { transition-delay: .35s; }
@media (hover: none) { .hf3__cta { opacity: 1; transform: translate(-50%, -50%); top: auto; bottom: 6%; transform: translateX(-50%); } }
@media (max-width: 820px) {
  .hf.hf--v3 { height: auto; padding: 90px 20px 60px; }
  .hf3__wrap { --mw: 54vw; --sw: 32vw; }
  .hf3__p--q { left: calc(var(--sw) * -.7); } .hf3__p--city { right: calc(var(--sw) * -.7); }
  .hf3__p--main { margin: 0; }
  .hf3__bar { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 60px; }
  .hf3__kind { text-align: left; }
}

/* destacado v3b: nombre a la izquierda y tipo a la derecha, al costado de las imágenes y a media altura; "ver proyecto" como texto */
.hf3 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(20px, 2.5vw, 44px); }
.hf3__wrap { --mw: clamp(260px, 27vw, 460px); --sw: clamp(140px, 15vw, 250px); margin-inline: calc(var(--sw) * .7); }
.hf3__title { grid-column: 1; text-align: left; font-size: clamp(30px, 3.4vw, 62px); line-height: .95; }
.hf3__kind { grid-column: 3; text-align: right; justify-self: end; max-width: 13ch; font-size: clamp(20px, 2vw, 34px); line-height: 1.15; }
.hf3__title, .hf3__kind { opacity: 0; transition: opacity 1s var(--ease-out) .3s; }
.hf.is-in .hf3__title, .hf.is-in .hf3__kind { opacity: 1; }
.hf3__cta { background: none; padding: 0; color: var(--paper); font-size: clamp(15px, 1.2vw, 19px); font-weight: 500; letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hf3__p--main::after { content: ''; position: absolute; inset: 0; background: rgba(29, 29, 27, .45); opacity: 0; transition: opacity .4s var(--ease-out); }
.hf3:hover .hf3__p--main::after { opacity: 1; }
.hf.hf--v3 { padding-top: clamp(100px, 16vh, 180px); padding-bottom: clamp(100px, 16vh, 180px); }
@media (hover: none) { .hf3__cta { display: none; } }
@media (max-width: 820px) {
  .hf3 { grid-template-columns: 1fr; row-gap: 48px; }
  .hf3__title, .hf3__kind { grid-column: 1; }
  .hf3__title { font-size: clamp(34px, 10vw, 46px); }
  .hf3__kind { max-width: none; }
  .hf3__wrap { --mw: 54vw; --sw: 32vw; margin-inline: auto; }
}

/* HOME — pregunta y texto centrados en la pantalla, mismo blanco arriba y abajo */
.view--home .hx { align-items: center; box-sizing: border-box;
  padding-top: clamp(80px, 12vh, 130px); padding-bottom: clamp(80px, 12vh, 130px); }
.view--home .hx__q { position: static; }
@media (max-width: 820px) { .view--home .hx { padding-top: 80px; padding-bottom: 80px; } }

/* destacado: las imágenes vuelven a subir desde abajo del blanco al bajar */
.hf.hf--v3 { overflow: hidden; }
.hf3__p { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* destacado: marcos de esquinas en las imágenes */
.hf3__p { overflow: visible; --c: 16px; --off: -10px; --cw: 1px; }
.hf3__img { position: absolute; inset: 0; overflow: hidden; display: block; }
.hf3__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.hf3__p--main::after { z-index: 1; }
.hf3__p .frame__corner { color: rgba(246, 246, 246, .75); z-index: 2; }
.hf3:hover .hf3__p .frame__corner { color: var(--paper); }
.hf3:hover .hf3__p--main .hf3__img img { transform: scale(1.04); }

/* destacado: cinta con lo que hago, donde arranca el negro; se frena al pasar el mouse */
.hf.hf--v3 { padding-top: 0; }
.hf-tape { position: relative; z-index: 5; margin: 0 calc(var(--gutter) * -1) clamp(90px, 14vh, 160px); overflow: hidden;
  background: var(--ink); color: var(--paper); border-bottom: 1px solid rgba(246, 246, 246, .3); padding: 16px 0; }
.hf-tape .tape-seg span { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 42px); font-weight: 400; letter-spacing: -.02em; white-space: nowrap; padding: 0 .5em; }
.hf-tape .tape-sep { color: var(--naranja); font-size: clamp(22px, 2.4vw, 42px); font-weight: 500; }
.hf-tape:hover .tape-track { animation-play-state: paused; }
@media (max-width: 820px) { .hf-tape { margin: 0 -20px 70px; padding: 12px 0; } }
.hf-tape__track { display: flex; width: max-content; animation: tape 60s linear infinite; will-change: transform; }
.hf-tape:hover .hf-tape__track { animation-play-state: paused; }
.hf-tape .tape-sep { color: var(--rosa); }

/* HOME — después de Infiltración: Ay Not Dead y Snark, más chicos */
.hm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px); margin-top: clamp(140px, 22vh, 240px); }
.hm__card { display: block; color: var(--paper); text-decoration: none; }
.hm__stage { display: flex; align-items: center; justify-content: center; height: clamp(360px, 32vw, 560px); }
.hm__wrap { position: relative; }
.hm__card--ay-not-dead .hm__wrap { width: min(74%, 30vw); aspect-ratio: 16 / 9; }
.hm__card--snark .hm__wrap { width: min(46%, 17vw); aspect-ratio: 2 / 3; }
.hm__p { position: absolute; overflow: visible; --c: 14px; --off: -9px; --cw: 1px; transition: opacity 1s var(--ease-out), filter .5s var(--ease-out); }
.hm__p--main { inset: 0; z-index: 1; }
.hm__p--main::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(29, 29, 27, .45); opacity: 0; transition: opacity .4s var(--ease-out); }
.hm__card:hover .hm__p--main::after { opacity: 1; }
.hm__card:hover .hm__p--main .hf3__img img { transform: scale(1.04); }
.hm__card:hover .hm__p--a, .hm__card:hover .hm__p--b { filter: brightness(.8); }
.hm__p .frame__corner { color: rgba(246, 246, 246, .75); z-index: 2; }
.hm__card:hover .hm__p .frame__corner { color: var(--paper); }
.hm__card--ay-not-dead .hm__p--a { width: 30%; aspect-ratio: 4 / 5; left: -14%; top: -26%; z-index: 2; }
.hm__card--ay-not-dead .hm__p--b { width: 48%; aspect-ratio: 16 / 9; right: -16%; bottom: -26%; z-index: 2; }
.hm__card--snark .hm__p--a { width: 56%; aspect-ratio: 2 / 3; left: -40%; bottom: -10%; z-index: 2; }
.hm__card--snark .hm__p--b { width: 82%; aspect-ratio: 3 / 2; right: -58%; top: 6%; z-index: 2; }
.hm__card .hf3__cta { z-index: 4; }
.hm__card:hover .hf3__cta, .hm__card:focus-visible .hf3__cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hm__card:hover .hf3__cta i { transform: translateX(5px); }
.hm__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-top: clamp(30px, 5vh, 56px); padding-top: 14px; border-top: 1px solid rgba(246, 246, 246, .25); }
.hm__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 42px); line-height: 1; letter-spacing: -.035em; }
.hm__kind { margin: 0; font-family: var(--f-script); font-size: clamp(18px, 1.5vw, 26px); color: var(--rosa); text-align: right; }
.hm__card { opacity: 0; transition: opacity 1s var(--ease-out); } .hf.is-in .hm__card { opacity: 1; }
@media (max-width: 820px) {
  .hm { grid-template-columns: 1fr; row-gap: 90px; margin-top: 110px; }
  .hm__stage { height: auto; padding: 60px 0; }
  .hm__card--ay-not-dead .hm__wrap { width: 66vw; }
  .hm__card--snark .hm__wrap { width: 40vw; }
}
/* la sección oscura termina un poco después de las tarjetas */
.hf.hf--v3 { padding-bottom: clamp(110px, 18vh, 200px); }

/* HOME — al final: contactame */
.hc { margin: 0 calc(var(--gutter) * -1); background: var(--rosa); padding: clamp(100px, 18vh, 200px) var(--gutter); }
.hc__link { display: block; color: var(--ink); text-decoration: none; }
.hc__q { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.01em; margin-bottom: clamp(10px, 2vh, 24px); }
.hc__big { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 12.5vw, 240px); line-height: .9; letter-spacing: -.055em; transition: color .3s; }
.hc__big i { font-style: normal; display: inline-block; transition: transform .45s var(--ease-out); }
.hc__link:hover .hc__big { color: var(--naranja); }
.hc__link:hover .hc__big i { transform: translateX(.15em); }
@media (max-width: 820px) { .hc { margin: 0 -20px; padding: 90px 20px; } }
.hm__bar { position: relative; z-index: 3; background: var(--ink); margin-top: clamp(50px, 8vh, 90px); }
@media (max-width: 820px) { .hc__big { font-size: 15vw; white-space: nowrap; } }

/* frase del video: los signos en rosa (antes naranja) */
.ab-open .pz-s, .home-hero .pz-s { color: var(--rosa); }
/* Ay Not Dead y Snark más pegados a Infiltración */
.hm { margin-top: clamp(30px, 5vh, 60px); }
.hm__card--ay-not-dead .hm__wrap { aspect-ratio: 902 / 452; }
@media (max-width: 820px) { .hm { margin-top: 40px; } }
.hm__stage { height: clamp(300px, 26vw, 460px); }
.hm__card--snark .hm__wrap { width: min(42%, 15vw); }
.hm { margin-top: 0; }
@media (max-width: 820px) { .hm__stage { height: auto; } .hm__card--snark .hm__wrap { width: 40vw; } }

/* frase del video: los signos en bordó */
.ab-open .pz-s, .home-hero .pz-s { color: var(--bordo); }

/* HOME — juego con el logo: imágenes que pasan detrás de LO_? */
.hl { margin: 0 calc(var(--gutter) * -1); padding: clamp(90px, 15vh, 170px) var(--gutter); background: var(--paper); }
.hl__in { width: min(100%, 1100px); margin: 0 auto; }
.hl__top, .hl__bot { margin: 0; font-family: var(--f-script); font-size: clamp(22px, 2.2vw, 38px); line-height: 1.1; color: var(--ink); }
.hl__top { margin-bottom: clamp(8px, 1.4vh, 16px); }
.hl__bot { text-align: right; margin-top: clamp(8px, 1.4vh, 16px); }
.hl__bot::first-letter { color: inherit; }
.hl__frame { position: relative; aspect-ratio: 2.15 / 1; overflow: hidden; background: var(--ink); }
.hl__img { position: absolute; inset: 0; opacity: 0; }
.hl__img.is-on { opacity: 1; }
.hl__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl__img--black { background: #000; }
.hl__logo { position: absolute; left: 50%; top: 50%; width: clamp(150px, 26%, 300px); transform: translate(-50%, -50%); z-index: 2;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .22)) drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.hl__logo svg { width: 100%; height: auto; display: block; }
@media (max-width: 820px) { .hl { margin: 0 -20px; padding: 80px 20px; } .hl__frame { aspect-ratio: 4 / 3; } .hl__logo { width: 46%; } }
.hl__logo { width: clamp(180px, 34%, 380px); } @media (max-width: 820px) { .hl__logo { width: 52%; } }

/* HOME — al final: el logo con las palabras que cambian y "hablamos??" */
.he { margin: 0 calc(var(--gutter) * -1); padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; }
.he .ml { width: min(380px, 56vw); margin: 0 auto; transform: translateX(-18%); }
.he__cta { margin-top: clamp(70px, 12vh, 130px); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.01em; transition: color .25s; }
.he__cta b { font-weight: 500; color: var(--naranja); transition: color .25s; }
.he__cta:hover { color: var(--naranja); }
.he__cta:hover b { color: var(--ink); }
@media (max-width: 820px) { .he { margin: 0 -20px; padding: 90px 20px 80px; } .he .ml { width: 56vw; transform: translateX(-14%); } }

/* frase del video: signos en rosa · cinta: asteriscos en bordó */
.ab-open .pz-s, .home-hero .pz-s { color: var(--rosa); }
.hf-tape .tape-sep { color: var(--bordo); }

/* HOME — al final: ¿Y si hablamos? a la izquierda, botón a contacto a la derecha */
.hk { margin: 0 calc(var(--gutter) * -1); padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(70px, 11vh, 120px); background: var(--paper);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hk__t { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 5.6vw, 104px); line-height: .95; letter-spacing: -.045em; color: var(--ink); }
.hk__s { margin: clamp(12px, 2vh, 22px) 0 0; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.35; color: var(--ink); }
.hk__btn { flex: none; display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.6em; background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(16px, 1.3vw, 20px); transition: background .3s, color .3s; }
.hk__btn i { font-style: normal; display: inline-block; transition: transform .35s var(--ease-out); }
.hk__btn:hover { background: var(--naranja); color: var(--ink); }
.hk__btn:hover i { transform: translateX(5px); }
@media (max-width: 820px) { .hk { margin: 0 -20px; padding: 90px 20px 70px; flex-direction: column; align-items: flex-start; gap: 36px; } }

/* home: "ver proyecto" y el oscurecido solo con el mouse sobre las imágenes */
.hf3:hover .hf3__cta, .hm__card:hover .hf3__cta { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
.hf3__wrap:hover .hf3__cta, .hm__wrap:hover .hf3__cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hf3:hover .hf3__p--main::after, .hm__card:hover .hm__p--main::after { opacity: 0; }
.hf3__wrap:hover .hf3__p--main::after, .hm__wrap:hover .hm__p--main::after { opacity: 1; }
.hf3:hover .hf3__p--main .hf3__img img, .hm__card:hover .hm__p--main .hf3__img img { transform: none; }
.hf3__wrap:hover .hf3__p--main .hf3__img img, .hm__wrap:hover .hm__p--main .hf3__img img { transform: scale(1.04); }
.hf3:hover .hf3__p--q, .hf3:hover .hf3__p--city, .hm__card:hover .hm__p--a, .hm__card:hover .hm__p--b { filter: none; }
.hf3__wrap:hover .hf3__p--q, .hf3__wrap:hover .hf3__p--city, .hm__wrap:hover .hm__p--a, .hm__wrap:hover .hm__p--b { filter: brightness(.8); }
.frame-host.hf3:hover .frame__corner, .frame-host.hm__card:hover .frame__corner { transform: none; color: rgba(246, 246, 246, .75); }
.hf3__wrap:hover .frame__corner--tl, .hm__wrap:hover .frame__corner--tl { transform: translate(20px, 20px); color: var(--paper); }
.hf3__wrap:hover .frame__corner--tr, .hm__wrap:hover .frame__corner--tr { transform: translate(-20px, 20px); color: var(--paper); }
.hf3__wrap:hover .frame__corner--bl, .hm__wrap:hover .frame__corner--bl { transform: translate(20px, -20px); color: var(--paper); }
.hf3__wrap:hover .frame__corner--br, .hm__wrap:hover .frame__corner--br { transform: translate(-20px, -20px); color: var(--paper); }

/* ¿Y si hablamos? — menos blanco, "hablamos" en cursiva, botón como el menú con corchetes */
.hk { padding-top: clamp(60px, 9vh, 100px); padding-bottom: clamp(50px, 8vh, 90px); }
.hk__t em { font-style: italic; }
.hk__btn { background: none; color: var(--ink); padding: 0; gap: 0; font-size: clamp(17px, 1.4vw, 22px); font-weight: 400; }
.hk__br { display: inline-block; transition: transform .45s var(--ease-out), color .3s; }
.hk__br:first-child { margin-right: .5em; } .hk__br:last-child { margin-left: .5em; }
.hk__btn:hover { background: none; color: var(--naranja); }
.hk__btn:hover .hk__br { color: var(--ink); }
.hk__btn:hover .hk__br:first-child { transform: translateX(-6px); }
.hk__btn:hover .hk__br:last-child { transform: translateX(6px); }
@media (max-width: 820px) { .hk { padding: 60px 20px 50px; gap: 24px; } }

/* home: las esquinas entran al pasar por las imágenes */
.frame-host .hf3__wrap:hover .hf__p .frame__corner--tl, .frame-host .hm__wrap:hover .hf__p .frame__corner--tl { transform: translate(20px, 20px); color: var(--paper); }
.frame-host .hf3__wrap:hover .hf__p .frame__corner--tr, .frame-host .hm__wrap:hover .hf__p .frame__corner--tr { transform: translate(-20px, 20px); color: var(--paper); }
.frame-host .hf3__wrap:hover .hf__p .frame__corner--bl, .frame-host .hm__wrap:hover .hf__p .frame__corner--bl { transform: translate(20px, -20px); color: var(--paper); }
.frame-host .hf3__wrap:hover .hf__p .frame__corner--br, .frame-host .hm__wrap:hover .hf__p .frame__corner--br { transform: translate(-20px, -20px); color: var(--paper); }
/* ¿Y si hablamos? más chico y sobre la cuadrícula del fondo */
.hk { background: transparent; }
.hk__t { font-size: clamp(30px, 3.6vw, 64px); }

/* PROYECTOS — nombre y tipo en Neue Haas Grotesk Display: el nombre en negrita, el tipo normal */
.pjx__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.pjx__kind { font-family: var(--f-display); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: clamp(14px, 1.15vw, 20px); line-height: 1.25; }
.s-item__name { font-family: var(--f-display); font-weight: 700; }
.s-item__kind { font-family: var(--f-display); font-weight: 400; }

/* HOME — ¿Y si hablamos? centrado, la frase debajo y el botón abajo */
.hk { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(26px, 4vh, 44px); }
.hk__txt { text-align: center; }
@media (max-width: 820px) { .hk { align-items: center; } }

/* PROYECTOS — aire blanco a los costados (nada se corta contra el borde) y los chicos un poco más chicos */
.strip.is-grid .s-item { --edge: clamp(18px, 2.6vw, 44px); }
.strip.is-grid .s-item.is-edge-l { padding-left: calc(var(--pad) + var(--edge)); }
.strip.is-grid .s-item.is-edge-r { padding-right: calc(var(--pad) + var(--edge)); }
.strip.is-grid .s-item.is-mid { padding: calc(var(--cell) * .2); }
.strip.is-grid .s-item.is-mid.is-edge-l { padding-left: calc(var(--cell) * .2 + var(--edge)); }
.strip.is-grid .s-item.is-mid.is-edge-r { padding-right: calc(var(--cell) * .2 + var(--edge)); }

/* ==========================================================================
   INTERIOR COMO PUBLICACIÓN (Infiltración Infantil): portada grande, texto breve,
   pliegos sueltos intercalados con frases y las cinco categorías pasando como un pdf
   ========================================================================== */
.st-hero { position: relative; height: 230vh; margin: 0; }
.st-hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.st-hero__img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; will-change: transform; }
.st-block, .st-fig { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.st-block.is-in, .st-fig.is-in { opacity: 1; transform: none; }
.st-intro, .st-q, .st-row, .st-cats, .st-pair { padding-left: var(--gutter); padding-right: var(--gutter); }
.st-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 7vw, 140px); align-items: end;
  padding-top: clamp(110px, 18vh, 200px); padding-bottom: clamp(90px, 14vh, 160px); }
.st-kind { margin: 0 0 14px; font-family: var(--f-script); font-size: clamp(22px, 2vw, 34px); color: var(--rosa); }
.st-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(54px, 7vw, 130px); line-height: .9; letter-spacing: -.045em; color: var(--paper); }
.st-p { margin: 0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; color: var(--paper); max-width: 46ch; }
.st-p + .st-p { margin-top: 1em; }
.st-facts { margin-top: clamp(28px, 4vh, 44px); }
.st-label { margin: 0 0 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rosa); }
.st-fig { margin: 0; }
.st-fig .cp__tilt { display: block; position: relative; transform-origin: 50% 85%; transition: transform .9s var(--ease-wobble); }
.st-fig img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); }
.st-fig .frame__corner { --c: 12px; color: var(--paper); }
.st-fig:hover .cp__tilt { transform: rotate(-1.6deg) translate3d(-3px, -6px, 0); }
.st-fig:nth-of-type(even):hover .cp__tilt { transform: rotate(1.6deg) translate3d(3px, -6px, 0); }
.st-cap { margin-top: 12px; font-size: 12px; color: rgba(246, 246, 246, .7); }
.st-fig--wide { width: min(80vw, 1240px); margin: 0 auto; }
.st-q { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(40px, 6vw, 120px); align-items: center;
  padding-top: clamp(140px, 24vh, 260px); padding-bottom: clamp(140px, 24vh, 260px); }
.st-q .board { margin: 0; }
.st-fig--tall { width: min(100%, 420px); justify-self: center; }
.st-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: clamp(40px, 6vw, 120px); align-items: center; padding-bottom: clamp(140px, 24vh, 260px); }
.st-cats { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: clamp(40px, 6vw, 120px); align-items: center; padding-bottom: clamp(140px, 24vh, 260px); }
.st-cats__list { list-style: none; margin: 0 0 clamp(28px, 4vh, 44px); padding: 0; }
.st-cats__n { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(246, 246, 246, .22);
  font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 32px); letter-spacing: -.02em; color: rgba(246, 246, 246, .45); transition: color .4s; }
.st-cats__n span { font-size: 12px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.st-cats__n.is-on { color: var(--paper); font-weight: 700; }
.st-cats__n.is-on span { color: var(--rosa); font-weight: 400; }
.st-cats__show .ev__stage { width: 100%; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); }
.st-cats__show .frame__corner { color: var(--paper); }
.st-cats .ev__img { transform: translateX(3%); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); }
.st-cats .ev__img.is-on { transform: none; }
.st-cats .pind { margin-top: 14px; color: var(--paper); }
.st-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; padding-bottom: clamp(120px, 20vh, 220px); }
.st-fig--um { grid-column: 1 / span 8; }
.st-fig--mapa { grid-column: 9 / span 4; margin-top: clamp(120px, 22vh, 260px); }
@media (max-width: 820px) {
  .st-hero { height: 170vh; }
  .st-intro, .st-q, .st-row, .st-cats { grid-template-columns: 1fr; row-gap: 40px; }
  .st-intro, .st-q, .st-row, .st-cats, .st-pair { padding-left: 20px; padding-right: 20px; }
  .st-fig--wide { width: calc(100% - 40px); }
  .st-q { padding-top: 110px; padding-bottom: 110px; }
  .st-row, .st-cats { padding-bottom: 110px; }
  .st-fig--tall { width: 72%; }
  .st-pair { grid-template-columns: 1fr; row-gap: 50px; }
  .st-fig--um, .st-fig--mapa { grid-column: 1; margin-top: 0; }
  .st-fig--mapa { width: 70%; justify-self: end; }
}
.st-q .board { font-size: clamp(30px, 3.5vw, 62px); }
/* proyectos: menos blanco al final de la grilla */
.view--projects { padding-bottom: clamp(40px, 6vh, 80px) !important; }

/* Infiltración v2: la senda peatonal con la gente caminando en un rectángulo; foto + info al costado */
.st-hero { height: auto; padding: clamp(96px, 14vh, 140px) var(--gutter) 0; }
.st-hero__frame { display: block; position: relative; width: 100%; aspect-ratio: 2.3 / 1; background: #2a2a2a; }
.st-hero__frame .frame__corner { color: var(--paper); }
.st-walk { display: block; width: 100%; height: 100%; }
.st-intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-top: clamp(90px, 14vh, 150px); }
.st-intro .st-fig { opacity: 1; transform: none; }
.st-intro__info .st-title { font-size: clamp(46px, 5.4vw, 100px); margin-bottom: clamp(22px, 3vh, 34px); }
.st-q--solo { display: block; text-align: left; padding-top: clamp(90px, 16vh, 180px); padding-bottom: clamp(110px, 18vh, 200px); }
.st-q--solo .board { font-size: clamp(34px, 4.6vw, 84px); }
.st-one { padding: 0 var(--gutter) clamp(120px, 20vh, 220px); }
.st-one .st-fig--wide { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .st-hero { padding: 90px 20px 0; }
  .st-hero__frame { aspect-ratio: 4 / 5; }
  .st-intro { grid-template-columns: 1fr; }
  .st-one { padding: 0 0 110px; }
}

/* Infiltración v3: sin portada; arranca con la imagen y la info; frase centrada; los UM + [PC] juntos */
.st-intro--top { padding-top: clamp(120px, 18vh, 190px); }
.st-q--solo { text-align: center; display: flex; justify-content: center; }
.st-q--solo .st-q__board { display: flex; justify-content: center; }
.st-q--solo .board { text-align: center; margin: 0 auto; }
.st-q--solo .bd-row { justify-content: center; }
.st-row--3 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.st-row--3 .st-row__txt { grid-column: 1 / span 3; align-self: center; }
.st-fig--um2 { grid-column: 4 / span 5; }
.st-fig--pc { grid-column: 9 / span 4; margin-top: clamp(80px, 14vh, 160px); }
@media (max-width: 820px) {
  .st-row--3 { grid-template-columns: 1fr; row-gap: 40px; }
  .st-row--3 .st-row__txt, .st-fig--um2, .st-fig--pc { grid-column: 1; }
  .st-fig--pc { margin-top: 0; width: 85%; justify-self: end; }
}

/* Infiltración v4 */
.st-intro--top { padding-bottom: 0; }
.st-q--solo { padding-top: clamp(130px, 22vh, 240px); padding-bottom: clamp(130px, 22vh, 240px); }
.st-fig--um2 { grid-column: 4 / span 4; }
.st-fig--pc { grid-column: 8 / span 5; margin-top: clamp(60px, 10vh, 120px); }
.st-cats__txt .st-p { margin-bottom: clamp(24px, 3.5vh, 40px); }
.st-cats__list { margin-bottom: 0; }
/* [ cerrar ] solo al final */
.case__bar.is-end-only { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s .4s; }
.case__bar.is-end-only.is-shown { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
@media (max-width: 820px) { .st-q--solo { padding-top: 100px; padding-bottom: 100px; } }
.st-q--solo { padding-bottom: clamp(60px, 14vh, 168px); }
/* el texto de "A partir del relevamiento…" a la derecha de las dos imágenes */
.st-fig--um2 { grid-column: 1 / span 4; grid-row: 1; }
.st-fig--pc { grid-column: 5 / span 5; grid-row: 1; }
.st-row--3 .st-row__txt { grid-column: 10 / span 3; grid-row: 1; }
@media (max-width: 820px) { .st-fig--um2, .st-fig--pc, .st-row--3 .st-row__txt { grid-column: 1; grid-row: auto; } }

/* Infiltración v5: video a pantalla completa que la hoja bordó tapa al bajar */
.st-vid { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.st-vid__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--cover, 0) * .06)); }
.st-vid__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18, 18, 16, .45) 0%, rgba(18, 18, 16, 0) 22%);
  }
.st-vid::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--cover, 0) * .55); pointer-events: none; }
.st-sheet { position: relative; z-index: 1; background-color: var(--bordo);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .45); }
.st-sheet > * { position: relative; }
.st-sheet .case__closing { padding-bottom: clamp(120px, 20vh, 200px); }

/* el pliego "Pronóstico de tendencias…" dentro de un libro abierto */
.st-book { margin: 0; perspective: 1800px; }
.st-book__hit { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; transform: rotateX(8deg); transform-origin: 50% 100%;
  transition: transform .8s var(--ease-out); }
.st-book__hit:hover { transform: rotateX(3deg) translateY(-6px); }
.st-book__cover { position: absolute; inset: -12px -14px -16px; background: #5e0f1e; border-radius: 3px;
  box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.st-book__pages { display: block; position: relative; border-radius: 1px;
  box-shadow: 0 1px 0 #ece8e0, 0 3px 0 #ded9cf, 0 5px 0 #d2ccc1, 0 7px 0 #c6bfb3, 0 9px 0 #b9b2a5; }
.st-book__pages img { display: block; width: 100%; height: auto; }
.st-book__fold { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .10) 46%, rgba(0, 0, 0, .32) 49.6%,
      rgba(255, 255, 255, .25) 50%, rgba(0, 0, 0, .22) 50.6%, rgba(0, 0, 0, .06) 55%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0) 94%, rgba(0, 0, 0, .10) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, .08), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .06)); }

/* sin el texto: "Los UM…" y [ PC ] solas */
.st-row--3 { padding-top: 0; }
.st-fig--um2 { grid-column: 1 / span 5; }
.st-fig--pc { grid-column: 7 / span 6; }
.st-cats__n { cursor: pointer; }
.st-cats__n:hover:not(.is-on) { color: rgba(246, 246, 246, .8); }
.st-cats .ev__stage { pointer-events: auto; }
@media (max-width: 820px) { .st-book__cover { inset: -8px -8px -10px; } }

/* sobre el video el menú va sin la franja bordó */
body.nav-on-video[data-view="caso"] .nav-wrap::before { background: linear-gradient(to bottom, rgba(18, 18, 16, .35), rgba(18, 18, 16, 0)) !important; }
/* libro abierto (imagen con sombra propia) */
.st-book__hit--v2 { transform: none; cursor: zoom-in; }
.st-book__hit--v2 img { display: block; width: 100%; height: auto; transition: transform .7s var(--ease-out); }
.st-book__hit--v2:hover { transform: none; }
.st-book__hit--v2:hover img { transform: translateY(-6px) scale(1.01); }
.st-intro--top .st-book { margin-left: calc(var(--gutter) * -.4); }
/* ver proyecto completo */
.case__more[aria-disabled="true"] { cursor: default; }

/* botones del final: al pasar o tocar, negro entero con letras blancas */
body[data-view="caso"] .case__bar .case__btn:hover, body[data-view="caso"] .case__bar .case__btn:active, body[data-view="caso"] .case__bar .case__btn:focus-visible,
body.case-dark[data-view="caso"] .case__bar .case__btn:hover, body.case-dark[data-view="caso"] .case__bar .case__btn:active, body.case-dark[data-view="caso"] .case__bar .case__btn:focus-visible {
  background: var(--ink) !important; color: var(--paper) !important; box-shadow: none !important; }

/* Snark: video de entrada a pantalla completa que se funde con el rosa y sigue de largo */
.case-vid { position: relative; height: 100vh; height: 100svh; overflow: hidden; margin-bottom: clamp(30px, 6vh, 70px); }
.case-vid__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.case-vid::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(246, 182, 184, 0), var(--view-bg, var(--rosa))); pointer-events: none; }
body.nav-on-video[data-view="caso"] .nav-wrap { --nav-fg: var(--paper); }
body.nav-on-video[data-view="caso"] .nav__link, body.nav-on-video[data-view="caso"] .nav__sep { text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }

/* botones del final siempre en blanco; al pasar o tocar, negro entero con letras blancas */
body[data-view="caso"] .case__bar { background: var(--paper) !important; box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .35); }
body[data-view="caso"] .case__bar .case__btn { color: var(--ink) !important; background: transparent !important; }
body[data-view="caso"] .case__bar .case__btn:hover, body[data-view="caso"] .case__bar .case__btn:active, body[data-view="caso"] .case__bar .case__btn:focus-visible { background: var(--ink) !important; color: var(--paper) !important; }

/* Oasis: hoja del color del proyecto (oliva) con la grilla, que tapa el video */
.st-sheet--view { background-color: var(--view-bg);
  background-image: linear-gradient(to right, var(--grid-c) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-c) 1px, transparent 1px); }
.st-sheet--view > .case__hero { padding-top: clamp(110px, 16vh, 170px); }
/* fragmentos del fashion film: cuatro clips en loop */
.case__clips { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 22px); align-content: start; }
.clip { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip:nth-child(2), .clip:nth-child(4) { transform: translateY(clamp(20px, 5vh, 60px)); }
.clip .frame__corner { color: var(--ink); }
/* evento: las dos láminas */
.ev__imgs { grid-column: 5 / -1; display: grid; row-gap: clamp(40px, 8vh, 90px); }
.ev__fig { margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ev__fig.is-in { opacity: 1; transform: none; }
.ev__fig:nth-child(2) { width: 88%; justify-self: end; }
.ev__pic { display: block; position: relative; }
.ev__pic img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); }
@media (max-width: 820px) {
  .ev__imgs { grid-column: 1 / -1; }
  .ev__fig:nth-child(2) { width: 100%; }
  .clip:nth-child(2), .clip:nth-child(4) { transform: none; }
}

/* Estación Oasis: láminas un poco más chicas que se tuercen al pasar el mouse */
.ev__imgs { grid-column: 6 / -1; }
.ev__fig:nth-child(1) { width: 90%; }
.ev__fig:nth-child(2) { width: 78%; }
.ev__pic { transform-origin: 50% 85%; transition: transform .9s var(--ease-wobble); }
.ev__fig:nth-child(1):hover .ev__pic { transform: rotate(-2.6deg) skewX(-1deg) translate3d(-4px, -8px, 0); }
.ev__fig:nth-child(2):hover .ev__pic { transform: rotate(2.4deg) skewX(1deg) translate3d(4px, -8px, 0); }
.ev__pic .frame__corner { color: var(--ink); }
@media (max-width: 820px) { .ev__imgs { grid-column: 1 / -1; } .ev__fig:nth-child(n) { width: 100%; } }
/* láminas sueltas (Infected): tres, cada una se tuerce para un lado */
.ev__fig:nth-child(3) { width: 84%; justify-self: center; }
.ev__fig:nth-child(3):hover .ev__pic { transform: rotate(-2deg) skewX(-.8deg) translate3d(-3px, -8px, 0); }
body.case-dark .ev__pic .frame__corner { color: var(--paper); }
.case__event:has(.ev__imgs) .ev__text { align-self: start; }
/* evento sin texto (Infected): el título gris arriba y las láminas sueltas, alternadas */
.case__event:not(:has(.ev__p)) .ev__text { grid-column: 1 / -1; position: static; margin-bottom: clamp(10px, 2vh, 24px); }
.case__event:not(:has(.ev__p)) .ev__imgs { grid-column: 1 / -1; row-gap: clamp(50px, 9vh, 110px); }
.case__event:not(:has(.ev__p)) .ev__fig { width: min(62%, 760px); }
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(1) { justify-self: start; margin-left: 6%; }
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(2) { justify-self: end; margin-right: 4%; }
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(3) { justify-self: center; }
@media (max-width: 820px) { .case__event:not(:has(.ev__p)) .ev__fig:nth-child(n) { width: 100%; margin: 0; } }
/* Infected: el moodboard grande arriba y las otras dos más chicas abajo, una al lado de la otra */
.case__event:not(:has(.ev__p)) .ev__imgs { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 70px); row-gap: clamp(50px, 8vh, 100px); width: min(100%, 1160px); justify-self: center; margin: 0 auto; }
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(n) { width: 100%; margin: 0; justify-self: stretch; }
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(3) { order: -1; grid-column: 1 / -1; }
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(2) { margin-top: clamp(40px, 8vh, 90px); }
.case__event:not(:has(.ev__p)) { padding-bottom: clamp(170px, 26vh, 260px); }
@media (max-width: 820px) { .case__event:not(:has(.ev__p)) .ev__imgs { grid-template-columns: 1fr; } .case__event:not(:has(.ev__p)) .ev__fig:nth-child(2) { margin-top: 0; } }
/* Infected: moodboard más chico */
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(3) { width: min(72%, 820px); justify-self: center; }
@media (max-width: 820px) { .case__event:not(:has(.ev__p)) .ev__fig:nth-child(3) { width: 100%; } }
/* fashion film y texto del costado alineados arriba */
.case__hero:has(.case__film) { align-items: start; }
.case__hero:has(.case__film) .case__info { align-self: start; margin-top: 0; padding-top: 0; }

/* film y texto: más abajo, lejos del menú, pero alineados */
.case__hero:has(.case__film) { padding-top: clamp(130px, 19vh, 190px) !important; }

/* ArteBA: la tapa del fanzine como libro cerrado (lomo, canto de hojas, sombra) */
.bk3 { perspective: 1600px; justify-items: center; align-content: start; }
.bk3__book { position: relative; display: block; width: min(78%, 520px); aspect-ratio: var(--r, 1 / 1); padding: 0; border: 0; background: none; cursor: zoom-in;
  transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg); transition: transform .9s var(--ease-out); margin: 10px 0 40px 6%; }
.bk3__book:hover { transform: rotateY(-12deg) rotateX(2deg) translateY(-6px); }
.bk3__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateZ(14px); border-radius: 1px 4px 4px 1px;
  box-shadow: inset 6px 0 10px -4px rgba(0, 0, 0, .35); }
.bk3__book::after { content: ''; position: absolute; inset: 0; transform: translateZ(14.5px); pointer-events: none; border-radius: 1px 4px 4px 1px;
  background: linear-gradient(to right, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .05) 3.5%, rgba(255, 255, 255, .12) 5%, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, .06) 60%, rgba(0, 0, 0, .06) 100%); }
.bk3__pages { position: absolute; top: 3px; bottom: 3px; right: 0; width: 26px; transform-origin: right center; transform: rotateY(90deg) translateX(13px);
  background: repeating-linear-gradient(to right, #f3efe6 0 1px, #d9d3c6 1px 2px); }
.bk3__spine { position: absolute; top: 0; bottom: 0; left: 0; width: 28px; transform-origin: left center; transform: rotateY(-90deg) translateX(-14px);
  background: linear-gradient(to right, #1d1d1b, #3a3a36 45%, #1d1d1b); }
.bk3__book::before { content: ''; position: absolute; left: 8%; right: -6%; bottom: -26px; height: 40px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 70%);
  transform: translateZ(-20px) rotateX(90deg); filter: blur(4px); }
@media (max-width: 820px) { .bk3__book { width: 70%; margin-left: 0; } }

/* presentación: una lámina grande (la marcada) arriba y las demás de a dos, desfasadas */
.case__event:not(:has(.ev__p)) .ev__fig:nth-child(n) { order: 0; grid-column: auto; width: 100%; justify-self: stretch; margin: 0; }
.case__event:not(:has(.ev__p)) .ev__fig.ev__fig--big { order: -1; grid-column: 1 / -1; width: min(72%, 820px); justify-self: center; }
.case__event:not(:has(.ev__p)) .ev__fig.ev__fig--low { margin-top: clamp(40px, 8vh, 90px); }
.ev__fig:nth-child(n):hover .ev__pic { transform: rotate(-2.4deg) skewX(-1deg) translate3d(-4px, -8px, 0); }
.ev__fig.ev__fig--low:hover .ev__pic, .ev__fig:nth-child(2):hover .ev__pic { transform: rotate(2.4deg) skewX(1deg) translate3d(4px, -8px, 0); }
@media (max-width: 820px) { .case__event:not(:has(.ev__p)) .ev__fig.ev__fig--big { width: 100%; } .case__event:not(:has(.ev__p)) .ev__fig.ev__fig--low { margin-top: 0; } }
/* palabra tachada en bordó */
.bd-del { text-decoration-color: var(--bordo); text-decoration-thickness: .08em; }
/* botón de pantalla completa del film */
.film__full svg { width: 18px; height: 18px; display: block; }
/* tachado que se achica al pasar el mouse y vuelve a tachar al salir */
.bd-del { text-decoration: none; background: linear-gradient(var(--bordo), var(--bordo)) no-repeat 0 58% / 100% .08em; transition: background-size .6s var(--ease-out); cursor: default; }
.bd-del:hover { background-size: 0% .08em; }
/* Snark: la hoja rosa con la grilla sube y tapa el video */
.st-sheet--gal { padding-top: clamp(90px, 12vh, 130px); }
.st-sheet--gal { padding-top: 0; }

/* HOME — sobre mí (sigue al fondo oscuro de los trabajos) */
.ha { margin: 0 calc(var(--gutter) * -1); padding: clamp(40px, 7vh, 90px) var(--gutter) clamp(120px, 20vh, 220px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 8vw, 160px); align-items: start;
  background-color: var(--ink); color: var(--paper);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .06) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); scroll-margin-top: 60px; }
.ha__tag { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(30px, 5vh, 56px); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--rosa); }
.ha__tag i { display: block; width: 32px; height: 1px; background: currentColor; }
.ha__t { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 60px); line-height: 1.08; letter-spacing: -.035em; color: var(--paper); }
.ha__t b { display: block; font-weight: 700; margin-bottom: .1em; }
.ha__r { padding-top: clamp(70px, 10vh, 110px); }
.ha__r p { margin: 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: rgba(246, 246, 246, .62); }
.ha__r p + p { margin-top: 1.1em; }
.ha__r strong { color: var(--paper); font-weight: 700; }
.ha__l, .ha__r { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ha.is-in .ha__l, .ha.is-in .ha__r { opacity: 1; transform: none; }
.ha.is-in .ha__r { transition-delay: .15s; }
.hf.hf--v3 { padding-bottom: clamp(60px, 10vh, 120px); }
@media (max-width: 820px) { .ha { grid-template-columns: 1fr; margin: 0 -20px; padding: 40px 20px 100px; } .ha__r { padding-top: 34px; } }
.ha { padding-top: clamp(110px, 15vh, 160px); }
/* en la home con "sobre mí" marcado, sin los corchetes de todo el menú */
body[data-view="home"] .nav:has([aria-current="page"]) .nav__link[data-route="proyectos"]:not([aria-current])::before,
body[data-view="home"] .nav:has([aria-current="page"]) .nav__link[data-route="contacto"]:not([aria-current])::after { opacity: 0; width: 0; margin: 0; }

/* sobre mí v2: frase que se enciende, signo "?" gigante que gira, textos que suben y teclas de herramientas */
.ha { position: relative; overflow: hidden; row-gap: clamp(70px, 12vh, 140px); }
.ha > * { position: relative; z-index: 1; }
.ha__q { position: absolute; z-index: 0; right: -4vw; top: 6%; font-family: var(--f-display); font-weight: 700; font-size: clamp(320px, 42vw, 760px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(238, 116, 40, .55); pointer-events: none; will-change: transform; }
.ha__tag { opacity: 0; transition: opacity .8s var(--ease-out); }
.ha__tag i { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .1s; }
.ha__tag.is-in { opacity: 1; } .ha__tag.is-in i { transform: none; width: 48px; }
.ha__l, .ha__r { opacity: 1; transform: none; }
.ha__t { font-weight: 400; }
.ha__t br + .ha__w { margin-top: .12em; }
.ha__w { display: inline-block; color: rgba(246, 246, 246, .16); transform: translateY(.18em); transition: color .5s var(--ease-out), transform .6s var(--ease-out); }
.ha__w.is-on { color: var(--paper); transform: none; }
.ha__w--b { font-weight: 700; }
.ha__w--r.is-on { color: var(--rosa); }
.ha__w--o.is-on { color: var(--oliva); }
.ha__w--s { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; font-size: 1.12em; }
.ha__w--s.is-on { color: var(--naranja); }
.ha__w--end.is-on { color: var(--naranja); }
.ha__p { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ha__p.is-in { opacity: 1; transform: none; }
.ha__p strong em { background: linear-gradient(var(--bordo), var(--bordo)) no-repeat 0 92% / 0% .32em; transition: background-size 1.2s var(--ease-out) .6s; }
.ha__p.is-in strong em { background-size: 100% .32em; }
/* herramientas: teclas */
.ha__kit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: clamp(30px, 5vw, 90px); align-items: center;
  padding-top: clamp(40px, 7vh, 80px); border-top: 1px solid rgba(246, 246, 246, .16); }
.ha__kit-t { margin: 0; font-size: clamp(30px, 3vw, 52px); color: var(--rosa); line-height: 1; }
.ha__kit-t b { color: var(--naranja); font-family: var(--f-display); font-weight: 500; margin-left: .1em; display: inline-block; animation: haSpin 6s linear infinite; }
@keyframes haSpin { to { transform: rotate(360deg); } }
.ha__keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.ha__key { --k: var(--paper); --kt: var(--ink); perspective: 600px; outline: none; }
.ha__key--naranja { --k: var(--naranja); } .ha__key--bordo { --k: var(--bordo); --kt: var(--paper); } .ha__key--rosa { --k: var(--rosa); }
.ha__key--oliva { --k: var(--oliva); } .ha__key--paper { --k: var(--paper); }
.ha__cap { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: clamp(8px, .9vw, 14px); border-radius: 10px;
  background: var(--k); color: var(--kt); box-shadow: 0 7px 0 rgba(0, 0, 0, .45), inset 0 -3px 0 rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(-60px) rotate(calc((var(--i) - 3.5) * 4deg));
  transition: transform .7s cubic-bezier(.2, 1.5, .4, 1), opacity .4s, box-shadow .15s; transition-delay: calc(var(--i) * 80ms); }
.ha__kit.is-in .ha__cap { opacity: 1; transform: none; }
.ha__cap b { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 40px); letter-spacing: -.04em; line-height: 1; }
.ha__cap small { font-size: clamp(9px, .72vw, 12px); letter-spacing: .02em; opacity: .8; }
.ha__key:hover .ha__cap, .ha__key:focus-visible .ha__cap, .ha__key:active .ha__cap { transform: translateY(6px) !important; box-shadow: 0 1px 0 rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(0, 0, 0, .12); transition-delay: 0s; }
@media (max-width: 820px) {
  .ha__kit { grid-template-columns: 1fr; row-gap: 26px; }
  .ha__keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ha__q { font-size: 90vw; right: -20vw; top: 2%; }
}

/* sobre mí v3: menos color, herramientas como lista sobria */
.ha__w--r.is-on, .ha__w--o.is-on { color: var(--paper); }
.ha__w--s.is-on { color: var(--rosa); }
.ha__w--end.is-on { color: var(--paper); }
.ha__kit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; border-top: 0; padding-top: 0; }
.ha__tag--kit { margin: 0; padding-top: 18px; }
.ha__tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 56px); }
.ha__tools li { display: flex; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(246, 246, 246, .14);
  font-size: clamp(14px, 1.05vw, 17px); letter-spacing: .03em; color: rgba(246, 246, 246, .62); transition: color .3s, padding .35s var(--ease-out);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), color .3s, padding .35s var(--ease-out); transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s, 0s; }
.ha__kit.is-in .ha__tools li { opacity: 1; transform: none; }
.ha__tools li b { color: var(--naranja); font-weight: 500; width: 0; overflow: hidden; display: inline-block; transition: width .35s var(--ease-out); }
.ha__tools li:hover { color: var(--paper); }
.ha__tools li:hover b { width: 1em; }
@media (max-width: 820px) { .ha__kit { grid-template-columns: 1fr; row-gap: 14px; } }
.ha__kit { column-gap: clamp(40px, 8vw, 160px); }
.ha__w--s.is-on { color: var(--oliva); }
.ha__kit { display: none !important; } .ha { row-gap: 0; }
.st-tags { margin-top: clamp(18px, 2.5vh, 26px); }

/* Alien: slime arriba con gotas que caen hasta la hoja */
.st-slime { background: var(--ink); }
.st-slime__img { position: absolute; left: 50%; top: 0; width: max(100%, 150vh); transform: translateX(-50%) scale(calc(1 + var(--cover, 0) * .06)); transform-origin: 50% 0;
  animation: slimeOoze 5s ease-in-out infinite; }
@keyframes slimeOoze { 0%, 100% { scale: 1 1; } 50% { scale: 1.006 1.035; } }
.st-slime__cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.st-slime::after { z-index: 3; }
@media (max-width: 820px) { .st-slime__img { width: 190%; } }
/* Alien: negro con la grilla, también detrás del slime */
.st-slime { background-color: var(--ink);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); }
body.case-dark .st-sheet--view { background-image: linear-gradient(to right, rgba(246, 246, 246, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .07) 1px, transparent 1px); }
/* Alien: el slime y las fotos son una sola hoja (sin efecto de tapado) */
.st-vid.st-slime { position: relative; }
.st-slime::after { display: none; }
.st-slime .st-slime__img { transform: translateX(-50%); }
.st-slime + .st-sheet { box-shadow: none; }
/* Alien: el slime queda arriba de todo y las fotos pasan por debajo */
.st-vid.st-slime { position: relative; height: 92vh; height: 92svh; }
.slime-layer { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0; transition: opacity .5s; }
.slime-layer.is-on { opacity: 1; }
.slime-layer .st-slime__img { position: absolute; left: 50%; top: 0; width: max(100%, 150vh); transform: translate(-50%, var(--lift, 0px)); transform-origin: 50% 0;
  animation: slimeOoze 5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.slime-layer .st-slime__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 820px) { .slime-layer .st-slime__img { width: 190%; } }
.slime-layer.is-gone { visibility: hidden; }

/* home: la pregunta en cursiva */
.hx__q { font-style: italic; }
/* ¿Y si,,, hablamos? — más chico y sobre bordó */
.hk { background: var(--bordo); color: var(--paper); padding-top: clamp(44px, 7vh, 76px); padding-bottom: clamp(40px, 6vh, 70px); gap: clamp(18px, 3vh, 30px);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); }
.hk__t, .hk__s, .hk__btn { color: var(--paper); }
.hk__c { color: var(--rosa); font-weight: 700; letter-spacing: .02em; }
.hk__btn:hover { color: var(--rosa); } .hk__btn:hover .hk__br { color: var(--paper); }

/* cinta de la home: fondo bordó, asteriscos verdes (oliva) */
.hf-tape { background: var(--bordo); border-bottom: 0; }
.hf-tape .tape-sep { color: var(--oliva); }

/* "¿Y si hablamos?" final: fondo negro */
.hk { background: var(--ink); }
/* grilla de fondo un poco más marcada */
:root { --grid-c: rgba(29, 29, 27, .12); }
body[data-view="sobre-mi"] { --grid-c: rgba(29, 29, 27, .12); }
body.case-dark[data-view="caso"], body[data-view="contacto"] { --grid-c: rgba(246, 246, 246, .13); }

/* ==========================================================================
   AJUSTES 30/10
   ========================================================================== */
/* sobre mí: la frase queda solo en negrita y cursiva, sin el subrayado */
.ha__p strong em, .ha__p.is-in strong em { background: none; }

/* "Y si ,,, hablamos ??" final: banda bordó con la grilla; título grande a la izquierda, texto + contacto a la derecha */
.hq {
  margin: 0 calc(var(--gutter) * -1); padding: clamp(80px, 13vh, 150px) var(--gutter);
  background-color: var(--bordo); color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(246, 246, 246, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 246, 246, .12) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 120px);
}
.hq__t {
  grid-column: 1; grid-row: 1; margin: 0; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(48px, 7vw, 132px); line-height: 1.04; letter-spacing: -.045em; color: var(--paper);
}
.hq__t span { display: block; }
.hq__s1 { font-weight: 300; font-size: .62em; margin-bottom: .08em; }
.hq__h { font-style: italic; }
.hq__c { color: var(--rosa); font-weight: 700; letter-spacing: .02em; margin-right: .04em; }
.hq__q2 { color: var(--rosa); font-weight: 700; font-style: italic; font-size: .72em; letter-spacing: -.06em; }
.hq__side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; }
.hq__lo {
  margin: 0 0 clamp(22px, 4vh, 44px); font-family: var(--f-script); font-weight: 400; letter-spacing: 0;
  font-size: clamp(26px, 2.6vw, 46px); line-height: 1.08; color: var(--rosa);
}
.hq__lo span { display: block; }
.hq__lo b { font-weight: 400; color: var(--paper); }
.hq__s { margin: 0; font-size: clamp(18px, 1.5vw, 26px); line-height: 1.35; color: var(--paper); }
.hq__btn {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: clamp(16px, 2.6vh, 30px);
  color: var(--paper); text-decoration: none; font-size: clamp(17px, 1.3vw, 21px); font-weight: 500;
  transition: color .25s var(--ease-out);
}
.hq__br { display: inline-block; transition: transform .45s var(--ease-out); }
.hq__br:first-child { margin-right: .32em; } .hq__br:last-child { margin-left: .32em; }
.hq__btn:hover, .hq__btn:focus-visible { color: var(--oliva); }
.hq__btn:hover .hq__br:first-child { transform: translateX(-5px); }
.hq__btn:hover .hq__br:last-child { transform: translateX(5px); }
.hq__quote { margin: clamp(28px, 4.5vh, 52px) 0 0; }
.hq__quote p { margin: 0; font-style: italic; font-size: clamp(14px, 1.08vw, 19px); line-height: 1.35; color: var(--rosa); }
@media (min-width: 821px) { .hq__quote p { white-space: nowrap; } }
.hq__quote cite { display: block; margin-top: .7em; font-style: normal; font-size: clamp(11px, .8vw, 13px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 246, 246, .7); }
@media (min-width: 821px) { .hq__s { white-space: nowrap; font-size: clamp(16px, 1.3vw, 22px); } }
@media (max-width: 820px) {
  .hq { margin: 0 -20px; padding: 70px 20px; grid-template-columns: 1fr; gap: 28px; }
  .hq__side { grid-column: 1; grid-row: 2; border-left: 0; padding-left: 0; }
}

/* proyectos: más juntos, centrados en la grilla y con menos aire alrededor */
@media (min-width: 821px) {
  .strip.is-grid .s-item,
  .strip.is-grid .s-item.is-tiny,
  .strip.is-grid .s-item.is-mid,
  .strip.is-grid .s-item.is-edge-l,
  .strip.is-grid .s-item.is-edge-r { --pad: clamp(10px, 1vw, 16px); padding: var(--pad); }
  /* ArteBA, Rapsodia y Marc Jacobs: mismo bloque (2×2), cada portada con su formato */
  .strip.is-grid .s-item.is-fit { display: flex; align-items: center; justify-content: center; }
  .strip.is-grid .s-item.is-fit .s-item__hit { flex: none; aspect-ratio: var(--ar); max-width: 100%; max-height: 100%; }
  .strip.is-grid .s-item.is-fit.fit-h .s-item__hit { height: 100%; width: auto; }
  .strip.is-grid .s-item.is-fit.fit-w .s-item__hit { width: 100%; height: auto; }
}

/* Coghlan (Oasis en el vértigo): la portada se ve desde arriba para que no se corte la cabeza de la modelo */
.strip.is-grid .s-item[data-slug="oasis-en-el-vertigo"] .s-item__img img { object-position: 50% 0%; }

/* Coghlan (Oasis): la portada se apoya arriba para que no se corte la cabeza de la modelo */
.strip.is-grid .s-item[data-slug="oasis-en-el-vertigo"] .s-item__img img { object-position: 50% 0% !important; }
/* Oasis: la frase final abajo del texto de Estación Oasis, al lado del moodboard (04) */
.case__event:has(.ev__closing) .ev__text { grid-row: 1; position: static; }
.case__event:has(.ev__closing) .ev__imgs { grid-row: 1 / span 2; }
.ev__closing { grid-column: 1 / span 5; grid-row: 2; align-self: end; padding-left: clamp(18px, 2vw, 40px); padding-bottom: clamp(30px, 6vh, 80px); opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.ev__closing.is-in { opacity: 1; transform: none; }
.ev__closing .board { font-size: clamp(26px, 2.7vw, 50px); line-height: 1.06; font-weight: 300; width: auto; max-width: none; }
.case__event:has(.ev__closing) { padding-bottom: clamp(140px, 22vh, 240px); }
@media (max-width: 820px) {
  .case__event:has(.ev__closing) .ev__imgs, .case__event:has(.ev__closing) .ev__text, .ev__closing { grid-row: auto; grid-column: 1 / -1; }
  .ev__closing { padding-bottom: 0; order: 2; }
  .ev__closing .board { font-size: clamp(24px, 7vw, 40px); }
}
/* Oasis: Estación Oasis (etiqueta, título y texto) centrado con el moodboard, y la frase final más cerca */
.case__event:has(.ev__fig:only-child) { align-items: center; padding-bottom: 2vh; }
.case__event:has(.ev__imgs):has(.ev__fig:only-child) .ev__text { align-self: center; position: static; }
.case__event:has(.ev__fig:only-child) + .case__closing { min-height: 0; padding-top: clamp(20px, 3vh, 50px); }
/* Contacto al final de la home y de proyectos (en vez de una sección aparte) */
.contact-end {
  display: block; position: relative; min-height: 100dvh; color: var(--paper);
  background-color: var(--ink);
  background-image: linear-gradient(to right, rgba(246, 246, 246, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(246, 246, 246, .08) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.contact-end[hidden] { display: none; }
.contact-end .contact { min-height: 100dvh; height: auto; }
.view--projects .contact-slot { margin-top: clamp(60px, 10vh, 120px); margin-bottom: calc(-1 * clamp(40px, 6vh, 80px)); }
@media (max-width: 820px) { .contact-end .contact { min-height: 0; padding-top: 90px; } }
body.nav-on-contact .nav-wrap { --nav-fg: var(--paper) !important; }
body.nav-on-contact .nav-wrap::before { background: linear-gradient(to bottom, rgba(18, 18, 16, .55), rgba(18, 18, 16, 0)) !important; }
body.nav-on-contact .nav__link, body.nav-on-contact .nav__sep, body.nav-on-contact .nav__br { color: var(--paper) !important; }
.ab-rest .contact-slot { grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1); }
@media (max-width: 820px) { .ab-rest .contact-slot { margin: 0 -20px; } }

/* links de contacto: al pasar, el nombre y la flecha en verde */
a.c-row:hover span, a.c-row:focus-visible span { color: var(--oliva) !important; }
a.c-row span { transition: color .25s var(--ease-out); }
/* en proyectos, el contacto más compacto (sin tanto aire arriba) */
.view--projects .contact-end, .view--projects .contact-end .contact { min-height: 0; }
.view--projects .contact-end .contact { padding-top: clamp(60px, 9vh, 100px); padding-bottom: clamp(70px, 11vh, 120px); align-content: start; }
.view--projects .contact-slot { margin-top: clamp(30px, 5vh, 60px); }
/* home: menos espacio entre "sobre mí" y el contacto */
.ha:has(+ .contact-slot) { padding-bottom: clamp(80px, 12vh, 130px); }
.ab-rest .contact-end, .ab-rest .contact-end .contact { min-height: 0; }
.ab-rest .contact-end .contact { padding-top: clamp(70px, 10vh, 110px); padding-bottom: clamp(90px, 14vh, 150px); align-content: start; }
body.nav-on-light .nav-wrap { --nav-fg: var(--ink) !important; }
body.nav-on-light .nav-wrap::before { background: linear-gradient(to bottom, var(--paper) 55%, rgba(246, 246, 246, 0)) !important; }
body.nav-on-light .nav__link, body.nav-on-light .nav__sep, body.nav-on-light .nav__br { color: var(--ink) !important; text-shadow: none !important; }
body.nav-on-light .brand { filter: none !important; }

/* ===== Sobre mí en blanco: se abre como una hoja y el contacto sale por debajo ===== */
.ab-rest .ha {
  position: relative; z-index: 2; padding-top: clamp(90px, 12vh, 120px); padding-bottom: clamp(60px, 9vh, 100px) !important;
  background-color: var(--paper); color: var(--ink);
  background-image: linear-gradient(to right, rgba(29, 29, 27, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(29, 29, 27, .07) 1px, transparent 1px);
}
.ab-rest .ha .ha__tag { color: var(--oliva); }
.ab-rest .ha .ha__t { color: var(--ink); }
.ab-rest .ha .ha__w { color: rgba(29, 29, 27, .14); }
.ab-rest .ha .ha__w.is-on { color: var(--ink); }
.ab-rest .ha .ha__w--r.is-on, .ab-rest .ha .ha__w--o.is-on { color: var(--ink); }
.ab-rest .ha .ha__w--s.is-on { color: var(--bordo); }
.ab-rest .ha .ha__w--end.is-on { color: var(--naranja); }
.ab-rest .ha .ha__r p { color: rgba(29, 29, 27, .72); }
.ab-rest .ha .ha__r strong { color: var(--ink); }
.ab-rest .ha .ha__kit-t { color: var(--bordo); }
.ab-rest .ha .ha__tools li { border-bottom-color: rgba(29, 29, 27, .14); }
.ab-rest .ha .ha__tools li:hover { color: var(--ink); }
/* el contacto queda pegado abajo, detrás de "sobre mí": al bajar, la hoja blanca se va y lo descubre */
.ab-rest .contact-slot { position: sticky; bottom: 0; z-index: 1; }
.ab-rest:has(.contact-end.is-under) .ha { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.ab-rest > .hx, .ab-rest > .hf { position: relative; z-index: 2; }
.ab-rest .contact-end, .view--projects .contact-end { visibility: hidden; }
.ab-rest .contact-end.is-under, .view--projects .contact-end.is-under { visibility: visible; }
/* proyectos: la grilla tapa al contacto, que sale por debajo al llegar al final */
.view--projects .projects { position: relative; z-index: 2; background-color: var(--paper);
  background-image: linear-gradient(to right, var(--grid-c) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-c) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); padding-bottom: clamp(40px, 6vh, 80px); }
.view--projects .contact-slot { position: sticky; bottom: 0; z-index: 1; margin-top: 0; margin-bottom: calc(-1 * clamp(40px, 6vh, 80px)); }
/* PRUEBA · proyectos a color (sin blanco y negro) */
.strip.is-grid .s-item__img img, .strip.is-grid .s-item__img video, .strip.is-grid.is-hovering .s-item { filter: none !important; }
/* sobre mí: el texto de la derecha arranca a la altura de "Soy Lola Pena." */
@media (min-width: 821px) { .ab-rest .ha .ha__r { padding-top: calc(16px + clamp(30px, 5vh, 56px)); } }
