/* ==========================================================================
   Carina Ink Tattoo — "Gabinete" (cabinet of curiosities)
   Plain CSS, no build step. Sections: tokens, reset, type, layout, header,
   hero, marquee, obra (portfolio), proceso, artista, reservas, footer,
   mobile CTA, viewer (lightbox), motion, responsive.
   ========================================================================== */

/* ==========================================================================
   Self-hosted fonts (Round 4, T31)
   Byte-for-byte the same 5 "latin" subset faces Google's font CSS endpoint
   served for the old family request (IBM+Plex+Mono:wght@400;500,
   Instrument+Serif:ital@0;1, Inter:wght@300..700), fetched with a Chrome UA
   so it returned woff2 — "latin" @font-face blocks only, since the other
   subsets (cyrillic/greek/vietnamese/latin-ext) are never used by this
   Spanish-language page. No external font request remains: no DNS/TLS/HTTP
   round trip to Google's CSS host or its static font host. unicode-range is
   copied as-is: U+0000-00FF plus general punctuation covers á é í ó ú ñ ¿ ¡
   — ′; U+2191/U+2193 cover the hero coordinate arrows. The 🖤 emoji falls
   outside every range here and renders via the system emoji font, same as
   before. build-dist.py's asset scanner picks up every src file below via
   its relative "../assets/fonts/" src reference and copies it into dist.
   ========================================================================== */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-400-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/inter-variable-300-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b0b0c;
  --ink-2: #121113;
  --ink-3: #1a191c;
  --bone: #f5f1e8;
  --muted: #a8a29e;
  --faint: #6f6a64;
  --gold: #c9a24a;
  --gold-hover: #e0b95c;
  --line: rgba(245, 241, 232, .12);
  --line-gold: rgba(201, 162, 74, .35);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open, body.viewer-open { overflow: hidden; }
/* The full-screen menu (z 70) would cover the header (z 50) and hide the burger,
   which morphs into the close X — lift the header above it while the menu is open. */
body.menu-open .site-header { z-index: 80; }
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, blockquote, figure, p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: .8rem;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Focus ring */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Grain overlay (inline SVG feTurbulence data-URI, no external asset) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .045;
  background-repeat: repeat;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(96px, 14vw, 200px); }
.hairline {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  flex: none;
}

/* ==========================================================================
   Type
   ========================================================================== */
.hero-title, .display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 10.5vw, 11rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-title em, h2 em { font-style: italic; color: inherit; font-weight: 400; }
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--bone);
}
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  color: var(--muted);
  max-width: 34ch;
}
p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 62ch;
  color: var(--muted);
}
.label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .72rem;
  /* Explicit ratio, not "normal": WebKit resolves line-height: normal to a
     different used value for a <h1> than for a <p> at the same font-size
     (measured 15px vs 20px box height), even with identical authored CSS.
     .hero-label became a semantic <h1> in Round 4 (T26) and still needs to
     render pixel-identical to the old <p> — 1.75 is that <p>'s previously
     "normal"-resolved ratio (11.52px * 1.75 = 20.16px), made explicit so
     both tags compute the same. */
  line-height: 1.75;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: none;
}
.label--center { justify-content: center; width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn { background: var(--gold); color: var(--ink); }
.btn:hover, .btn:focus-visible { background: var(--gold-hover); }
.btn-arrow { width: 16px; height: 16px; transition: transform .45s var(--ease); flex: none; }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line-gold); }
/* Ghosts also carry .btn, so .btn:hover would paint them gold — keep them transparent. */
.btn.btn--ghost:hover, .btn.btn--ghost:focus-visible { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn, .btn--ghost { max-width: 100%; }
@media (max-width: 599.98px) {
  .btn, .btn--ghost { white-space: normal; text-align: center; padding-block: 14px; }
  /* Phones: stacked, full-width CTAs (thumb-friendly, and never wider than the shell). */
  .hero-actions, .reservas-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn, .reservas-actions .btn { width: 100%; }
}
.ig-icon, .wa-icon, .pin-icon { flex: none; }

/* ==========================================================================
   Scroll progress + header
   ========================================================================== */
.progress-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: var(--ink);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark { height: 38px; width: auto; }
.brand-word { font-family: var(--serif); font-size: 1.5rem; color: var(--bone); }

.site-nav ul { display: flex; gap: 36px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--sans);
  font-size: .9rem;
}
.nav-num { font-family: var(--mono); font-size: .7rem; color: var(--gold); }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 10px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--bone);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  cursor: pointer; /* iOS Safari only fires click on "clickable" elements: lets taps on empty space close the menu */
  z-index: 70;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  color: var(--bone);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  min-height: 44px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0ms);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a .nav-num { font-size: 1rem; }
.mobile-menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mobile-menu-foot a { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center;
  /* .mobile-menu a styles the big serif links; the footer links stay small mono labels */
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; }
.mobile-menu-foot a:hover, .mobile-menu-foot a:focus-visible { color: var(--gold); }

@media (min-width: 960px) {
  .burger, .mobile-menu { display: none; }
}
@media (max-width: 959.98px) {
  .site-nav { display: none; }
  .burger { display: inline-flex; }
}

/* ==========================================================================
   Cameo (shared oval-frame recipe — hero + artista)
   ========================================================================== */
/* The frame is sized to the oval itself so the two hairline rings (inset -14/-28px)
   stay concentric with it; 56px is reserved so the outer ring never leaves the column. */
.cameo-frame { position: relative; width: min(calc(100% - 56px), 460px); margin-inline: auto; }
.cameo-frame::before,
.cameo-frame::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cameo-frame::before { inset: -14px; border: 1px solid var(--line-gold); }
.cameo-frame::after { inset: -28px; border: 1px solid rgba(201, 162, 74, .15); }
.cameo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
}
.cameo img { width: 100%; height: 100%; object-fit: cover; }
.cameo--emblem { display: flex; align-items: center; justify-content: center; }
.cameo--emblem img { width: 62%; height: auto; object-fit: contain; }
.cameo-ornament {
  position: absolute;
  top: -28px; left: 50%;
  transform: translate(-50%, -50%);
  /* soft round halo instead of a solid square: it still hides the ring behind the
     lozenge, but blends into textured backgrounds like the hero smoke */
  background: radial-gradient(closest-side, var(--cameo-bg, var(--ink)) 55%, transparent);
  border-radius: 50%;
  color: var(--gold);
  padding: 9px;
  line-height: 0;
  z-index: 2;
}
.cameo-caption {
  margin-top: 24px;
  max-width: none; /* the global p max-width left-anchored the box, so the text sat off the oval's axis */
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  padding-block: clamp(96px, 14vw, 200px);
  overflow: hidden;
}
/* Generated tattoo machine (Magnific) behind the whole hero, composed so the grip and
   needle sit in the gap between the copy and the cameo; darkened toward the copy side
   so the headline keeps full contrast. */
.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-backdrop::before {
  content: '';
  position: absolute;
  inset: -4%;
  background: url("../assets/img/hero-machine-1280.webp") 70% center / cover no-repeat;
  background-image: image-set(url("../assets/img/hero-machine-1280.webp") 1x, url("../assets/img/hero-machine-2048.webp") 2x);
  opacity: .85;
  animation: backdropDrift 28s ease-in-out infinite alternate;
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* vignette: the machine stays lit around the cameo, every edge falls to black */
    radial-gradient(ellipse 54% 60% at 68% 54%, transparent 30%, rgba(11, 11, 12, .68) 60%, rgba(11, 11, 12, .95) 84%, var(--ink) 100%),
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 11, 12, .82) 30%, rgba(11, 11, 12, .2) 62%, rgba(11, 11, 12, .35) 100%),
    linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
@keyframes backdropDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}
@media (max-width: 959.98px) {
  /* Stacked layout: copy on top, cameo below — darken the top instead of the left. */
  .hero-backdrop::after {
    background:
      radial-gradient(ellipse 80% 45% at 50% 72%, transparent 25%, rgba(11, 11, 12, .7) 70%, var(--ink) 100%),
      linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 12, .8) 38%, rgba(11, 11, 12, .3) 70%, var(--ink) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-backdrop::before { animation: none; }
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.hero-copy { grid-column: 1 / 8; }
.hero-cameo-col { grid-column: 8 / 13; }
.hero-label { margin-bottom: 28px; color: var(--muted); }
.hero-label .hairline { margin-right: 0; }

.hero-title { color: var(--bone); }
.mask-line { display: block; overflow: hidden; }
.mask-inner { display: block; }
html.js body:not(.is-loaded) .hero-title .mask-inner { transform: translateY(105%); }
body.is-loaded .hero-title .mask-inner {
  transition: transform 1s var(--ease);
}
.hero-title .mask-line:nth-child(2) .mask-inner { transition-delay: .12s; }

.hero-lead { margin-top: 24px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-cameo-col { display: flex; flex-direction: column; align-items: center; }
html.js body:not(.is-loaded) .hero-cameo .cameo { clip-path: inset(50% 0 50% 0 round 50%); }
html.js body:not(.is-loaded) .hero-cameo .cameo img { transform: scale(1.12); }
body.is-loaded .hero-cameo .cameo {
  clip-path: inset(0 round 50%);
  transition: clip-path 1.4s var(--ease);
}
body.is-loaded .hero-cameo .cameo img {
  transition: transform 1.4s var(--ease);
}

.hero-bottom {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.hero-scroll { display: inline-flex; align-items: center; gap: 14px; }
.scroll-rail {
  position: relative;
  width: 1px;
  height: 48px;
  background: var(--line);
  overflow: hidden;
}
.scroll-fill {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollTravel 2.4s ease-in-out infinite;
}
@keyframes scrollTravel {
  0% { top: -40%; }
  100% { top: 100%; }
}

@media (max-width: 959.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-cameo-col { grid-column: 1 / -1; }
  .hero-cameo-col { margin-top: 56px; }
  .cameo-frame { width: min(calc(100% - 56px), 360px); }
}
@media (max-width: 599.98px) {
  .hero-bottom { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 28px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  color: var(--bone);
  white-space: nowrap;
  padding-inline: 24px;
}
.marquee-item--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}
@supports not (-webkit-text-stroke: 1px var(--muted)) {
  .marquee-item--outline { color: var(--faint); -webkit-text-stroke: 0; }
}
.marquee-sep { color: var(--gold); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ==========================================================================
   Obra — portfolio
   ========================================================================== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head-left .label { margin-bottom: 20px; }
.section-head-right { max-width: 34ch; }

.filters { margin-bottom: 48px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.filter {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  border-bottom: 1px solid transparent;
}
.filter:hover { color: var(--bone); }
.filter-count { font-size: .68em; vertical-align: super; }
.filter.is-active { color: var(--gold); border-bottom-color: var(--gold); }

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(14px, 2.2vw, 32px);
  row-gap: clamp(28px, 4vw, 48px);
}
html.js .works {
  grid-auto-rows: 8px;
  row-gap: 0;
  align-items: start;
}
@media (max-width: 1099.98px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plate { transition: opacity .25s var(--ease); }
.plate.is-hiding { opacity: 0; pointer-events: none; }

.plate-media {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  border: 0;
}
.plate-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .9s var(--ease);
}
.plate-media:hover img, .plate-media:focus-visible img { transform: scale(1.045); }
.plate-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 1;
}
.plate-media::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%) scale(.85);
  border-radius: 50%;
  border: 1px solid var(--gold);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1px 16px no-repeat;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.plate-media:hover::after, .plate-media:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.plate figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 14px;
}
.plate-num { font-family: var(--mono); font-size: .7rem; color: var(--gold); }
.plate-title { font-family: var(--serif); font-size: 1.35rem; color: var(--bone); }
.plate-meta {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-left: auto;
}
@media (max-width: 599.98px) {
  .plate-meta { display: none; }
}

/* ==========================================================================
   Proceso
   ========================================================================== */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}
.proceso-media { grid-column: 1 / 6; }
.proceso-copy { grid-column: 7 / 13; }

.arch-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--ink-2);
}
.arch-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line-gold);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-caption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: center;
}

.proceso-copy h2 { margin-top: 12px; margin-bottom: 48px; }
.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 24px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-num {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { margin-bottom: 10px; }
.proceso-copy .btn { margin-top: 48px; }

@media (max-width: 959.98px) {
  .proceso-grid { grid-template-columns: minmax(0, 1fr); }
  .proceso-media, .proceso-copy { grid-column: 1 / -1; }
  .proceso-copy { margin-top: 48px; }
  .arch-frame { max-width: 420px; margin-inline: auto; }
}

/* ==========================================================================
   Artista
   ========================================================================== */
.artista { background: var(--ink-2); }
.artista-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(32px, 5vw, 56px);
}
.artista-media { grid-column: 1 / 6; --cameo-bg: var(--ink-2); }
.artista-copy { grid-column: 7 / 13; }
.artista-copy h2 { margin-top: 12px; margin-bottom: 40px; }

.bio { display: flex; flex-direction: column; gap: 24px; }
.bio p { color: var(--bone); }
.bio-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  max-width: 44ch;
}
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
  color: var(--bone);
  border-left: 1px solid var(--gold);
  padding-left: 28px;
  position: relative;
  max-width: 34ch;
}
.pull-quote::before {
  content: '\201C';
  display: block;
  font-size: 2.5em;
  line-height: .5;
  color: var(--gold);
  margin-bottom: 14px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--bone);
}

.timeline-wrap { margin-top: clamp(64px, 8vw, 120px); }
.timeline-wrap > .label { margin-bottom: 40px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 4px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.timeline-stop { position: relative; padding-top: 28px; }
.dot {
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-stop--now .dot {
  box-shadow: 0 0 0 6px rgba(201, 162, 74, .18);
}
.timeline-stop .place {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bone);
  margin-bottom: 6px;
}
.timeline-stop .detail {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

@media (max-width: 959.98px) {
  .artista-grid { grid-template-columns: minmax(0, 1fr); }
  .artista-media, .artista-copy { grid-column: 1 / -1; }
  .artista-copy { margin-top: 48px; }
  .stats-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-left: 20px;
  }
  .timeline::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .timeline-stop { padding-top: 0; padding-left: 24px; }
  .dot { top: 6px; left: -20px; }
}

/* ==========================================================================
   Reservas
   ========================================================================== */
.reservas {
  position: relative;
  min-height: 90svh;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url("../assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
.reservas-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 12, .78) 45%, var(--ink) 100%);
}
/* The band is a flex row (for vertical centring), so its shell must be told
   to fill the row and allowed to shrink — otherwise it sizes to its content. */
.reservas > .shell { width: 100%; min-width: 0; }
.reservas-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reservas-title { margin-top: 28px; }
.reservas-lead { margin-top: 28px; max-width: 40ch; }
.reservas-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.reservas-info {
  margin-top: clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.info-item { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.info-item .label { color: var(--muted); }
.info-item .value {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--bone);
  text-decoration: none;
}
.info-item a.value:hover, .info-item a.value:focus-visible { color: var(--gold); }

@media (max-width: 759.98px) {
  .reservas-info { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: clamp(64px, 10vw, 140px); padding-bottom: 40px; overflow: hidden; }
.footer-wordmark {
  font-family: var(--serif);
  font-size: 19vw;
  line-height: .8;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: 40px;
  white-space: nowrap;
}
@supports not (-webkit-text-stroke: 1px var(--line)) {
  .footer-wordmark { color: var(--ink-3); -webkit-text-stroke: 0; }
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-row a { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-row a:hover, .footer-row a:focus-visible { color: var(--gold); }

@media (max-width: 768px) {
  .site-footer { padding-bottom: 108px; }
}

/* ==========================================================================
   Mobile sticky CTA
   ========================================================================== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .35s var(--ease);
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta .btn { width: 100%; }

@media (max-width: 768px) {
  .mobile-cta { display: block; }
}

/* ==========================================================================
   Viewer (lightbox)
   ========================================================================== */
.viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: clamp(20px, 4vw, 56px);
  border: 0;
  background: var(--ink);
  color: var(--bone);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.viewer[open] { display: flex; }
.viewer::backdrop { background: var(--ink); }

.viewer-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer-img {
  max-height: min(80svh, 1200px);
  max-height: min(80vh, 1200px);
  max-width: 90vw;
  object-fit: contain;
  opacity: 1;
  transition: opacity .15s var(--ease);
}
.viewer-img.is-fading { opacity: 0; }

.viewer-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
}
.viewer-close:hover, .viewer-close:focus-visible { color: var(--gold); }

.viewer-nav-row { display: contents; }
.viewer-prev, .viewer-next {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  flex: none;
}
.viewer-prev:hover, .viewer-next:hover,
.viewer-prev:focus-visible, .viewer-next:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.viewer-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.viewer-counter {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .1em;
}
.viewer-title { font-family: var(--serif); font-size: 1.8rem; color: var(--bone); }
.viewer-meta {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

@media (min-width: 700px) {
  .viewer-prev { position: absolute; left: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
  .viewer-next { position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
}
@media (max-width: 699.98px) {
  /* Top padding clears the close button; the image leaves room for caption + nav row. */
  .viewer { padding: 72px 20px 24px; gap: 16px; }
  .viewer-img { max-height: calc(100svh - 300px); }
  .viewer-nav-row { display: flex; justify-content: center; gap: 24px; }
}

/* ==========================================================================
   Motion / reveal
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html, html.js body:not(.is-loaded) { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.js .hero-title .mask-inner,
  html.js .hero-cameo .cameo,
  html.js .hero-cameo .cameo img {
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .marquee-track { animation: none !important; }
  .scroll-fill { animation: none !important; }
  .mobile-menu a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * { scroll-behavior: auto !important; }
}
