/* Rocio Villamizar
   Papel de galería, tinta, y el verde de sus jardines como único acento.
   El verde profundo de la noche viene de las propias obras. */
:root {
  --paper: #f6f2ec;
  --paper-2: #eee8dd;
  --paper-3: #e2dccd;
  --ink: #1b1a15;
  --ink-2: #3a382f;
  --muted: #69665a;
  --line: rgb(var(--ink-rgb) / .12);
  --accent-rgb: 95 122 60;
  --accent: rgb(var(--accent-rgb));
  --accent-ink: #46592a;
  --accent-soft: #e2e6d1;
  --olive: #b9b98f;
  --olive-ink-rgb: 42 47 27;
  --olive-ink: rgb(var(--olive-ink-rgb));
  --night: #1b2a1d;
  --night-2: #26382a;
  --on-night-rgb: 243 239 228;
  --on-night: rgb(var(--on-night-rgb));
  /* verde claro para acentos encima de fotos oscuras, igual en los dos temas */
  --sage-on-night: #d4e2b0;
  --sage-on-night-em: #e1ebc6;
  /* velo verde oscuro sobre las fotos, para que el texto claro se lea */
  --scrim: 14 22 14;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4.2vw, 3.6rem);
  --nav-h: calc(3.6rem + env(safe-area-inset-top));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --max: 1520px;
  /* Superficies y sombras que cambian con el tema */
  --raised: var(--paper);
  --shade: 27 26 21;
  --shade-k: 1;
  --ink-rgb: 27 26 21;
  --glass: 246 242 236;
  --dock: var(--ink);
  --on-dock: var(--paper);
  --dock-hover: #2b2d22;
  --accent-wash: rgb(var(--accent-rgb) / .24);
  /* Fijos: encima de fotos y del verde se leen igual en los dos temas */
  --ink-fixed: #1b1a15;
  --on-accent: #f7f5ec;
  --accent-cta: #4e6630;
  --accent-tint: #e2e6d1;
  color-scheme: light;
}

/* Tema oscuro: el jardín de noche. La tinta se vuelve papel, el papel se vuelve
   un verde casi negro, y el verde del acento se aclara para seguir viéndose. */
:root[data-theme="dark"] {
  --paper: #131510;
  --paper-2: #1a1d16;
  --paper-3: #23271e;
  --ink: #eeeadf;
  --ink-2: #cdc8ba;
  --muted: #9a9686;
  --line: rgba(238, 234, 223, .12);
  --accent-rgb: 159 181 108;
  --accent: rgb(var(--accent-rgb));
  --accent-ink: #b8cb8d;
  --accent-soft: #2b3321;
  --night: #172419;
  --night-2: #213324;
  --raised: #272b21;
  --shade: 0 0 0;
  --shade-k: 1.8;
  --ink-rgb: 238 234 223;
  --glass: 25 28 22;
  --dock: #272b21;
  --on-dock: var(--ink);
  --dock-hover: #31362a;
  --accent-wash: rgb(var(--accent-rgb) / .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.62;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
strong, b { font-weight: 600; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 380;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .serif em {
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
h1 strong, h2 strong { font-weight: 640; }

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 300;
  background: var(--paper);
  padding: .45rem .7rem;
}
.skip:focus { top: .7rem; }

.wrap,
.page-head, .masonry, .catalog, .bio, .exhibits, .more-art, .close-invite,
.chapter, .cover {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Rótulos: versalitas espaciadas, como las cartelas de una sala de exposición.
   La misma voz sirve para notas pequeñas (estado, fechas, firmas de citas). */
.eyebrow, .label {
  margin: 0 0 .9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .74rem;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  width: fit-content;
}
.js .eyebrow { opacity: 0; transform: translateY(.4em); transition: opacity .8s ease, transform 1s var(--ease); }
.js .eyebrow.is-in { opacity: 1; transform: none; }

.lede { max-width: 36rem; margin: 0; font-size: 1.12rem; color: var(--ink-2); }

.text-link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(transparent 58%, var(--link-wash, var(--accent-wash)) 58%, var(--link-wash, var(--accent-wash)) 92%, transparent 92%) no-repeat 0 0 / 0 100%;
  box-shadow: inset 0 -1px 0 rgb(var(--ink-rgb) / .4);
  transition: background-size .55s var(--ease), box-shadow .3s ease;
  padding: 0 .08em;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 100%; box-shadow: inset 0 -1px 0 transparent; }
.text-link.light { --link-wash: rgb(212 226 176 / .34); color: var(--on-night); box-shadow: inset 0 -1px 0 rgb(var(--on-night-rgb) / .55); }
/* Sobre fotos el resaltado va en salvia claro (el verde del acento no se ve sobre lo oscuro),
   y la línea se va igual que en los demás enlaces. */
.text-link.light:hover, .text-link.light:focus-visible,
.is-preview .cover .text-link:hover, .is-preview .cover .text-link:focus-visible { box-shadow: inset 0 -1px 0 transparent; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .4s var(--ease), background .3s ease;
}
.button:hover { background: var(--accent-ink); }
.button:active { transform: scale(.97); }
.button.light { background: var(--on-night); color: var(--ink-fixed); }
.button.light:hover { background: var(--accent-tint); }

/* La firma: el nombre escrito en Fraunces. Rocío recto y en negrita,
   Villamizar en cursiva, con el trazo suave de la fuente. El tamaño óptico
   queda fijo para que la firma sea la misma letra en grande y en pequeño. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .26em;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 520;
  font-style: normal;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 0;
  font-optical-sizing: none;
  letter-spacing: -.018em;
  line-height: .9;
  white-space: nowrap;
  color: var(--ink);
}
.wordmark > span, .wordmark > em { display: block; }
.wordmark em {
  font-style: italic;
  font-weight: 470;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  letter-spacing: -.008em;
}
/* En teléfono la firma del menú va en dos líneas, y la de la intro también,
   porque vuela hasta ella y tiene que llegar con la misma forma. */
@media (max-width: 599px) {
  .brand .wordmark, .intro-logo.wordmark { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand .wordmark { font-size: 1.24rem; }
  .brand .wordmark em, .intro-logo.wordmark em { margin-left: .62em; }
}

/* Intro: un verde oliva claro, la firma que se escribe y vuela al menú */
.intro { display: none; }
.show-intro { overflow: hidden; }
.show-intro .intro {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.4rem;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.intro-curtain {
  position: absolute;
  inset: 0;
  background: var(--olive);
  clip-path: inset(0 0 0 0);
}
.intro.is-leaving .intro-curtain { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-io); }
.intro-logo.wordmark {
  position: relative;
  font-size: clamp(3rem, 15vw, 4.6rem);
  color: var(--olive-ink);
}
@media (min-width: 600px) {
  .intro-logo.wordmark { font-size: clamp(3.2rem, 8.4vw, 7.4rem); }
}
.intro-logo > span, .intro-logo > em { clip-path: inset(-30% 100% -30% 0); }
.intro.is-ready .intro-logo > span { animation: wipe 1s cubic-bezier(.5, 0, .2, 1) .1s forwards; }
.intro.is-ready .intro-logo > em { animation: wipe 1.15s cubic-bezier(.5, 0, .2, 1) .5s forwards; }
/* el color cambia al final del vuelo, ya sobre la página: menos cuadros que repintar */
.intro.is-leaving .intro-logo { transition: transform 1s var(--ease-io), color .35s ease .65s; }
@keyframes wipe { to { clip-path: inset(-30% -12% -30% -4%); } }
.intro-skip {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(var(--olive-ink-rgb) / .62);
  opacity: 0;
}
.intro.is-ready .intro-skip { animation: fade .6s ease 1.1s forwards; }
.intro.is-leaving .intro-skip { opacity: 0; transition: opacity .2s; animation: none; }
/* "Artista visual" bajo la firma: llega cuando el nombre termina de escribirse */
.intro-tag { position: relative; margin: 0; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: rgb(var(--olive-ink-rgb) / .78); opacity: 0; }
.intro.is-ready .intro-tag { animation: fade .5s ease 1s forwards; }
.intro.is-leaving .intro-tag { opacity: 0; transition: opacity .25s; animation: none; }
/* la misma cartela en la barra (solo en escritorio) y en el pie */
.brand-tag { display: none; margin-top: .4rem; font-family: var(--sans); font-size: .58rem; font-weight: 500; line-height: 1; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.footer-logo .brand-tag { display: block; margin-top: .7rem; font-size: .66rem; }
.show-intro .nav .brand { opacity: 0; }
@keyframes fade { to { opacity: 1; } }

/* Navegación */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .75rem;
  height: var(--nav-h);
  padding: env(safe-area-inset-top) var(--pad) 0;
  transition: transform .5s var(--ease), background .35s ease, box-shadow .35s ease;
  view-transition-name: nav;
}
.nav.is-solid { background: rgb(var(--glass) / .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.is-tucked { transform: translateY(-105%); }
.nav.is-open { background: var(--paper); box-shadow: none; transform: none; }
.brand { position: relative; z-index: 70; display: block; margin-right: auto; padding: .35rem 0; color: inherit; text-decoration: none; }
.brand .wordmark { transition: color .35s ease; }
.brand:hover .wordmark em { color: var(--accent-ink); }
.nav-side { position: relative; z-index: 70; display: flex; align-items: center; gap: .3rem; }
.langs { display: flex; align-items: center; margin: 0; }
.langs a {
  min-width: 40px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 500;
}
.langs a[aria-current="true"] { color: var(--ink); }
.nav-toggle {
  min-height: 44px;
  padding: 0 0 0 .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 500;
}
/* Tema: un círculo mitad papel, mitad tinta. Al cambiar, la mitad da la vuelta. */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .3s ease, color .3s ease;
}
.theme-toggle svg { width: 18px; height: 18px; overflow: visible; }
.theme-toggle .tt-ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle .tt-half { fill: currentColor; transform-origin: 12px 12px; transition: transform .8s var(--ease); }
[data-theme="dark"] .theme-toggle .tt-half { transform: rotate(180deg); }
.theme-toggle::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover::after { opacity: .22; transform: scale(1); }
}
.theme-toggle:active svg { transform: scale(.9); }
.page-home .nav:not(.is-solid):not(.is-open) .theme-toggle { color: var(--on-night); }

@media (max-width: 359px) {
  .brand .wordmark { font-size: 1.1rem; }
  .langs a { min-width: 34px; }
  .theme-toggle { width: 40px; }
  .nav-toggle { padding-left: .5rem; }
}

/* El cambio de tema se revela en círculo desde el botón, con la página misma, sin cortinas. */
html.is-theming * { view-transition-name: none !important; }
html.is-theming::view-transition-old(root),
html.is-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.is-theming::view-transition-new(root) { z-index: 2; }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1rem;
  padding: calc(var(--nav-h) + 1rem) var(--pad) calc(2rem + env(safe-area-inset-bottom));
  background: var(--paper);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s .35s;
}
.nav.is-open .nav-panel { visibility: visible; pointer-events: auto; opacity: 1; transition: opacity .35s ease; }
.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 360;
  font-size: clamp(2.5rem, 11.5vw, 4.6rem);
  letter-spacing: -.03em;
  line-height: 1.02;
  width: fit-content;
}
.nav.is-open .nav-panel a { animation: rise-in .8s var(--ease) both; }
.nav.is-open .nav-panel a:nth-child(2) { animation-delay: .05s; }
.nav.is-open .nav-panel a:nth-child(3) { animation-delay: .1s; }
.nav.is-open .nav-panel a:nth-child(4) { animation-delay: .15s; }
.nav.is-open .nav-panel a:nth-child(5) { animation-delay: .2s; }
.nav.is-open .nav-panel a:nth-child(6) { animation-delay: .25s; }
.nav-panel a[aria-current="page"] { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-ink); }
.nav-panel .nav-write {
  margin-top: 1.4rem;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent-ink);
}
@keyframes rise-in { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

main { display: block; padding-top: var(--nav-h); }
.page-home main { padding-top: 0; }
.page-home .nav:not(.is-solid):not(.is-open) .brand .wordmark { color: var(--on-night); }
.page-home .nav:not(.is-solid):not(.is-open) .nav-toggle,
.page-home .nav:not(.is-solid):not(.is-open) .langs a,
.page-home .nav:not(.is-solid):not(.is-open) .nav-panel > a { color: var(--on-night); }
.page-home .nav:not(.is-solid):not(.is-open) .langs a { color: rgb(var(--on-night-rgb) / .7); }
.page-home .nav:not(.is-solid):not(.is-open) .langs a[aria-current="true"] { color: var(--on-night); }
.show-intro .nav .brand .wordmark { transition: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--on-night);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-media picture { display: block; height: 100%; will-change: transform; }
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 46% 20%;
  transform: scale(1.14);
  transition: transform 2.6s var(--ease), filter 2.6s var(--ease);
  filter: saturate(.85) brightness(.92);
}
.hero-go .hero-media img { transform: scale(1.02); filter: none; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgb(var(--scrim) / .78) 0%, rgb(var(--scrim) / .32) 38%, rgb(var(--scrim) / 0) 62%),
    linear-gradient(to bottom, rgb(var(--scrim) / .38), rgb(var(--scrim) / 0) 22%);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .14;
  background-image: url("../assets/brand/grain.png");
  background-size: 150px;
  mix-blend-mode: overlay;
}
.hero-copy {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--pad) calc(2.2rem + env(safe-area-inset-bottom));
  width: min(var(--max), 100%);
  margin-inline: auto;
}
.hero .eyebrow { color: var(--sage-on-night); }
.hero h1 {
  margin: .2rem 0 1.2rem;
  font-size: clamp(2.7rem, 10.6vw, 7.4rem);
  line-height: .95;
  font-weight: 340;
  max-width: 11.5em;
}
.hero h1 .line { display: block; overflow: hidden; padding: .04em .1em .24em 0; margin: -.04em -.1em -.24em 0; }
.hero h1 .line > span { display: inline-block; }
.js .hero h1 .line > span { transform: translateY(140%); transition: transform 1.3s var(--ease); }
.hero-go .hero h1 .line > span { transform: none; }
.hero-go .hero h1 .line:nth-child(2) > span { transition-delay: .09s; }
.hero-go .hero h1 .line:nth-child(3) > span { transition-delay: .18s; }
.hero h1 em { color: var(--sage-on-night-em); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 0; }
.js .hero-actions, .js .hero .eyebrow { opacity: 0; transform: translateY(14px); transition: opacity .9s ease .5s, transform 1.1s var(--ease) .5s; }
.hero-go .hero-actions, .hero-go .hero .eyebrow { opacity: 1; transform: none; }
.hero-go .hero-actions { transform: none; }
.hero-tag {
  position: absolute;
  right: var(--pad);
  bottom: calc(2.2rem + env(safe-area-inset-bottom));
  margin: 0;
  display: none;
  font-size: .82rem;
  color: rgb(var(--on-night-rgb) / .78);
  text-align: right;
}
.hero-tag span { display: block; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--on-night); }

/* Próxima exposición: el afiche y sus datos */
.now { padding-block: clamp(4rem, 10vw, 8rem); }
.now-grid { display: grid; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; }
.now-poster { margin: 0; justify-self: center; width: min(100%, 26rem); }
.now-poster img { display: block; width: 100%; height: auto; box-shadow: 0 1px 2px rgb(var(--shade) / calc(.08 * var(--shade-k))), 0 16px 30px -22px rgb(var(--shade) / calc(.32 * var(--shade-k))); }
.now h2 { margin: 0 0 1rem; font-size: clamp(2.6rem, 7.4vw, 5.2rem); line-height: .92; }
.now h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-ink); }
.now blockquote { margin: 0 0 1.8rem; max-width: 26em; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25; color: var(--ink-2); }
.now-facts { display: grid; gap: .9rem; margin: 0 0 2rem; }
.now-facts div { display: grid; gap: .1rem; }
.now-facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.now-facts dd { margin: 0; font-size: 1.08rem; }

/* La frase */
.quote { padding: clamp(5rem, 14vw, 11rem) 0; background: var(--paper-2); }
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 330;
  font-size: clamp(2.6rem, 9.5vw, 8.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 11em;
}
.quote p em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-ink); }
.quote .w { transition: opacity .25s linear; }
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; color: var(--muted); }

/* Selección */

/* En tu espacio */
.walltest { display: grid; gap: 2rem; padding-block: clamp(4rem, 10vw, 8rem); }
.walltest-copy h2 { margin: 0 0 1rem; font-size: clamp(2.4rem, 7.4vw, 5.4rem); line-height: .94; }
.walltest-copy p { max-width: 32rem; margin: 0 0 1.2rem; color: var(--ink-2); }
.walltest-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78svh;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-3);
}
.walltest-stage .room { position: absolute; inset: 0; transition: opacity .45s ease; }
.walltest-stage.is-fading .room { opacity: 0; }
.walltest-label {
  position: absolute;
  z-index: 3;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgb(var(--glass) / .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .86rem;
  pointer-events: none;
}

/* La artista, en el inicio */
.statement { display: grid; gap: 1.8rem; padding-block: clamp(3rem, 8vw, 6rem); align-items: end; }
.statement-photo { margin: 0; overflow: hidden; }
.statement-photo img { display: block; width: 100%; height: auto; max-height: 84svh; object-fit: cover; object-position: 50% 32%; }
.statement figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.statement h2 { margin: 0 0 1rem; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: .95; }
.statement p { margin: 0 0 1rem; max-width: 36rem; color: var(--ink-2); }

/* Portal a la sala en 3D */
.portal {
  position: relative;
  display: grid;
  align-content: end;
  gap: 2rem;
  min-height: 86svh;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
  background: radial-gradient(120% 80% at 50% 0%, var(--night-2), var(--night) 60%);
  color: var(--on-night);
  text-decoration: none;
  overflow: hidden;
}
.portal-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.6rem, 2vw, 1.6rem);
  perspective: 900px;
}
.portal-stage img {
  width: auto;
  height: min(32svh, 340px);
  max-width: 30%;
  object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: transform 1.2s var(--ease);
}
.portal-stage img:first-child { transform: rotateY(18deg) translateY(10px); }
.portal-stage img:last-child { transform: rotateY(-18deg) translateY(10px); }
.portal:hover .portal-stage img:first-child { transform: rotateY(10deg) translate(8px, 4px); }
.portal:hover .portal-stage img:last-child { transform: rotateY(-10deg) translate(-8px, 4px); }
.portal .eyebrow { color: var(--sage-on-night); }
.portal h2 { margin: 0 0 1rem; font-size: clamp(2.5rem, 8vw, 5.6rem); line-height: .94; max-width: 10em; }

/* Caminos */
.paths { position: relative; z-index: 2; display: grid; padding-block: clamp(4rem, 9vw, 7rem); }
.paths a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "word thumb" "note thumb";
  align-items: center;
  column-gap: 1rem;
  padding: .9rem 0;
  color: inherit;
  text-decoration: none;
}
.paths em {
  grid-area: word;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 330;
  font-size: clamp(3rem, 12vw, 7.8rem);
  line-height: .9;
  letter-spacing: -.035em;
  transition: transform .7s var(--ease), color .3s ease;
}
.paths span { grid-area: note; color: var(--muted); }
.paths img { grid-area: thumb; width: 72px; height: 88px; object-fit: cover; box-shadow: 0 10px 22px -12px rgb(var(--shade) / calc(.5 * var(--shade-k))); }

/* Pie */
.footer { padding: clamp(4rem, 10vw, 8rem) 0 calc(2rem + env(safe-area-inset-bottom)); background: var(--paper-2); }
.footer-cta { margin-bottom: clamp(3rem, 8vw, 6rem); }
.footer-big {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 340;
  font-size: clamp(2.8rem, 10vw, 8rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.footer-big em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-ink); }
.footer-big:hover em { color: var(--accent); }
.footer-row { display: grid; gap: 1.2rem; align-items: end; }
.footer-logo { display: block; color: inherit; text-decoration: none; }
.footer-logo .wordmark { font-size: clamp(1.7rem, 7vw, 2.5rem); }
.footer-logo .wordmark em { color: var(--accent-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.footer-links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-meta, .footer-copy { margin: 0; color: var(--muted); font-size: .9rem; }

/* Cabeza de página */
.page-head { padding-block: clamp(2.4rem, 7vw, 5rem) 1.2rem; }
.page-head h1 { margin: 0 0 .9rem; font-size: clamp(3.6rem, 15vw, 10rem); line-height: .86; letter-spacing: -.04em; font-weight: 330; }
.page-head .lede a { color: inherit; }
.filters { display: flex; gap: .5rem; margin-top: 1.6rem; }
.filters[hidden] { display: none; }
.filters button {
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .94rem;
  color: var(--ink-2);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.whisper { color: var(--muted); font-size: .92rem; max-width: 40rem; }
.end-note { padding-top: 1rem; padding-bottom: 6rem; }

/* Inicio: el muro de obras en tres franjas. Al bajar, cada franja corre de lado
   a la vista (main.js), la del medio al revés, y se desvanecen en los bordes;
   el botón acompaña mientras se recorre. Con "menos animación" se deslizan a mano. */
.flow { position: relative; padding-block: clamp(4rem, 9vw, 7rem) clamp(2.4rem, 6vw, 4rem); }
.flow-head { margin-bottom: clamp(1.8rem, 4.5vw, 3.2rem); }
.flow-head h2 { margin: 0; padding-bottom: .12em; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: .95; }
.flow-lede { max-width: 34rem; margin: .8rem 0 0; color: var(--muted); }
.flow-wall {
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  display: grid;
  gap: clamp(1.4rem, 3.4vw, 2.6rem);
  padding: .4rem 0 clamp(3rem, 7vw, 5rem);
  overflow: clip;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
}
.flow-row { position: relative; display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); width: max-content; padding-inline: var(--edge); will-change: transform; }
.flow-row > * { flex: none; width: 64vw; }
@media (min-width: 720px) { .flow-row > * { width: 40vw; } }
@media (min-width: 1100px) { .flow-row > * { width: min(30vw, 480px); } }
.js .flow-wall:not(.is-in) .flow-row { opacity: 0; }
.js .flow-wall.is-in .flow-row { animation: card-fade 1.3s cubic-bezier(.33, 0, .2, 1) var(--d, 0ms) both; }
.flow-more { position: sticky; bottom: calc(1.4rem + env(safe-area-inset-bottom)); z-index: 3; display: flex; justify-content: center; margin: 0; pointer-events: none; }
.flow-more .button { pointer-events: auto; box-shadow: 0 14px 34px -14px rgb(var(--shade) / calc(.5 * var(--shade-k))); }
@media (prefers-reduced-motion: reduce) {
  .flow-row { width: auto; overflow-x: auto; scrollbar-width: none; will-change: auto; }
  .flow-row::-webkit-scrollbar { display: none; }
}

/* Galería: un muro colgado */
/* Obras: una cuadrícula pareja. Todas las tarjetas miden lo mismo (4:3) y la
   pintura llena su tarjeta; la obra completa se ve al abrirla. */
.masonry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 3.6rem) clamp(.9rem, 2.4vw, 2.4rem); padding-block: 1.4rem 2rem; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card-stage { display: block; }
.frame {
  display: block;
  position: relative;
  aspect-ratio: var(--ratio, 1);
  background: var(--tone, var(--paper-3));
  box-shadow: 0 1px 1px rgb(var(--shade) / calc(.1 * var(--shade-k))), 0 16px 30px -18px rgb(var(--shade) / calc(.42 * var(--shade-k)));
  overflow: hidden;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.frame picture, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-stage .frame { width: 100%; aspect-ratio: 4 / 3; }
.card-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .7rem; margin-top: .75rem; }
.card-title { font-family: var(--serif); font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.05; }
.card-facts { display: block; width: 100%; font-size: .84rem; color: var(--muted); }
.card-note { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--accent-ink); line-height: 1.3; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Carga progresiva de las obras: primero un campo de color con la obra
   desenfocada (lista al instante), luego la imagen nítida encima con un
   fundido largo y un asentamiento mínimo, como al enfocar. */
.art-blur {
  background-color: var(--tone, var(--paper-3));
  background-image: var(--blur, none);
  background-size: cover;
  background-position: center;
}
.js .art-blur img {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.33, 0, .2, 1), transform 1.2s var(--ease);
}
.js .frame .art-blur img { transform: scale(1.025); transition: opacity 1.2s cubic-bezier(.33, 0, .2, 1), transform 1.8s var(--ease); }
.js .art-blur.is-ready img { opacity: 1; }
.js .frame .art-blur.is-ready img { transform: none; }
/* Entrada de la primera pantalla de Obras, una sola vez. Es una animación
   y no una transición: arranca sola, sin depender de un cuadro de JS. */
.js .card.is-arriving { animation: card-fade 1.3s cubic-bezier(.33, 0, .2, 1) var(--d, 0ms) both, card-rise 1.6s var(--ease) var(--d, 0ms) both; }
@keyframes card-fade { from { opacity: 0; } }
@keyframes card-rise { from { transform: translateY(14px); } }

/* Disponible */
.catalog { display: grid; gap: clamp(4rem, 11vw, 9rem); padding-block: 2rem 3rem; }
.catalog-item { display: grid; gap: 1.4rem; align-items: center; }
.catalog-frame { display: block; color: inherit; }
.catalog-frame .frame { max-height: 78svh; margin-inline: auto; }
.catalog-n { margin: 0 0 .6rem; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--accent-ink); }
.catalog-copy h2 { margin: 0 0 .5rem; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: .92; }
.catalog-facts { margin: 0 0 .7rem; color: var(--muted); font-size: .94rem; }
.catalog-text { margin: 0 0 1.4rem; max-width: 34rem; color: var(--ink-2); }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 0; }

.dock {
  position: fixed;
  z-index: 55;
  left: max(.7rem, env(safe-area-inset-left));
  right: max(.7rem, env(safe-area-inset-right));
  bottom: calc(.7rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 58px;
  padding: .5rem .6rem .5rem 1.15rem;
  background: var(--dock);
  color: var(--on-dock);
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgb(var(--shade) / calc(.55 * var(--shade-k)));
  transition: transform .5s var(--ease), background .3s ease;
}
.dock[hidden] { display: none !important; }
.dock.is-away { transform: translateY(180%); }
.dock small { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; opacity: .7; }
.dock strong, .dock-name { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.05; }
.dock em {
  flex: none;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: var(--accent-cta);
  color: var(--on-accent);
  font-style: normal;
  font-weight: 500;
  font-size: .9rem;
}
.dock:hover { background: var(--dock-hover); }
.page-disponible main { padding-bottom: 5rem; }

/* Visor */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  background: var(--paper);
}
.viewer.is-open { display: flex; animation: fade .3s ease; }
.viewer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  min-height: 56px;
  padding: calc(.3rem + env(safe-area-inset-top)) var(--pad) .3rem;
}
.viewer-close { grid-column: 3; justify-self: end; min-height: 44px; padding-left: 1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
/* Del detalle se vuelve al espacio; en el espacio no hay nada que elegir arriba */
.viewer-back {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-left: -.2rem;
  padding-right: .8rem;
  font-size: .92rem;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .35s ease, transform .45s var(--ease), visibility 0s .35s;
}
.viewer-back svg { width: 20px; height: 20px; flex: none; transition: transform .4s var(--ease); }
.viewer[data-mode="art"] .viewer-back { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .viewer-back:hover svg { transform: translateX(-3px); } }
.viewer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.viewer-stage { position: relative; flex: none; height: 58svh; min-height: 300px; background: var(--paper-2); overflow: hidden; }
.viewer-photo, .viewer-room { position: absolute; inset: 0; }
.viewer[data-mode="room"] .viewer-photo, .viewer[data-mode="art"] .viewer-room { visibility: hidden; opacity: 0; pointer-events: none; }
.viewer-photo, .viewer-room { transition: opacity .45s ease; }
.viewer-photo { display: flex; align-items: center; justify-content: center; padding: 1.2rem; overflow: hidden; touch-action: none; }
.pinch { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pinch.is-easing { transition: transform .35s var(--ease); }
.pinch picture { display: contents; }
.viewer-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 1px 2px rgb(var(--shade) / calc(.12 * var(--shade-k))), 0 30px 50px -26px rgb(var(--shade) / calc(.5 * var(--shade-k)));
  transition: transform .5s var(--ease);
}
.viewer-photo.is-loupe { cursor: zoom-out; }
.viewer-photo.is-loupe img { transform: scale(2.6); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .viewer-photo { cursor: zoom-in; } }
.viewer-nav {
  position: absolute;
  z-index: 4;
  bottom: .8rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--glass) / .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -8px rgb(var(--shade) / calc(.4 * var(--shade-k)));
  transition: transform .4s var(--ease), background .3s ease;
}
.viewer-nav:hover { background: var(--paper); transform: scale(1.06); }
.viewer-prev { left: .8rem; }
.viewer-next { right: .8rem; }
.viewer-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  margin: 0;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgb(var(--scrim) / .66);
  color: var(--on-night);
  font-size: .78rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .6s ease;
}
.viewer.hint-done[data-mode="room"] .viewer-hint, .viewer.zoom-done[data-mode="art"] .viewer-hint { opacity: 0; }
.viewer-side {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.2rem var(--pad) calc(6.2rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.viewer-status { margin: 0 0 .4rem; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--accent-ink); }
.viewer-side h2 { margin: 0 0 .35rem; font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: .95; }
.viewer-facts { margin: 0 0 .5rem; color: var(--muted); font-size: .92rem; }
.viewer-desc { margin: 0 0 1.4rem; color: var(--ink-2); max-width: 40rem; }
.viewer[data-mode="art"] .viewer-tools, .viewer[data-mode="art"] .viewer-credit, .viewer[data-mode="art"] .viewer-detail { display: none; }
/* En el espacio solo el nombre y las herramientas; la ficha completa vive en el detalle */
.viewer[data-mode="room"] .viewer-facts, .viewer[data-mode="room"] .viewer-desc { display: none; }
.viewer-detail { align-self: flex-start; margin: .35rem 0 1.4rem; font-size: .98rem; }
.viewer-tools { display: grid; gap: 1.2rem; margin: 0 0 1.4rem; }
.tool-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tool-label output { letter-spacing: 0; text-transform: none; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.picks { display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 7px var(--pad) 8px; }
.picks::-webkit-scrollbar { display: none; }
.pick { flex: none; display: grid; gap: .35rem; width: 88px; text-align: left; font-size: .78rem; color: var(--ink-2); }
.pick img { width: 88px; height: 60px; object-fit: cover; border-radius: 4px; background: var(--paper-3); box-shadow: 0 0 0 1px var(--line); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s ease; }
.pick[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.pick[aria-pressed="true"] img { outline-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .pick:hover img { outline-color: rgb(var(--accent-rgb) / .4); } .pick[aria-pressed="true"]:hover img { outline-color: var(--accent); } }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.seg button { min-height: 38px; padding: 0 .95rem; border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgb(var(--shade) / calc(.12 * var(--shade-k))), 0 4px 12px -6px rgb(var(--shade) / calc(.3 * var(--shade-k))); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--ink), 0 4px 10px -4px rgb(var(--shade) / calc(.5 * var(--shade-k))); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
input[type="range"]:disabled { opacity: .35; cursor: default; }
.tool-note { margin: -.4rem 0 0; font-size: .86rem; color: var(--muted); }
.viewer-credit { margin: .9rem 0 0; font-size: .78rem; color: var(--muted); }
.viewer-dock { position: absolute; left: var(--pad); right: var(--pad); }
@media (max-width: 979px) {
  .viewer-side { display: flex; flex-direction: column; padding-top: .9rem; }
  .viewer-side > * { flex: none; }
  .viewer-tools { display: contents; }
  .viewer-tools .tool { margin-bottom: 1.3rem; }
  .viewer-tools .tool:first-child { order: -1; margin-bottom: 1rem; }
  .viewer-tools .tool:first-child .tool-label { display: none; }
  .viewer-tools .tool-note { margin: -.6rem 0 1rem; }
}
.viewer.is-step .viewer-side > h2, .viewer.is-step .viewer-desc { animation: rise-soft .6s var(--ease); }
@keyframes rise-soft { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* El espacio, el motor */
.room { position: absolute; inset: 0; overflow: hidden; background: var(--paper-3); user-select: none; -webkit-user-select: none; }
.room-view { position: absolute; inset: 0; overflow: hidden; }
.room-photo, .room-photo img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; }
.room-photo img { display: block; transition: opacity .5s ease; }
.room.is-swapping .room-photo img, .room.is-swapping .room-art, .room.is-swapping .room-front { opacity: 0; }
.room-art {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition: opacity .5s ease;
}
.room.is-live .room-art { cursor: grab; touch-action: none; }
.room.is-dragging .room-art { cursor: grabbing; }
.room-render { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.room-shade { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.room-paint { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* La gotita: un anillo de luz que se abre sobre la obra, como una gota en el agua,
   para decir "tócame". Vive dentro de la obra, así sigue la perspectiva de la pared. */
.room-tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(56px, 30%, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.3);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .92), 0 0 22px 3px rgb(255 255 255 / .38), inset 0 0 18px rgb(255 255 255 / .25);
}
.viewer.tap-hint .room-tap { animation: tap-drop 2.4s cubic-bezier(.2, .7, .3, 1) 1.1s 3 both; }
.viewer.tap-hint .room-tap::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .7);
  animation: tap-drop-inner 2.4s cubic-bezier(.2, .7, .3, 1) 1.1s 3 both;
}
@keyframes tap-drop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  16% { opacity: .95; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}
@keyframes tap-drop-inner {
  0%, 12% { opacity: 0; transform: scale(.4); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.3); }
}
.room.is-dragging .room-tap { display: none; }
.room-paint picture, .room-paint img { display: block; width: 1px; height: 1px; }
.room-front {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.room-front[hidden] { display: none; }

/* La artista */
.bio, .exhibits, .close-invite, .chapter { padding-block: clamp(3.4rem, 9vw, 7rem); }
.bio { display: grid; gap: 2rem; align-items: end; }
.bio img { display: block; width: 100%; height: auto; }
.bio p, .chapter p, .more-art p, .close-invite p { margin: 0 0 1rem; max-width: 38rem; color: var(--ink-2); }
/* La bio abre con una frase corta en grande y sigue con una entrada mediana */
.bio-title { margin: 0 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.bio .bio-lede { margin-bottom: 1.6rem; font-family: var(--serif); font-weight: 340; font-size: clamp(1.18rem, 1.9vw, 1.42rem); line-height: 1.4; color: var(--ink); letter-spacing: -.005em; }
.exhibits h2, .more-art h2, .chapter h2 { margin: 0 0 .8rem; font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: .95; }
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 46rem; }
.timeline li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .8rem; align-items: baseline; }
.timeline .when { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.05rem; color: var(--muted); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.06rem; line-height: 1.2; }
.timeline em { display: block; color: var(--muted); font-style: normal; font-size: .84rem; line-height: 1.45; }
.timeline .next-tag { display: block; margin: 0 0 .25rem; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--accent-ink); }
.timeline .is-next strong { font-size: 1.2rem; }
.close-invite p { font-family: var(--serif); font-size: clamp(2.2rem, 6.4vw, 4.4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); max-width: 14em; }

/* Encargos */
.chapter { display: grid; gap: 1.6rem; align-items: start; }
.page-head + .chapter { padding-top: clamp(1rem, 3vw, 2rem); }
.chapter .button { margin-top: .6rem; }
.chapter img { display: block; width: 100%; height: auto; max-height: 86svh; object-fit: cover; object-position: 50% 30%; box-shadow: 0 24px 44px -28px rgb(var(--shade) / calc(.5 * var(--shade-k))); }
.chapter + .chapter, .exhibits + .exhibits { padding-top: 0; }
/* En pantallas anchas: el título queda a la izquierda mientras se recorre,
   y la lista corre en dos columnas a la derecha (sigue siendo de letra chica). */
@media (min-width: 980px) {
  .exhibits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .exhibits h2 { position: sticky; top: calc(var(--nav-h) + 2rem); font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
  .exhibits .timeline { display: block; max-width: none; margin-top: .5rem; columns: 2; column-gap: clamp(2rem, 4vw, 4rem); }
  .exhibits .timeline li { break-inside: avoid; margin-bottom: 1.05rem; }
  /* las fotos caben enteras en su columna */
  .exhibits .timeline .when-photos img { height: min(150px, 9.5vw); }
}
.scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad) .6rem; }
.scroller::-webkit-scrollbar { display: none; }
.scroller-track { display: flex; gap: 1rem; width: max-content; }
.scroller figure { margin: 0; scroll-snap-align: start; width: min(76vw, 420px); }
.scroller img { width: 100%; height: min(60svh, 540px); object-fit: cover; display: block; }
.scroller figcaption { margin-top: .5rem; font-family: var(--serif); font-size: 1.35rem; }

/* La sala 3D */
.cover { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end; padding-block: 2rem calc(2rem + env(safe-area-inset-bottom)); }
.cover h1 { margin: 0 0 .9rem; font-size: clamp(3.2rem, 12vw, 7.6rem); line-height: .9; max-width: 9em; font-weight: 330; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.6rem; }
.enter { min-height: 52px; padding: 0 1.4rem; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 500; }
.enter:hover { background: var(--accent-ink); }
.cover-help { margin: 1.3rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.is-walking .cover, .left-cover .cover { display: none; }
.stage { display: none; position: fixed; z-index: 30; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: #f3efe8; touch-action: none; }
.is-walking .stage { display: block; }
body.is-walking { overflow: hidden; }
#sala { width: 100%; height: 100%; display: block; touch-action: none; }
.reticle { position: absolute; left: 50%; top: 46%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 1px solid rgba(27, 25, 22, .6); border-radius: 50%; pointer-events: none; transition: transform .25s var(--ease); }
.reticle.is-hot { border-color: var(--accent); transform: scale(1.4); }
.aim { position: absolute; left: 50%; top: calc(46% + 18px); transform: translateX(-50%); margin: 0; min-height: 1.4rem; font-family: var(--serif); font-size: 1.35rem; text-align: center; pointer-events: none; text-shadow: 0 1px 0 rgba(244, 241, 235, .85); }
.load-note, .keys { position: absolute; margin: 0; font-size: .74rem; color: var(--muted); pointer-events: none; }
.load-note { top: .55rem; right: var(--pad); letter-spacing: .08em; text-transform: uppercase; }
.keys { left: 50%; bottom: calc(4.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); text-align: center; }
.joystick { display: none; position: absolute; z-index: 5; right: max(.85rem, env(safe-area-inset-right)); bottom: calc(.85rem + env(safe-area-inset-bottom)); width: 118px; height: 118px; border-radius: 50%; background: rgba(246, 243, 238, .5); border: 1px solid rgba(22, 19, 17, .22); touch-action: none; }
.joystick-knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--ink); box-shadow: 0 8px 18px rgba(22, 18, 16, .18); }
.hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-start; gap: .45rem; padding: .65rem var(--pad) calc(.65rem + env(safe-area-inset-bottom)); pointer-events: none; }
.hud button, .hud a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; pointer-events: auto; min-height: 48px; padding: 0 .95rem; background: rgb(var(--glass) / .94); border-radius: 999px; box-shadow: 0 10px 28px rgba(28, 22, 16, .1); }
.hud button.is-on { background: var(--ink); color: var(--paper); }
#to-list { min-width: 7rem; }
.sheet[hidden] { display: none !important; }
.sheet { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-end; justify-content: center; background: rgb(var(--scrim) / .45); }
/* La ficha del jardín. En el teléfono sube desde abajo: foto y texto se desplazan,
   y los botones van en su propio pie, así nunca tapan la descripción.
   Desde tablet es una lámina: la obra a la izquierda y su ficha a la derecha. */
.sheet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: min(92dvh, 820px);
  overflow: hidden;
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  transform: translateY(16px);
  box-shadow: 0 30px 80px -30px rgb(var(--shade) / calc(.6 * var(--shade-k)));
}
.sheet.is-in .sheet-card { transform: none; transition: transform .45s var(--ease); }
.sheet-photo { flex: none; display: flex; align-items: center; justify-content: center; padding: 3.4rem 1rem 1.2rem; background: var(--paper-2); }
.sheet-photo picture { display: contents; }
.sheet-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 40dvh; object-fit: contain; box-shadow: 0 1px 2px rgb(var(--shade) / calc(.12 * var(--shade-k))), 0 24px 40px -24px rgb(var(--shade) / calc(.5 * var(--shade-k))); }
.sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet-copy { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .2rem clamp(1rem, 4vw, 2rem) 1rem; }
.sheet-close { display: block; min-height: 44px; margin: 0 -.2rem 0 auto; padding: 0 .2rem; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; font-weight: 500; }
.sheet-copy h2 { font-size: clamp(2rem, 8vw, 3rem); margin: 1rem 0 .4rem; line-height: .95; }
@media (max-width: 759px) {
  .sheet-close { position: absolute; z-index: 2; top: .6rem; right: .6rem; min-height: 38px; margin: 0; padding: 0 1rem; border-radius: 999px; background: rgb(var(--glass) / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.sheet-status { margin: 0 0 .4rem; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--accent-ink); }
.sheet-facts { margin: 0 0 .5rem; color: var(--muted); }
.sheet-desc { margin: 0; color: var(--ink-2); }
.sheet-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .9rem clamp(1rem, 4vw, 2rem) calc(.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.sheet-actions .button { flex: 1 1 11rem; min-height: 52px; padding: 0 1.2rem; }
.sheet-ask { background: var(--accent-cta); color: var(--on-accent); }
.sheet-ask:hover { background: var(--accent-ink); }
.sheet-more { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(var(--ink-rgb) / .8); }
.sheet-more svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.sheet-more:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.sheet-more:hover svg { transform: translateX(4px); }
@media (min-width: 760px) {
  .sheet { align-items: center; padding: clamp(1rem, 3vw, 2rem); }
  .sheet-card { flex-direction: row; width: min(1080px, 100%); height: min(86dvh, 680px); max-height: none; border-radius: 16px; }
  .sheet-photo { flex: 1.25 1 0; min-width: 0; padding: clamp(1.4rem, 3vw, 2.4rem); }
  .sheet-photo img { max-height: 100%; }
  .sheet-body { flex: 1 1 0; min-width: 0; }
  .sheet-copy { padding: 1rem clamp(1.4rem, 3vw, 2.4rem) 1.4rem; }
  .sheet-copy h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-top: clamp(.6rem, 4vh, 2.2rem); }
  .sheet-actions { flex-direction: column; border-top: 0; padding: 0 clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem); }
  .sheet-actions .button { flex: none; width: 100%; }
}

.page-home body:hover .cursor { opacity: .9; }
.cursor.is-on { width: auto; height: auto; margin: 14px 0 0 14px; padding: .4rem .8rem; opacity: 1; }
body.is-locked .cursor, body.is-walking .cursor { display: none; }
.path-float {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 220px;
  height: 270px;
  background: center / cover no-repeat var(--paper-3);
  box-shadow: 0 30px 60px -24px rgb(var(--shade) / calc(.55 * var(--shade-k)));
  pointer-events: none;
  opacity: 0;
  scale: .85;
  transition: opacity .35s ease, scale .5s var(--ease);
}
.path-float.is-on { opacity: 1; scale: 1; }

body.is-locked { position: fixed; inset: 0; width: 100%; overflow: hidden; }

@media (hover: hover) and (pointer: fine) {
  .card:hover .frame { transform: translateY(-4px); box-shadow: 0 1px 1px rgb(var(--shade) / calc(.1 * var(--shade-k))), 0 30px 46px -24px rgb(var(--shade) / calc(.5 * var(--shade-k))); }
  .paths:hover a em { color: rgb(var(--ink-rgb) / .28); }
  .paths a:hover em { color: var(--ink); transform: translateX(.12em); }
  .paths a img { display: none; }
}
@media (pointer: coarse), (max-width: 800px) {
  .keys { display: none; }
  .joystick { display: block; }
}

@media (min-width: 720px) {
  .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .walltest { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 3rem; }
  .walltest-stage { aspect-ratio: auto; height: min(76svh, 720px); max-height: none; }
  .bio { grid-template-columns: .85fr 1.15fr; gap: 3.4rem; }
  .now-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .chapter { grid-template-columns: 1fr .82fr; gap: clamp(3rem, 6vw, 6rem); }
  .chapter.flip { grid-template-columns: .82fr 1fr; }
  .chapter.flip .chapter-copy { order: 2; }
}

@media (min-width: 980px) {
  :root { --nav-h: calc(4.6rem + env(safe-area-inset-top)); }
  .brand .wordmark { font-size: 1.6rem; }
  .brand .brand-tag { display: block; }
  .nav-toggle { display: none; }
  .nav-panel {
    position: static;
    order: 0;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    flex-direction: row;
    align-items: center;
    gap: 1.7rem;
    padding: 0;
    margin-right: 1.4rem;
    background: none;
    transition: none;
  }
  .nav-side { order: 1; }
  .nav.is-open .nav-panel a, .nav-panel a {
    animation: none;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 500;
    font-size: .94rem;
    letter-spacing: 0;
    line-height: 1;
    color: var(--ink);
    position: relative;
    padding: .5rem 0;
  }
  .nav-panel a::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: .12rem;
    height: .5rem;
    background: var(--accent);
    opacity: .9;
    z-index: -1;
    -webkit-mask: url("../assets/brand/stem.svg") no-repeat center / 100% 100%;
    mask: url("../assets/brand/stem.svg") no-repeat center / 100% 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .55s var(--ease);
  }
  .nav-panel a:hover::after, .nav-panel a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-panel a[aria-current="page"] { font-style: normal; color: var(--ink); }
  .nav-panel .nav-write {
    margin: 0 0 0 .4rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper) !important;
    font-family: var(--sans);
    font-size: .9rem;
    font-style: normal;
    font-variation-settings: normal;
  }
  .nav-panel .nav-write::after { display: none; }
  .nav-panel .nav-write:hover { background: var(--accent-ink); }
  .page-home .nav:not(.is-solid):not(.is-open) .nav-panel a::after { opacity: 1; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    background: var(--paper);
    color: var(--ink);
  }
  .hero::before { display: none; }
  .hero-media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; height: 100svh; overflow: hidden; }
  .hero-media::after { content: ""; position: absolute; inset: 0 0 auto; height: 9rem; background: linear-gradient(to bottom, rgb(var(--scrim) / .42), transparent); pointer-events: none; }
  .hero-media img { object-position: 50% 30%; }
  .grain { left: 52%; z-index: 1; }
  .hero-copy { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: calc(var(--nav-h) + 3rem) clamp(2rem, 4vw, 4.5rem) 3.2rem var(--pad); justify-content: flex-end; }
  .hero .eyebrow { color: var(--accent-ink); }
  .hero h1 { font-size: clamp(3.4rem, 5.3vw, 6.6rem); color: var(--ink); max-width: none; }
  .hero h1 em { color: var(--accent-ink); }
  .hero .button.light { background: var(--ink); color: var(--paper); }
  .hero .button.light:hover { background: var(--accent-ink); }
  .hero .text-link.light { --link-wash: var(--accent-wash); color: var(--ink); box-shadow: inset 0 -1px 0 rgb(var(--ink-rgb) / .4); }
  .hero .text-link.light:hover, .hero .text-link.light:focus-visible { box-shadow: inset 0 -1px 0 transparent; }
  .hero-tag { display: block; z-index: 2; }
  .page-home .nav:not(.is-solid):not(.is-open) .brand .wordmark { color: var(--ink); }
  /* En escritorio la portada es mitad papel y mitad foto: la barra lleva su vidrio
     desde el principio y todo va en tinta, así ningún enlace queda blanco sobre el papel. */
  .page-home .nav:not(.is-open) { background: rgb(var(--glass) / .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
  .page-home .nav:not(.is-solid):not(.is-open) .nav-panel > a,
  .page-home .nav:not(.is-solid):not(.is-open) .theme-toggle,
  .page-home .nav:not(.is-solid):not(.is-open) .langs a[aria-current="true"] { color: var(--ink); }
  .page-home .nav:not(.is-solid):not(.is-open) .langs a { color: var(--muted); }
  .page-home .nav:not(.is-solid):not(.is-open) .nav-write { background: var(--ink); color: var(--paper) !important; }
  .paths { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .statement { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 4.6rem; }
  .portal { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .portal-stage { justify-content: flex-start; }
  .portal-stage img { height: min(54svh, 500px); }
  .footer-row { grid-template-columns: auto 1fr auto; gap: 2.4rem; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: right; }
  .catalog-item { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .catalog-item:nth-child(even) .catalog-frame { order: 2; }

  .viewer-body { flex-direction: row; }
  .viewer-stage { flex: 1; height: auto; min-height: 0; margin: 0 0 var(--pad) var(--pad); border-radius: 6px; }
  .viewer-side { flex: none; width: min(430px, 34vw); padding: .4rem var(--pad) 7rem 2rem; }
  .viewer-dock { position: absolute; left: auto; right: var(--pad); bottom: calc(var(--pad) - .3rem); width: calc(min(430px, 34vw) - var(--pad) - 2rem); }
  .picks { flex-wrap: wrap; margin: 0; padding: 2px; overflow: visible; }
  .pick { width: calc((100% - 1.1rem) / 3); }
  .pick img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .viewer-nav { top: 50%; bottom: auto; margin-top: -23px; }
  .viewer-photo { padding: 2.4rem 4.5rem; }
  .cover { align-items: center; }
  .cover-inner { max-width: 44rem; }
}

@media (min-width: 1280px) {
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .eyebrow, .js .hero-actions, .js .hero .eyebrow { opacity: 1; transform: none; }
  .js .hero h1 .line > span { transform: none; }
  .hero-media img { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Entre páginas: un fundido corto y la firma quieta */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .38s cubic-bezier(.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: .7s var(--ease) both vt-in; }
::view-transition-group(obra) { animation-duration: .75s; animation-timing-function: var(--ease); }
::view-transition-group(nav) { animation-duration: .01s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
html:not(.vt) body { animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }

/* El jardín */
.stage { background: #dfe5d8; }
.stage::before,
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.stage::after { background: radial-gradient(130% 95% at 50% 42%, rgba(0, 0, 0, 0) 60%, rgba(22, 28, 14, .26) 100%); }
.stage::before { z-index: 2; background: var(--paper); opacity: 0; }
.is-walking .stage::before { animation: garden-in 1.6s var(--ease) both; }
@keyframes garden-in { from { opacity: 1; } to { opacity: 0; } }
.reticle, .aim, .load-note, .keys, .joystick, .hud { z-index: 3; }
.reticle { border-color: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.aim { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .4); }
.load-note, .keys { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.joystick { background: rgb(var(--glass) / .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .5); }
.portal p { margin: 0 0 1.3rem; max-width: 28rem; color: rgb(var(--on-night-rgb) / .82); }

/* Aire para las letras que bajan (p, g, j, y) bajo los títulos apretados */
.page-head h1 { margin-bottom: calc(.2em + .6rem); }
.cover h1 { margin-bottom: calc(.16em + .6rem); }
.walltest-copy h2, .statement h2, .portal h2, .catalog-copy h2 { margin-bottom: calc(.14em + .5rem); }
.paths em { padding-bottom: .1em; }
.footer-big { padding-bottom: .12em; }

/* Portada del jardín: el jardín en vivo de fondo */
.is-preview .stage {
  display: block;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: auto;
  height: calc(100svh - var(--nav-h));
  z-index: 0;
  pointer-events: none;
  touch-action: auto;
}
.is-preview .stage > :not(canvas) { display: none; }
.is-preview .stage::after {
  background:
    linear-gradient(to top, rgb(var(--scrim) / .78) 0%, rgb(var(--scrim) / .34) 42%, rgb(var(--scrim) / 0) 70%),
    linear-gradient(to right, rgb(var(--scrim) / .45) 0%, rgb(var(--scrim) / 0) 62%);
}
.is-preview .stage::before { animation: garden-in 2.2s var(--ease) both; transition: opacity .9s ease; }
.is-preview .stage.is-blink::before { animation: none; opacity: 1; }
.is-preview .cover { position: relative; z-index: 1; color: var(--on-night); }
.is-preview .cover .eyebrow { color: var(--sage-on-night); }
.is-preview .cover h1 em { color: var(--sage-on-night-em); }
.is-preview .cover .lede { color: rgb(var(--on-night-rgb) / .9); }
.is-preview .cover-help { color: rgb(var(--on-night-rgb) / .72); }
.is-preview .cover .text-link { --link-wash: rgb(212 226 176 / .34); color: var(--on-night); box-shadow: inset 0 -1px 0 rgb(var(--on-night-rgb) / .55); }
.is-preview .enter { background: var(--on-night); color: var(--ink-fixed); }
.is-preview .enter:hover { background: var(--accent-tint); }
.is-preview .cover { align-items: flex-end; }
.is-preview .cover-inner { padding-bottom: 1rem; }
.no-flash .stage::before { animation: none; }
@media (pointer: coarse), (max-width: 800px) {
  .hud { flex-direction: column; align-items: flex-start; gap: .5rem; padding-right: 150px; }
}
@media (max-width: 600px) {
  .cover h1 { font-size: clamp(2.6rem, 10.4vw, 4rem); }
}

/* El jardín, en la portada del inicio */
.portal { position: relative; isolation: isolate; align-content: end; }
.portal-media { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.portal-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.portal:hover .portal-media img { transform: scale(1.09); }
.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(var(--scrim) / .82) 0%, rgb(var(--scrim) / .35) 46%, rgb(var(--scrim) / .05) 75%), linear-gradient(to right, rgb(var(--scrim) / .4), rgb(var(--scrim) / 0) 60%);
}
@media (min-width: 980px) {
  .portal { grid-template-columns: 1fr; min-height: 92svh; }
  .portal-copy { max-width: 40rem; }
}
.viewer:focus, .sheet-card:focus { outline: none; }

/* Visor en el teléfono: dos estados claros. La escena no se recalcula,
   solo se recorta la ventana, así la obra y sus sombras quedan quietas. */
@media (max-width: 979px) {
  .viewer { --stage-h: max(58svh, 300px); --stage-c: max(40svh, 230px); }
  .viewer-stage { height: var(--stage-h); min-height: 0; transition: height .5s var(--ease); }
  .viewer.is-compact .viewer-stage { height: var(--stage-c); }
  .viewer-room { bottom: auto; height: var(--stage-h); transition: transform .5s var(--ease), opacity .45s ease; }
  .viewer.is-compact .viewer-room { transform: translate3d(0, var(--room-shift, calc((var(--stage-c) - var(--stage-h)) * .35)), 0); }
  .viewer-dock { transition: left .5s var(--ease), padding .5s var(--ease), background .3s ease, box-shadow .3s ease; }
  .viewer-dock > span { transition: opacity .2s ease; }
  .viewer.is-compact .viewer-dock { left: calc(100% - var(--pad) - 11.5rem); padding: 0; background: transparent; box-shadow: none; }
  .viewer.is-compact .viewer-dock > span { opacity: 0; pointer-events: none; position: absolute; }
  .viewer.is-compact .viewer-dock em { flex: 1; text-align: center; padding: .85rem 1.1rem; box-shadow: 0 14px 30px -12px rgb(var(--shade) / calc(.55 * var(--shade-k))); }
}

/* Panel del visor en el teléfono: una manija y dos pasos */
.viewer-grip { display: none; }
@media (max-width: 979px) {
  .viewer-side { overflow: hidden; overscroll-behavior: contain; }
  .viewer.is-compact .viewer-side, .viewer[data-mode="art"] .viewer-side { overflow-y: auto; }
  .viewer[data-mode="art"] .viewer-grip { visibility: hidden; }
  .viewer-grip { display: flex; order: -2; align-self: stretch; justify-content: center; align-items: center; height: 26px; margin: -10px 0 2px; }
  .viewer-grip span { width: 42px; height: 4px; border-radius: 3px; background: rgb(var(--ink-rgb) / .22); transition: background .3s ease, width .4s var(--ease); }
  .viewer.is-compact .viewer-grip span { width: 28px; background: rgb(var(--ink-rgb) / .35); }
}

/* Trayectoria con fotos y tira del estudio */
.timeline .when-note { display: block; margin-top: .25rem; color: var(--ink-2); font-size: .95rem; }
.timeline .when-photos { display: flex; gap: .6rem; margin-top: .9rem; overflow-x: auto; scrollbar-width: none; }
.timeline .when-photos::-webkit-scrollbar { display: none; }
.timeline .when-photos picture { flex: none; }
.timeline .when-photos img { display: block; height: clamp(120px, 16vw, 180px); width: auto; border-radius: 3px; box-shadow: 0 14px 28px -18px rgb(var(--shade) / calc(.5 * var(--shade-k))); }
.studio-strip { padding-block: clamp(2.6rem, 7vw, 5rem) 0; }
.studio-strip .eyebrow { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--pad); }
.studio-strip .scroller img { height: min(62svh, 560px); width: auto; max-width: 82vw; object-fit: cover; }
.studio-strip .scroller figure { width: auto; }

/* La artista: estudios y enlaces */
.more-art { padding-block: clamp(2.4rem, 7vw, 5rem); }
.more-art .more-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1.2rem; }

/* Franja del inicio: al pasar el mouse la pintura se acerca apenas */
@media (hover: hover) and (pointer: fine) {
  .flow-wall .card .frame .art-blur.is-ready img { transition: opacity 1.2s cubic-bezier(.33, 0, .2, 1), transform 1.2s var(--ease); }
  .flow-wall .card:hover .frame .art-blur.is-ready img { transform: scale(1.04); }
}
