/* =====================================================================
   PALAZZO — Registrado.co ®
   Sistema: Bodoni Moda (display) · Inter Tight (etiquetas) · Pinyon (firma)
   Paleta tomada del reel: laca negra, lino, oro de la cadena, rojo del ribete
   ===================================================================== */

:root {
  --noir: #0b0907;
  --noir-2: #15100c;
  --ivory: #efe7d8;
  --paper: #f4eee3;
  --linen: #e8dfcf;
  --gold: #c2a36b;
  --gold-hi: #ead6a6;
  --gold-ink: #8a6a35;
  --rosso: #a3221b;
  --wall: #2a0f0c;
  --ink-soft: rgba(239, 231, 216, .62);

  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-lux: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --lvl: 0;

  --gilt: linear-gradient(135deg, #5d4421 0%, #d9b871 14%, #8b6a32 28%, #f3dfa6 44%, #9d7a3d 58%, #e2c27b 74%, #6a4e24 88%, #c9a45c 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--noir); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ivory);
  background: var(--noir);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
ol, ul { list-style: none; }
::selection { background: var(--gold); color: var(--noir); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

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

/* Emblema R — máscara recoloreable */
.emblem {
  display: inline-block;
  width: 1em; height: 1em;
  background: currentColor;
  -webkit-mask: var(--emblem) center / contain no-repeat;
          mask: var(--emblem) center / contain no-repeat;
}

/* ------------------------------------------------------------ tipografía */
.eyebrow,
.sala-mark__name,
.piece-kind,
.specs__title,
.edition__label {
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.eyebrow { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 92px);
  line-height: 1;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 96;
}
.display em { color: var(--gold-ink); }
.display--light em { color: var(--gold-hi); }

.sala-mark { display: flex; align-items: center; gap: 14px; }
.sala-mark::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .35; }
.sala-mark__num { font-family: var(--serif); font-size: 16px; color: var(--gold); letter-spacing: .12em; }
[data-theme="light"] .sala-mark__num { color: var(--gold-ink); }
.sala-mark__name { opacity: .7; }

.piece-no { font-family: var(--serif); font-size: 15px; letter-spacing: .16em; color: var(--gold); margin: 38px 0 4px; }
/* el título se mide contra su propia columna, no contra la ventana:
   en pantallas anchas la columna de Rubica es angosta y se metía detrás del arco */
.rubica__intro, .kissen__sticky { container-type: inline-size; }
.piece-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 33cqi, 168px);
  line-height: .86;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
}
.piece-kind { margin: 20px 0 30px; color: var(--gold); }
[data-theme="light"] .piece-no,
[data-theme="light"] .piece-kind { color: var(--gold-ink); }

/* ------------------------------------------------------------ botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 34px;
  font: 500 11.5px var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .55s var(--ease), border-color .55s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform .65s var(--ease-lux);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--gold { border: 1px solid var(--gold); color: var(--gold-hi); --btn-fill: var(--gold); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--noir); }
.btn--line { border: 1px solid rgba(239, 231, 216, .32); color: var(--ivory); --btn-fill: var(--ivory); }
.btn--line:hover, .btn--line:focus-visible { color: var(--noir); }
.btn--dark { background: var(--noir); color: var(--ivory); --btn-fill: var(--rosso); }

/* Arco de palazzo: semicírculo exacto sobre cualquier proporción (--ar = alto/ancho) */
.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / var(--ar);
  border-radius: 50% 50% 0 0 / calc(50% / var(--ar)) calc(50% / var(--ar)) 0 0;
  transform: translateZ(0);
}
.arch > img, .arch > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ribete rojo festoneado, como el del cojín */
.piping {
  width: 168px;
  height: 9px;
  margin: 0 auto;
  border-top: 2px solid var(--rosso);
  background: radial-gradient(circle at 50% 0, var(--rosso) 0 5.5px, transparent 6px) 0 0 / 12px 9px repeat-x;
}

/* ====================================================================
   CARGA
   ==================================================================== */
.loader {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--noir);
}
.loader__mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke-width: 1; }
.loader__track { stroke: rgba(194, 163, 107, .16); }
.loader__bar { stroke: var(--gold); stroke-dasharray: 351.9; stroke-dashoffset: 351.9; }
.loader__emblem { font-size: 52px; color: var(--ivory); }
.loader__word {
  position: absolute;
  top: calc(50% + 92px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  letter-spacing: .04em;
  color: var(--ivory);
  opacity: .78;
}
.loader__meta {
  position: absolute;
  bottom: 28px;
  font: 500 10.5px var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.loader__meta--l { left: var(--gutter); }
.loader__meta--r { right: var(--gutter); font-family: var(--serif); font-size: 13px; letter-spacing: .12em; }

/* ====================================================================
   UMBRAL — la puerta
   ==================================================================== */
.gate {
  position: fixed; inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
  padding: 80px var(--gutter) 72px;
  color: var(--ivory);
  will-change: transform, opacity;
}
.gate__wall {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 64% at 50% 56%, rgba(120, 82, 44, .22), transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 50%, #1a140f 0%, #0c0a08 62%, #060504 100%);
}
/* boiserie: paneles verticales apenas insinuados */
.gate__wall::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(194, 163, 107, .06) calc(12.5% - 1px) 12.5%);
  -webkit-mask: linear-gradient(to bottom, transparent 4%, #000 24%, #000 76%, transparent 96%);
          mask: linear-gradient(to bottom, transparent 4%, #000 24%, #000 76%, transparent 96%);
}
.gate__wall::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .55));
}

.gate__side { max-width: 460px; }
.gate__side--l { justify-self: end; text-align: right; }
.gate__side--r { justify-self: start; }
.gate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(60px, 8.2vw, 148px);
  line-height: .92;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 96;
  margin: 16px 0 18px;
}
.gate__sub { font-family: var(--serif); font-size: 18px; color: var(--ink-soft); }
.gate__sub em { color: var(--gold-hi); }
.gate__lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.18;
  margin-bottom: 30px;
}
.gate__quiet {
  display: block;
  margin-top: 18px;
  font: 500 10.5px var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(239, 231, 216, .25);
  text-underline-offset: 6px;
  transition: color .4s;
}
.gate__quiet:hover { color: var(--ivory); }
.gate__note {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  font: 500 10px var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gate__note em { font-family: var(--serif); text-transform: none; letter-spacing: .04em; font-size: 13px; color: var(--gold-hi); }
.note-glyph { display: inline-block; width: 13px; height: 13px; margin: 0 8px -2px 0; color: var(--gold); fill: currentColor; }

.portal {
  --dw: min(38svh, 70vw);
  --fan: calc(var(--dw) / 2);
  position: relative;
  width: var(--dw);
  height: calc(var(--dw) * 1.86);
}
/* molduras doradas que siguen el arco */
.portal__frame,
.portal__frame::before {
  position: absolute;
  border: 1px solid rgba(194, 163, 107, .55);
  border-bottom: 0;
  pointer-events: none;
}
.portal__frame {
  inset: -22px -22px 0;
  border-radius: calc(var(--fan) + 22px) calc(var(--fan) + 22px) 0 0;
  box-shadow: 0 0 80px rgba(194, 163, 107, .06);
}
.portal__frame::before {
  content: "";
  inset: 7px 7px 0;
  border-color: rgba(194, 163, 107, .28);
  border-radius: calc(var(--fan) + 15px) calc(var(--fan) + 15px) 0 0;
}
/* luneto de abanico — como el de la foto frente a la persiana */
.portal__fan {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--fan);
  border-radius: var(--fan) var(--fan) 0 0;
  overflow: hidden;
  background: linear-gradient(#0e0b08, #19130e);
  border: 1px solid rgba(194, 163, 107, .65);
  border-bottom: 0;
}
.portal__fan-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 130% at 50% 100%, rgba(255, 216, 158, .95), rgba(214, 150, 80, .4) 42%, transparent 72%);
  opacity: .16;
}
.portal__fan-bars { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal__fan-bars path { fill: none; stroke: var(--gold); stroke-width: 1.1; vector-effect: non-scaling-stroke; opacity: .9; }

.portal__doors {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: var(--fan);
  perspective: 1700px;
  border-top: 1px solid rgba(194, 163, 107, .65);
}
.portal__light {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #2a1a0f;
}
.portal__light img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.25);
  opacity: 0;
}
.portal__light::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255, 214, 160, .5), rgba(120, 70, 30, .2) 60%, transparent);
  mix-blend-mode: screen;
}

.leaf {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 238, 210, .016) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #120e0a, #1c1510 48%, #120e0a);
  box-shadow: inset 0 0 0 1px rgba(194, 163, 107, .34), inset 0 0 50px rgba(0, 0, 0, .65);
  backface-visibility: hidden;
  will-change: transform;
}
.leaf--l { left: 0; transform-origin: 0 50%; }
.leaf--r { right: 0; transform-origin: 100% 50%; }
.leaf__panel {
  position: absolute;
  left: 15%; right: 15%;
  border: 1px solid rgba(194, 163, 107, .5);
  background: linear-gradient(160deg, rgba(255, 230, 190, .035), transparent 55%);
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, .32),
    inset 0 0 0 6px rgba(194, 163, 107, .22),
    inset 0 24px 40px rgba(0, 0, 0, .3);
}
.leaf__panel--top { top: 6%; height: 52%; }
.leaf__panel--bot { bottom: 6%; height: 28%; }
.leaf__handle {
  position: absolute;
  top: 48%;
  width: 5px;
  height: 14%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6e5428, #f0d79a 45%, #9b7b3e 72%, #5a4320);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .65);
}
.leaf--l .leaf__handle { right: 6%; }
.leaf--r .leaf__handle { left: 6%; }
.leaf__medal {
  position: absolute;
  top: 18%;
  width: calc(var(--dw) * .34);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-hi);
  font-size: calc(var(--dw) * .17);
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 50% 38%, #2a2017, #0d0a07 72%);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(194, 163, 107, .38), 0 10px 30px rgba(0, 0, 0, .6);
}
.leaf--l .leaf__medal { right: 0; transform: translateX(50%); }
.leaf--r .leaf__medal { left: 0; transform: translateX(-50%); }
.leaf__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 228, 176, .16) 50%, transparent 68%);
  transform: translateX(-120%);
  pointer-events: none;
}
/* el umbral, literal */
.portal__step {
  position: absolute;
  left: -34px; right: -34px; bottom: -16px;
  height: 16px;
  background: linear-gradient(#2c2219, #0c0907);
  border-top: 1px solid rgba(194, 163, 107, .45);
}

/* ====================================================================
   CABECERA, MENÚ, INDICADOR DE SALA
   ==================================================================== */
.hdr {
  --ink: var(--ivory);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 84px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  transition: color .6s var(--ease), opacity 1s var(--ease), transform .9s var(--ease-lux), background-color .6s var(--ease), height .6s var(--ease);
}
.hdr[data-theme="light"] { --ink: var(--noir); }
/* fuera del hero: barra sólida que se esconde al bajar y vuelve al subir */
.hdr.is-solid {
  height: 70px;
  background-color: rgba(11, 9, 7, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
}
.hdr.is-solid[data-theme="light"] { background-color: rgba(244, 238, 227, .84); }
.hdr.is-solid::before { opacity: 0; }
.hdr.is-solid .hdr__word { display: none; }
.hdr.is-hidden { transform: translateY(-100%); }
.menu-open .hdr { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.hdr::before {
  content: "";
  position: absolute; inset: 0 0 -30px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 6, 5, .5), transparent);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.hdr[data-theme="light"]::before { opacity: 0; }
body.is-gated .hdr,
body.is-gated .sala { opacity: 0; pointer-events: none; }

.hdr__menu { justify-self: start; display: flex; align-items: center; gap: 14px; }
.hdr__burger { position: relative; width: 24px; height: 9px; }
.hdr__burger i {
  position: absolute; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transition: transform .6s var(--ease-lux), width .6s var(--ease-lux), top .6s var(--ease-lux);
}
.hdr__burger i:first-child { top: 0; }
.hdr__burger i:last-child { top: 8px; width: 66%; }
.hdr__menu:hover .hdr__burger i:last-child { width: 100%; }
.menu-open .hdr__burger i:first-child { top: 4px; transform: rotate(20deg); }
.menu-open .hdr__burger i:last-child { top: 4px; width: 100%; transform: rotate(-20deg); }
.hdr__label,
.sound__label,
.hdr__cta {
  font: 500 10.5px var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hdr__brand { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hdr__emblem { font-size: 30px; }
.hdr__word { font: 500 9px var(--sans); letter-spacing: .52em; text-transform: uppercase; margin-right: -.52em; }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.hdr__cta {
  padding: 11px 18px;
  border: 1px solid currentColor;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.hdr__cta:hover { background: var(--ink); color: var(--paper); }
.hdr[data-theme="dark"] .hdr__cta:hover { color: var(--noir); }

.sound { display: flex; align-items: center; gap: 11px; }
.sound__bars { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.sound__bars i {
  width: 2px; height: 14px;
  background: currentColor;
  transform-origin: 50% 100%;
  transform: scaleY(.18);
}
.sound__label::after { content: " off"; opacity: .5; }
.is-sound .sound__label::after { content: ""; }

.menu {
  position: fixed; inset: 0;
  z-index: 95;
  background: var(--paper);
  color: var(--noir);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 1s var(--ease-lux), visibility 0s 1s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 1s var(--ease-lux); }
.menu__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 24px 7vw;
  padding: 116px var(--gutter) 30px;
}
.menu__list { align-self: center; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: .55vh 0;
  font-family: var(--serif);
  font-size: clamp(30px, min(4.6vw, 6.4vh), 72px);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.menu__num { width: 34px; flex: none; font-size: 13px; letter-spacing: .1em; color: var(--gold-ink); }
.menu__name { transition: transform .7s var(--ease); }
.menu__name em { font-size: .5em; color: var(--gold-ink); letter-spacing: .04em; }
.menu__list a:hover .menu__name, .menu__list a:focus-visible .menu__name { transform: translateX(16px); font-style: italic; }
.menu__preview {
  align-self: center;
  width: min(100%, 420px);
  justify-self: center;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 35.7% 35.7% 0 0;
  background: var(--linen);
}
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.6s var(--ease); }
.menu__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 9, 7, .14);
  font: 500 10.5px var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
}

.sala {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  top: 50%;
  z-index: 90;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
  transition: color .6s var(--ease), opacity 1s var(--ease);
  pointer-events: none;
}
.sala[data-theme="light"] { color: var(--noir); }
.sala__num { font-family: var(--serif); font-size: 15px; min-width: 2em; text-align: center; }
.sala__track { position: relative; width: 1px; height: 84px; background: rgba(128, 118, 104, .35); }
.sala__track i { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); }
.sala__name { writing-mode: vertical-rl; font: 500 9.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .62; }

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  --dim: 0;
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--noir);
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8, 6, 5, .55) 0%, rgba(8, 6, 5, 0) 24%, rgba(8, 6, 5, 0) 50%, rgba(8, 6, 5, .82) 100%);
}
.hero__shade::after { content: ""; position: absolute; inset: 0; background: var(--noir); opacity: var(--dim); }
.hero__lockup {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(58px, 9vh, 112px);
  text-align: center;
  pointer-events: none;
}
.hero__kicker {
  font-family: var(--serif);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: .62em;
  margin-right: -.62em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1vw, 16px);
}
.hero__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(66px, 15.6vw, 270px);
  line-height: .9;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 96;
  white-space: nowrap;
}
.ch { display: inline-block; overflow: hidden; padding: 0 .015em .2em; margin-bottom: -.2em; vertical-align: top; }
.ch__in { display: inline-block; will-change: transform; }
.hero__meta {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  font: 500 10px var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__meta--l { left: var(--gutter); }
.hero__meta--l span + span::before { content: "—"; margin-right: 18px; opacity: .5; }
.hero__meta--r { right: var(--gutter); }
.hero__cue { position: relative; width: 1px; height: 38px; background: rgba(239, 231, 216, .25); overflow: hidden; }
.hero__cue::after {
  content: "";
  position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--ivory);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ====================================================================
   I · ORIGEN
   ==================================================================== */
.origen, .capsula, .rubica, .hogar, .kissen, .archivo, .cruzar { position: relative; z-index: 2; }
.origen {
  background: var(--paper);
  color: var(--noir);
  padding: clamp(100px, 17vh, 210px) 0 clamp(70px, 10vh, 130px);
}
.origen__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(40px, 6vh, 72px);
}
.origen .sala-mark { grid-column: 1 / -1; }
.origen__text {
  grid-column: 1 / span 9;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 70px);
  line-height: 1.1;
  letter-spacing: -.014em;
  font-variation-settings: "opsz" 72;
}
.origen__text em { color: var(--gold-ink); }
.w { display: inline-block; }
.origen__fig { grid-column: 10 / span 3; grid-row: 2 / span 2; align-self: end; }
.origen__fig .arch { background: #ddd2bf; }
.origen__fig figcaption,
.detail figcaption em { font-family: var(--serif); }
.origen__fig figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(11, 9, 7, .66);
}
.origen__fig figcaption span {
  display: block;
  font: 500 10px var(--sans);
  font-style: normal;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 4px;
}
.origen__cols {
  grid-column: 1 / span 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 56px);
  max-width: 860px;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(11, 9, 7, .72);
}
.origen__cols p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.1em;
  line-height: .78;
  margin: .08em .12em 0 0;
  color: var(--gold-ink);
}
.origen__cols em { font-family: var(--serif); font-size: 1.08em; color: var(--noir); }
.signature {
  grid-column: 6 / span 7;
  justify-self: end;
  font-family: var(--script);
  font-size: clamp(60px, 7.6vw, 132px);
  line-height: 1.1;
  color: var(--gold-ink);
  transform: rotate(-5deg);
  padding: 0 .2em;
}

/* ====================================================================
   II · CÁPSULA
   ==================================================================== */
.capsula {
  background: var(--paper);
  color: var(--noir);
  padding: 30px 0 clamp(100px, 15vh, 190px);
}
.capsula__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px clamp(16px, 2vw, 32px);
  margin: clamp(70px, 11vh, 130px) 0 clamp(54px, 8vh, 96px);
}
.capsula__head .sala-mark { grid-column: 1 / -1; }
.capsula__head .display { grid-column: 1 / span 8; }
.capsula__lede { grid-column: 9 / span 4; align-self: end; font-size: 15.5px; line-height: 1.7; color: rgba(11, 9, 7, .7); }
.capsula__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  align-items: start;
}
.piece-card:nth-child(even) { margin-top: 70px; }
.piece-card > a, .piece-card > div { display: block; }
.piece-card__img { margin-bottom: 20px; background: #e2d8c6; }
.piece-card__img img { transition: transform 1.6s var(--ease); }
.piece-card a:hover .piece-card__img img { transform: scale(1.06); }
.piece-card__no { display: block; font-family: var(--serif); font-size: 13px; letter-spacing: .12em; color: var(--gold-ink); }
.piece-card__name {
  display: block;
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.08;
}
.piece-card__kind { font: 500 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(11, 9, 7, .55); }
.piece-card--veiled .piece-card__img {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #211a13, #0b0907 75%);
}
.piece-card--veiled .piece-card__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(234, 214, 166, .12) 50%, transparent 65%);
  animation: veil 5s var(--ease) infinite;
}
.piece-card--veiled:nth-child(4) .piece-card__img::after { animation-delay: 1.4s; }
@keyframes veil { from { transform: translateX(-100%); } 55%, to { transform: translateX(100%); } }
.piece-card--veiled .emblem { position: relative; z-index: 1; font-size: 54px; color: rgba(194, 163, 107, .55); }
.piece-card--veiled .piece-card__name { color: rgba(11, 9, 7, .38); }

/* ====================================================================
   III · RUBICA
   ==================================================================== */
.rubica {
  background: radial-gradient(ellipse 70% 50% at 50% 28%, #1b1510, var(--noir) 72%);
  padding: clamp(110px, 17vh, 210px) 0 clamp(90px, 13vh, 160px);
  overflow: hidden;
}
.rubica__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 29vw) minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 80px);
  align-items: center;
}
.rubica__story {
  font-family: var(--serif);
  font-size: clamp(19px, 1.65vw, 25px);
  line-height: 1.36;
  max-width: 24ch;
  color: rgba(239, 231, 216, .82);
}
.rubica__story em { color: var(--gold-hi); }
.rubica__stage { position: relative; margin: 0 14px; }
.rubica__arch { background: #e9e6e1; }
.rubica__outline {
  position: absolute;
  top: -16px; left: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 16px);
  overflow: visible;
  pointer-events: none;
}
.rubica__outline path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .75; }

.specs { align-self: center; }
.specs__title { color: var(--gold); margin-bottom: 14px; }
.specs__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(239, 231, 216, .14);
}
.specs__row:last-child { border-bottom: 1px solid rgba(239, 231, 216, .14); }
.specs dt { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--gold-hi); }
.specs dd { font-size: 14.5px; line-height: 1.65; color: rgba(239, 231, 216, .7); }
.specs dd em { font-family: var(--serif); font-size: 1.06em; color: var(--ivory); }
.specs--light { margin-top: 8px; }
.specs--light .specs__row { border-color: rgba(11, 9, 7, .14); }
.specs--light dt { color: var(--gold-ink); }
.specs--light dd { color: rgba(11, 9, 7, .72); }
.specs--light dd em { color: var(--noir); }

.edition {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 130px);
  margin-top: clamp(110px, 17vh, 210px);
}
.edition__big { position: relative; }
.edition__five {
  --fill: 0%;
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(200px, 27vw, 440px);
  line-height: .76;
  letter-spacing: -.04em;
  padding: 0 .08em .06em 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  background: linear-gradient(to top, #b8955a 0, #ead6a6 calc(var(--fill) * .7), #c2a36b var(--fill), transparent var(--fill));
  -webkit-background-clip: text;
          background-clip: text;
}
.edition__label { color: var(--gold); }
.edition__text {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 17ch;
  margin: 16px 0 34px;
}
.edition__medals { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.2vw, 18px); margin-bottom: 42px; }
.edition__medals li {
  width: clamp(48px, 4.4vw, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-hi);
  border: 1px solid rgba(194, 163, 107, .6);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .45), inset 0 0 0 5px rgba(194, 163, 107, .2);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  margin-top: clamp(110px, 16vh, 200px);
}
.detail:nth-child(2) { margin-top: 90px; }
.detail__img { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; background: #1a1510; }
.detail__img > img, .detail__img > video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.detail figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 20px;
}
.detail figcaption span { font-style: italic; color: var(--gold); }
.detail figcaption em { font-size: 15px; color: rgba(239, 231, 216, .5); }

[data-parallax] { height: 116% !important; top: -8% !important; }

/* ====================================================================
   IV · HOGAR
   ==================================================================== */
.hogar {
  height: 125svh;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--noir);
}
.hogar__media { position: absolute; inset: 0; }
.hogar__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.hogar__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--noir) 0%, transparent 20%, transparent 80%, var(--noir) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(8, 6, 5, .35), rgba(8, 6, 5, .82) 80%);
}
.hogar__quote {
  position: relative;
  max-width: 17ch;
  padding: 0 16px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(38px, 5.8vw, 100px);
  line-height: 1.04;
  letter-spacing: -.018em;
}
.hogar__quote em { color: var(--gold-hi); }
.hogar__quote footer {
  margin-top: 30px;
  font: 500 10.5px var(--sans);
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ====================================================================
   V · KISSEN
   ==================================================================== */
.kissen {
  color: var(--noir);
  padding: 30px 0 clamp(110px, 15vh, 190px);
  background-color: var(--linen);
  /* trama de lona */
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 90, 60, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 90, 60, .04) 0 1px, transparent 1px 3px);
}
.kissen__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(30px, 5.5vw, 110px);
  margin-top: clamp(80px, 12vh, 140px);
}
.kissen__sticky { position: sticky; top: 128px; }
.kissen .piece-kind { max-width: 32ch; line-height: 1.7; }
.kissen__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font: 500 10px var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.badge i { width: 18px; height: 2px; background: var(--rosso); }
.kissen__ship { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 16px; color: rgba(11, 9, 7, .62); }

.kissen__figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  align-items: start;
}
.kfig--tall, .kfig--wide { grid-column: 1 / -1; }
.kfig--offset { margin-top: 100px; }
.kfig__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #d8ccb6; }
.kfig--tall .kfig__img { aspect-ratio: 1 / 1.08; }
.kfig--wide .kfig__img { aspect-ratio: 16 / 9; }
.kfig__img > img, .kfig__img > video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.kfig figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; font-family: var(--serif); font-size: 18px; }
.kfig figcaption span { font: 500 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }

/* ====================================================================
   VI · ARCHIVO — la galería
   ==================================================================== */
.archivo {
  padding-top: clamp(110px, 17vh, 210px);
  background-color: var(--wall);
  /* papel tapiz: celosía de rombos */
  background-image:
    repeating-linear-gradient(60deg, rgba(194, 163, 107, .05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-60deg, rgba(194, 163, 107, .05) 0 1px, transparent 1px 46px),
    radial-gradient(ellipse 80% 60% at 50% 0, #3a1612, #220c0a 70%);
}
.archivo__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px clamp(16px, 2vw, 32px);
  padding-bottom: clamp(30px, 5vh, 70px);
}
.archivo__intro .sala-mark { grid-column: 1 / -1; }
.archivo__intro .display { grid-column: 1 / span 9; font-size: clamp(36px, 4.7vw, 82px); }
.archivo__lede { grid-column: 10 / span 3; align-self: end; font-size: 15px; line-height: 1.7; color: rgba(239, 231, 216, .68); }

.hall { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hall__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 15%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 230, 200, .025) 0 2px, transparent 2px 120px),
    linear-gradient(#1c0d09, #0b0605);
  border-top: 1px solid rgba(194, 163, 107, .35);
}
/* zócalo: doble moldura sobre el piso */
.hall__floor::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -34px;
  height: 34px;
  border-top: 1px solid rgba(194, 163, 107, .22);
  background: linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, .25));
}
.hall__track {
  position: absolute;
  top: 0; left: 0;
  height: 85%;
  display: flex;
  align-items: center;
  gap: clamp(64px, 7.5vw, 150px);
  padding: 0 clamp(48px, 12vw, 220px);
  will-change: transform;
}
.work { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; }
.work--up { transform: translateY(-5svh); }
.work--down { transform: translateY(5svh); }
/* luz de cuadro: se enciende al pasar */
.work::before {
  content: "";
  position: absolute;
  left: 50%; top: -14svh;
  width: 190%; height: 100svh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 34% 46% at 50% 6%, rgba(255, 214, 160, .2), transparent 72%);
  opacity: .25;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
}
.work.is-lit::before { opacity: 1; }
.work__frame {
  position: relative;
  display: block;
  padding: clamp(10px, 1.1vw, 18px);
  background: var(--gilt);
  box-shadow:
    0 50px 80px -34px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(50, 32, 12, .9),
    inset 0 0 0 1px rgba(255, 240, 200, .38),
    inset 0 0 0 4px rgba(110, 82, 36, .45);
  transition: transform .8s var(--ease), filter 1.4s var(--ease);
  filter: brightness(.82);
}
.work.is-lit .work__frame { filter: brightness(1); }
.work__frame:hover { transform: translateY(-6px); }
/* lámpara de latón sobre el marco */
.work__frame::before {
  content: "";
  position: absolute;
  top: -30px; left: 50%;
  width: 40%; height: 7px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(#f2dca4, #8a6a33);
  box-shadow: 0 12px 36px 8px rgba(255, 210, 150, .18);
}
.work__frame--ornate { padding: clamp(16px, 1.8vw, 28px); }
.work__frame--ornate::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dotted rgba(255, 236, 190, .5);
  pointer-events: none;
}
.work__mat { display: block; padding: clamp(8px, 1vw, 16px); background: #ece4d3; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35); }
.work__frame--dark .work__mat { background: #0d0a08; }
.work__mat img { display: block; width: auto; max-width: none; filter: saturate(.94); }
.work--l .work__mat img { height: 50svh; }
.work--m .work__mat img { height: 41svh; }
.work--s .work__mat img { height: 32svh; }
.plaque {
  margin-top: 30px;
  min-width: 170px;
  padding: 10px 18px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  color: #2a1d0c;
  background: linear-gradient(#e6d3a2, #b99a5e);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.plaque__no { font: 600 8.5px var(--sans); letter-spacing: .32em; opacity: .7; }
.plaque em { font-family: var(--serif); font-size: 15px; line-height: 1.25; }
.plaque span:last-child { font: 500 8.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.hall__end {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-right: 6vw;
  font: 500 10.5px var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.hall__end .emblem { font-size: 46px; color: var(--gold-hi); }

/* ====================================================================
   VII · CRUZAR + PIE
   ==================================================================== */
.cruzar {
  background: var(--noir);
  padding-top: clamp(130px, 19vh, 230px);
  text-align: center;
  overflow: hidden;
}
.cruzar::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1200px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 28%, rgba(194, 163, 107, calc(.07 + var(--lvl) * .28)), transparent 52%);
  pointer-events: none;
}
.cruzar__inner { position: relative; }
.medallion {
  position: relative;
  width: clamp(160px, 15vw, 224px);
  aspect-ratio: 1;
  margin: 0 auto 60px;
  display: grid;
  place-items: center;
}
.medallion::before {
  content: "";
  position: absolute; inset: 21%;
  border-radius: 50%;
  border: 1px solid rgba(194, 163, 107, .6);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .5), inset 0 0 0 6px rgba(194, 163, 107, .25), 0 0 calc(20px + var(--lvl) * 90px) rgba(234, 214, 166, calc(var(--lvl) * .35));
}
.medallion__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 48s linear infinite; }
.medallion__text text { font-family: var(--sans); font-size: 10.6px; font-weight: 500; letter-spacing: 3.1px; fill: var(--gold); }
.medallion__emblem { font-size: clamp(42px, 4vw, 62px); color: var(--ivory); }
@keyframes spin { to { transform: rotate(360deg); } }
.cruzar__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 116px);
  line-height: 1;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 96;
}
.cruzar__title em { color: var(--gold-hi); }
.cruzar__sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 25px); color: var(--ink-soft); margin: 28px 0 46px; }
.cruzar__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cruzar__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin: clamp(80px, 11vh, 130px) auto 0;
  border-top: 1px solid rgba(239, 231, 216, .13);
}
.cruzar__facts li { padding: 26px 14px; font-family: var(--serif); font-size: 18px; }
.cruzar__facts li + li { border-left: 1px solid rgba(239, 231, 216, .13); }
.cruzar__facts span { display: block; margin-bottom: 8px; font: 500 9.5px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

.foot { margin-top: clamp(110px, 17vh, 210px); padding: 0 var(--gutter) 28px; }
.foot__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.2vw;
  line-height: .8;
  letter-spacing: -.05em;
  white-space: nowrap;
  font-variation-settings: "opsz" 96;
  color: transparent;
  background: linear-gradient(to bottom, var(--ivory) 20%, rgba(239, 231, 216, .06) 96%);
  -webkit-background-clip: text;
          background-clip: text;
}
.foot__script { position: relative; margin-top: -2.2vw; font-family: var(--script); font-size: clamp(32px, 3.4vw, 56px); color: var(--gold); }
.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 231, 216, .12);
  font: 500 10px var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot__row em { font-family: var(--serif); font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--gold-hi); }
.foot__row a:hover { color: var(--ivory); }
.foot__credit {
  margin-top: 22px;
  text-align: center;
  font: 500 10px var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, .42);
}
.foot__credit a {
  color: var(--gold-hi);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(194, 163, 107, .4);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.foot__credit a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ====================================================================
   VISOR, CURSOR, GRANO
   ==================================================================== */
.viewer {
  position: fixed; inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 70px 16px 40px;
  background: rgba(10, 6, 5, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.viewer.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.viewer__fig { display: flex; flex-direction: column; align-items: center; gap: 22px; transform: scale(.96); transition: transform .9s var(--ease); }
.viewer.is-open .viewer__fig { transform: none; }
.viewer__frame { padding: clamp(10px, 1.4vw, 20px); background: var(--gilt); box-shadow: 0 60px 120px -40px #000; }
.viewer__frame img { display: block; max-height: 74svh; max-width: 84vw; width: auto; height: auto; }
.viewer__cap { text-align: center; }
.viewer__cap em { display: block; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); }
.viewer__cap span { font: 500 10px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.viewer__close {
  position: absolute;
  top: 28px; right: var(--gutter);
  font: 500 10.5px var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory);
}

.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-hi); mix-blend-mode: difference; }
.cursor__ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 214, 166, .55);
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: rgba(194, 163, 107, .94); border-color: transparent; }
.cursor__label { font: 600 9.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--noir); opacity: 0; transition: opacity .3s; margin-right: -.24em; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

.grain {
  position: fixed;
  inset: -100px;
  z-index: 250;
  pointer-events: none;
  opacity: .075;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-40px, 22px); }
  40% { transform: translate(28px, -36px); }
  60% { transform: translate(-18px, 44px); }
  80% { transform: translate(38px, 12px); }
  100% { transform: translate(0, 0); }
}

/* estados iniciales (solo con JS) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js .edition__medals li { opacity: 0; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1100px) {
  .rubica__grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 38vw); }
  .rubica__intro { grid-column: 1 / -1; }
  .specs { grid-column: 1; grid-row: 2; }
  .rubica__stage { grid-column: 2; grid-row: 2; }
}

@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 22px;
    padding: 46px 16px 54px;
    text-align: center;
  }
  .gate__side--l, .gate__side--r { justify-self: center; text-align: center; }
  .gate__title { font-size: clamp(54px, 16vw, 92px); margin: 10px 0 0; }
  .gate__sub { display: none; }
  .gate__lede { font-size: 19px; margin-bottom: 18px; }
  .gate__lede br { display: none; }
  .gate__quiet { margin: 12px auto 0; }
  .gate__note { bottom: 16px; font-size: 9px; letter-spacing: .22em; }
  .portal { --dw: min(25svh, 54vw); }
  .portal__frame { inset: -14px -14px 0; border-radius: calc(var(--fan) + 14px) calc(var(--fan) + 14px) 0 0; }
  .portal__frame::before { inset: 5px 5px 0; border-radius: calc(var(--fan) + 9px) calc(var(--fan) + 9px) 0 0; }

  .hdr { height: 68px; }
  .hdr__label, .sound__label, .hdr__cta { display: none; }
  .hdr__emblem { font-size: 26px; }
  .hdr__word { display: none; }
  .sala { display: none; }

  .menu__inner { grid-template-columns: 1fr; padding-top: 96px; }
  .menu__preview { display: none; }
  .menu__list a { font-size: clamp(30px, 8.6vw, 44px); gap: 16px; }
  .menu__foot { flex-direction: column; }

  .hero__meta--l span + span { display: none; }
  .hero__word { font-variation-settings: "opsz" 14; letter-spacing: -.03em; }
  .hero__lockup { bottom: 84px; }

  .origen__grid, .capsula__head, .archivo__intro { grid-template-columns: minmax(0, 1fr); }
  .origen__text, .origen__cols, .signature, .capsula__head .display, .capsula__lede,
  .archivo__intro .display, .archivo__lede, .origen__fig { grid-column: 1; grid-row: auto; }
  .origen__fig { width: 62%; justify-self: end; }
  .origen__cols { grid-template-columns: 1fr; }
  .signature { justify-self: center; }

  .capsula__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .piece-card:nth-child(even) { margin-top: 44px; }

  .rubica__grid { grid-template-columns: minmax(0, 1fr); }
  .rubica__intro, .specs, .rubica__stage { grid-column: 1; grid-row: auto; }
  .rubica__stage { width: min(78vw, 380px); justify-self: center; margin: 16px 0; }
  .edition { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .edition__five { font-size: 58vw; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail:nth-child(2) { margin-top: 50px; }
  .detail:nth-child(3) { grid-column: 1 / -1; }
  .detail:nth-child(3) .detail__img { aspect-ratio: 4 / 3; }

  .hogar { height: 105svh; }
  .hogar__media img { object-position: 52% 50%; }

  .kissen__grid { grid-template-columns: minmax(0, 1fr); }
  .kissen__sticky { position: static; }
  .kfig--offset { margin-top: 50px; }
  .kfig figcaption { flex-direction: column; gap: 2px; font-size: 16px; }

  .work--l .work__mat img { height: 46svh; }
  .work--m .work__mat img { height: 38svh; }
  .work--s .work__mat img { height: 30svh; }
  .hall__track { gap: 56px; padding: 0 12vw; }

  .cruzar__facts { grid-template-columns: minmax(0, 1fr); }
  .cruzar__facts li + li { border-left: 0; border-top: 1px solid rgba(239, 231, 216, .13); }
  .foot__row { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .portal { --dw: min(22svh, 50vw); }
  .gate__title { font-size: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .medallion__text, .hero__cue::after, .piece-card--veiled .piece-card__img::after { animation: none; }
  .js [data-reveal], .js .edition__medals li { opacity: 1; transform: none; }
}
