:root {
  --paper: #F4F2EF;
  --ink: #1E1E1E;
  --ink-soft: #55504c;
  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-geom: 'Geom', system-ui, -apple-system, sans-serif;
  --pad: 40px;
  --g: 6px;
  --bar: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geom);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.02em;
  text-transform: none;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.caps {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* === ENTRADA: el nombre baja desde arriba y las piezas suben desde abajo === */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--paper);
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.intro span { display: none; }
.ready .intro { opacity: 0; }
body:not(.ready) .item { opacity: 0 !important; transform: translateY(90px) !important; }

/* Red de seguridad: pase lo que pase con la carga, a los 3 segundos el nombre y la navegación se ven */
@keyframes mostrar { to { opacity: 1; transform: none; } }
@keyframes ocultar { to { opacity: 0; visibility: hidden; } }
.hero-h1 > span, .hero-nav { animation: mostrar 0.01s 3s forwards; }
.intro { animation: ocultar 0.01s 3s forwards; }

/* Grano de papel muy leve sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900; /* por encima de todo, también de la entrada, para que el blanco sea uno solo */
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === CABECERA: el nombre a todo el ancho, como en el portfolio anterior === */
.hero { padding: 26px var(--pad) 0; }
/* La tipografía del nombre nunca se recorta: entra entera, bajando desde arriba */
.hero-h1 { line-height: 0.8; padding-bottom: 3.6vw; margin-bottom: -3.3vw; }
.hero-h1 span {
  display: inline-block;
  white-space: nowrap;
  font-size: 15vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(-70%);
  transition: transform 1.5s var(--ease) 0.1s, opacity 0.7s ease 0.1s;
}
.hero-h1 span span { opacity: 1; transform: none; transition: none; }
.ready .hero-h1 span { opacity: 1; transform: none; }
.hero-nav { opacity: 0; transform: translateY(-14px); transition: opacity 0.7s ease 0.75s, transform 1s var(--ease) 0.75s; }
.ready .hero-nav { opacity: 1; transform: none; }
.hero-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  /* alto suficiente para que el palito de la p termine antes de la primera pieza */
  min-height: calc(3.3vw + 16px);
  align-items: start;
  padding: 4px 0 12px;
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
}
.hero-nav > :first-child { justify-self: start; }
.hero-nav .here { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero-nav-right { justify-self: end; display: flex; gap: 18px; align-items: center; }
.ico { display: inline-flex; }
.ico svg, .panel-links svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-nav button { font: inherit; letter-spacing: inherit; }
.hero-nav a, .hero-nav button { transition: opacity 0.2s ease; }
.hero-nav a:hover, .hero-nav button:hover { opacity: 0.5; }

/* === BARRA: aparece al scrollear, sobre un velo blanco muy suave === */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom,
    rgba(244, 242, 239, 0.98) 0%, rgba(244, 242, 239, 0.94) 22%, rgba(244, 242, 239, 0.8) 40%,
    rgba(244, 242, 239, 0.55) 58%, rgba(244, 242, 239, 0.28) 74%, rgba(244, 242, 239, 0.1) 88%, rgba(244, 242, 239, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
}
.scrolled .bar { opacity: 1; transform: none; }
.bar > * { height: 58px; display: flex; align-items: center; transition: opacity 0.2s ease; }
.scrolled .bar > * { pointer-events: auto; }
.bar-link:hover { opacity: 0.5; }
.bar-left { justify-self: start; }
.bar-right { justify-self: end; }
.bar-title { font-size: 30px; line-height: 1; white-space: nowrap; }
.bar .bar-link { font-family: var(--font-serif); font-variation-settings: "opsz" 144, "SOFT" 100; font-size: 18px; font-weight: 400; letter-spacing: -0.01em; text-transform: none; }

/* === TABLERO: filas completas, mismo espacio entre todo === */
#board {
  padding: 0 var(--pad) 0;
  display: flex;
  flex-direction: column;
  gap: var(--g);
}
.row { display: flex; gap: var(--g); }

.item {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  cursor: default;
  background: rgba(30, 30, 30, 0.05);
  opacity: 0;
  transform: translateY(90px);
  transition: opacity 0.7s ease, transform 1.25s var(--ease);
}
.item.in { opacity: 1; transform: none; }
.item img, .item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.item:hover img, .item:hover video { transform: scale(1.035); }

.item-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 64px 14px 12px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
  pointer-events: none;
}
.item.more .item-cap { padding-top: 110px; background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 100%); }
.item-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.item-cap b { display: block; font-weight: 600; }
.item-side { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.item-cap time { font-weight: 400; font-variant-numeric: tabular-nums; opacity: 0.85; }
.item-desc { max-width: 54ch; font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-wrap: pretty; }
/* Etiquetas en cápsulas de vidrio */
.item-tags { display: flex; flex-wrap: wrap; gap: 3px; }
/* En la grilla las cápsulas van arriba a la izquierda; el título queda abajo a la izquierda */
.item > .item-tags {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
  pointer-events: none;
}
.item:hover > .item-tags, .item:focus-visible > .item-tags { opacity: 1; transform: none; }
.item:has(.item-btn) > .item-tags { right: 150px; }
.item-tags i {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 1px 8px 0;
  border-radius: 999px;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: 0 4px 14px rgba(30, 30, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.item:hover .item-cap, .item:focus-visible .item-cap { opacity: 1; transform: none; }

/* Placa que pasa sobre la primera al recorrer un carrusel */
.item .car-top { z-index: 1; opacity: 0; transition: opacity 0.35s ease; }
.item .car-top.on { opacity: 1; }
.item.car .item-cap { z-index: 2; }

/* Piezas con más para contar: aparece "Info" y se pueden abrir */
.band-desc {
  position: absolute;
  right: 22px; bottom: 70px;
  z-index: 3;
  width: min(380px, 29%);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
  pointer-events: none;
}
.item.band:hover .band-desc { opacity: 1; transform: none; }
.band-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.item.band.more:hover .band-media::before { opacity: 1; }
.item-cap time { font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0.85; }
.item:hover .item-cap, .item:focus-visible .item-cap { opacity: 1; transform: none; }
/* Destacadas: franja ancha con el título grande y cápsulas que se salen del marco */
.item.band { background: none; overflow: visible; z-index: 3; }
.band-media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 30, 30, 0.62) 0%, rgba(30, 30, 30, 0.2) 38%, rgba(30, 30, 30, 0) 66%);
  pointer-events: none;
}
.band-cap { position: absolute; inset: 0; z-index: 2; color: var(--paper); pointer-events: none; }
.band-title {
  position: absolute;
  left: 0; bottom: 0;
  font-size: clamp(50px, 9.6vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin: 0 0 0.06em 0.06em;
}
.band-foot {
  position: absolute;
  right: 22px; bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Botones de link: los únicos elementos cliqueables del archivo */
.btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 1px 14px 0 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(30, 30, 30, 0.22);
  transition: transform 0.4s var(--ease), box-shadow 0.3s ease;
}
.btn svg { width: 13px; height: 13px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 30, 30, 0.28); }
.band-foot { align-items: center; }
.item-btn { position: absolute; right: 12px; top: 12px; z-index: 4; }
.band-tags {
  position: absolute;
  top: 20px; right: 22px;
  display: flex;
}
/* Cápsulas de vidrio, tiradas medio al azar dentro de la pieza */
.band-tags i {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 1px 11px 0;
  margin-left: -7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: 0 4px 14px rgba(30, 30, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.7s var(--ease);
}
.band-tags i:nth-child(4n + 1) { transform: rotate(-9deg) translate(4px, 9px); }
.band-tags i:nth-child(4n + 2) { transform: rotate(6deg) translate(0, -7px); }
.band-tags i:nth-child(4n + 3) { transform: rotate(-4deg) translate(-3px, 14px); }
.band-tags i:nth-child(4n + 4) { transform: rotate(12deg) translate(-6px, 1px); }
.item.band:hover .band-tags i { transform: rotate(0deg) translate(0, 4px); }
.item.ph { cursor: default; }

/* === FOOTER (compu) === */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 72px var(--pad) 64px;
}
.foot-left { justify-self: start; font-size: 32px; line-height: 1; transition: opacity 0.2s ease; }
.foot-left:hover { opacity: 0.5; }
.foot-right { justify-self: end; }

/* === FICHA (celular): aparece abajo al tocar una pieza === */
.sheet {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 160;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 14px 40px rgba(30, 30, 30, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.5s var(--ease), visibility 0.5s;
}
.sheet.open { opacity: 1; visibility: visible; transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.sheet-head b { font-family: var(--font-serif); font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 100; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.sheet-head time { font-size: 11px; font-weight: 400; letter-spacing: 0.12em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sheet .item-tags { margin-top: 0; }
.sheet .item-tags i { background: #fff; border-color: rgba(30, 30, 30, 0.1); }
.sheet-desc { font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.sheet-desc:empty { display: none; }
.sheet-link { align-self: flex-start; display: inline-flex; align-items: center; height: 32px; padding: 1px 16px 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }

/* === BARRA DE ABAJO (celular) === */
.dock { display: none; }

/* === TARJETAS: lo de atrás queda desenfocado y velado === */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(244, 242, 239, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.overlay.open { opacity: 1; visibility: visible; }

.panel, .viewer {
  position: fixed;
  top: 50%; left: 50%;
  z-index: 300;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(30, 30, 30, 0.18), 0 2px 10px rgba(30, 30, 30, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 26px)) scale(0.985);
  transition: opacity 0.4s ease, transform 0.6s var(--ease), visibility 0.6s;
}
.panel.open, .viewer.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.panel { width: 820px; overflow-y: auto; }
.viewer-media { cursor: pointer; transition: opacity 0.25s ease; }
.viewer-media.swap { opacity: 0; }
.panel-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  font-size: 14px;
  border-radius: 50%;
  z-index: 5;
  background: var(--paper);
}
.panel-close:hover { background: #e6e2dd; }
.panel-inner { padding: 48px 48px 44px; display: grid; grid-template-columns: 5fr 6fr; gap: 44px; align-items: stretch; }
.panel-side, .panel-main { display: flex; flex-direction: column; gap: 14px; }
.panel-main { padding-top: 6px; }
.panel-photo { width: 120px; margin-bottom: 4px; }
.panel-title { font-size: 38px; line-height: 1; }
.panel-role { font-weight: 600; letter-spacing: 0.1em; }
.panel-what { font-size: 22px; line-height: 1.15; }
.panel-desc { font-size: 15px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.panel-desc:empty { display: none; }
.panel-desc strong { color: var(--ink); font-weight: 600; }
/* La nota va abajo de todo, a la altura del Instagram */
.panel-note { margin-top: auto; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.panel-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.panel-links a { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 19px; line-height: 1.2; transition: opacity 0.2s ease; }
.panel-links a:hover, .viewer-link:hover { opacity: 0.5; }

.viewer { display: flex; flex-direction: column; width: max-content; overflow-y: auto; }
.viewer-media { display: flex; justify-content: center; background: #111; min-width: 320px; }
.viewer-media img, .viewer-media video {
  display: block;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 300px);
  width: auto;
  height: auto;
}
.viewer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px 20px;
  width: 0;
  min-width: 100%;
}
.viewer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; }
.viewer-title { font-size: 28px; line-height: 1.05; }
.viewer-date { font-weight: 400; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.viewer-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.viewer-tags span {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 1px 10px 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(30, 30, 30, 0.1);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.viewer-tags, #vDesc, .viewer-link { grid-column: 1; }
.viewer-link { align-self: flex-start; margin-top: 10px; font-family: var(--font-serif); font-variation-settings: "opsz" 144, "SOFT" 100; font-size: 19px; letter-spacing: -0.01em; }
#vDesc { max-width: 62ch; }
#vDesc { margin-top: 6px; font-size: 14px; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
/* Las piezas no llevan recuadro al quedar seleccionadas: muestran su título, como al pasar el mouse */
.item, .item:focus, .item:focus-visible, .viewer-media:focus { outline: none; }

/* === CELULAR === */
@media (max-width: 700px) {
  :root { --pad: 14px; --g: 3px; --bar: 56px; }
  .hero { padding-top: 16px; }
  .hero-nav { display: none; }
  .hero-h1 { padding-bottom: 4.4vw; margin-bottom: -1vw; }
  .bar { grid-template-columns: 1fr; justify-items: center; height: 92px; background: linear-gradient(to bottom, rgba(244, 242, 239, 0.98) 0%, rgba(244, 242, 239, 0.96) 46%, rgba(244, 242, 239, 0.6) 70%, rgba(244, 242, 239, 0) 100%); }
  .bar-link { display: none; }
  .bar > * { height: 48px; }
  .bar-title { font-size: 22px; }
  .band-tags { top: 12px; right: 8px; }
  .band-tags i { font-size: 6.5px; height: 17px; padding: 1px 8px 0; margin-left: -6px; }
  .band-foot { right: 10px; bottom: 8px; gap: 10px; font-size: 8px; }
  .item-cap { display: none; }
  .item > .item-tags { display: none; }
  .item-info { opacity: 1; transform: none; top: 8px; left: 8px; height: 19px; padding: 1px 9px 0; font-size: 7.5px; }
  .band-desc { display: none; }
  .dock .ico svg { width: 23px; height: 23px; }
  .foot { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .foot-left { font-size: 22px; justify-self: center; }
  .foot-right { justify-self: center; }

  .foot { padding: 36px var(--pad) 110px; }

  /* Abajo: velo blanco con Info a la izquierda y Mail · Instagram a la derecha */
  .dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 104px;
    padding: 0 var(--pad) calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--paper) 0%, rgba(244, 242, 239, 0.94) 42%, rgba(244, 242, 239, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .dock > * { pointer-events: auto; display: flex; gap: 22px; }
  .dock a, .dock button {
    padding: 4px 0;
    color: var(--ink);
    font-family: var(--font-serif);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .dock.hide { opacity: 0; pointer-events: none; }
  .dock.hide > * { pointer-events: none; }

  .panel { width: calc(100vw - 24px); }
  .panel-inner { padding: 40px 24px 28px; grid-template-columns: 1fr; gap: 18px; }
  .btn { height: 24px; padding: 1px 10px 0 8px; font-size: 8px; gap: 5px; }
  .btn svg { width: 10px; height: 10px; }
  .item-btn { right: 6px; top: 6px; }
  .band-foot .btn { display: none; }
  .viewer-media img, .viewer-media video { max-width: calc(100vw - 24px); max-height: calc(100dvh - 380px); }
  .viewer-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .item { opacity: 1; transform: none; }
}

/* Página quieta para capturas (?still) */
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }
.still .hero-h1 > span, .still .hero-nav { opacity: 1 !important; transform: none !important; }
.still .intro { display: none; }
.still .item { opacity: 1 !important; transform: none !important; }
.still .hero-h1 span { transform: none !important; }
