:root {
  --paper: #ece6d9;
  --paper-2: #e2dac9;
  --ink: #16130f;
  --accent: #a8342a;
  --accent-light: #e0543f;
  --text-2: #413c34;
  --text-3: #5c564b;
  --text-4: #6b6559;
  --on-ink-2: #c7bfae;
  --on-ink-3: #9c9384;
  --on-ink-line: #4a4338;
  --line: rgba(22,19,15,.16);
  --ease: cubic-bezier(.16,1,.3,1);
  --pad: 36px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Spectral', Georgia, serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
input, textarea, button { font-family: 'Spectral', Georgia, serif; }
.display { font-family: 'Archivo Black', sans-serif; font-weight: 400; text-transform: uppercase; }
.label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-4); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes riseIn { from { transform: translateY(112%) skewY(5deg); opacity: 0 } to { transform: translateY(0) skewY(0); opacity: 1 } }
@keyframes fadeUp { from { transform: translateY(22px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes lineGrow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes unmask { from { clip-path: inset(0 0 100% 0) } to { clip-path: inset(0 0 0 0) } }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(10px) } }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,1%)} 50%{transform:translate(1%,-2%)} 75%{transform:translate(-1%,-1%)} 100%{transform:translate(0,0)} }
@keyframes curtainUp { 0%,58% { transform: translateY(0) } 100% { transform: translateY(-101%) } }
@keyframes curtainType { 0% { transform: translateY(40px) scale(.94); opacity: 0 } 26% { transform: translateY(0) scale(1); opacity: 1 } 58% { transform: translateY(0) scale(1); opacity: 1 } 78% { transform: translateY(-30px); opacity: 0 } 100% { opacity: 0 } }
@keyframes curtainBar { 0% { transform: scaleX(0) } 55% { transform: scaleX(1) } 100% { transform: scaleX(1) } }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes lbArt { from { opacity: 0; transform: translateY(26px) scale(.94) } to { opacity: 1; transform: none } }
@keyframes lbMeta { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* Capas globales */
.grain { position: fixed; inset: -10%; z-index: 70; pointer-events: none; opacity: .16; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); animation: grain 1.4s steps(2) infinite; }
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--ink); display: grid; place-items: center; animation: curtainUp 2.05s .15s cubic-bezier(.76,0,.24,1) forwards; }
.curtain__inner { text-align: center; padding: 0 16px; animation: curtainType 2.05s .15s cubic-bezier(.76,0,.24,1) forwards; }
.curtain__name { font-size: clamp(38px,8vw,120px); line-height: .9; color: var(--paper); letter-spacing: -.03em; }
.curtain__bar { height: 3px; margin: 18px auto 0; width: min(62vw,520px); background: var(--accent); transform-origin: left; animation: curtainBar 2.05s .15s cubic-bezier(.76,0,.24,1) forwards; }
.curtain__sub { margin-top: 16px; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--on-ink-3); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: rgba(22,19,15,.08); }
.progress__bar { height: 100%; width: 0; background: var(--accent); }
.ring { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 78; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .3s; }
.ring__inner { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid var(--accent); border-radius: 50%; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-width .3s; }
.ring.is-over .ring__inner { transform: scale(2.6); border-width: 1px; }

main, .site { position: relative; z-index: 2; }

/* Nav */
.nav { position: fixed; top: 3px; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); background: rgba(236,230,217,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(22,19,15,.1); }
.nav__brand { font-size: 15px; letter-spacing: .06em; }
.nav__links { display: flex; gap: 26px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.nav__toggle { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100vh; padding: 132px var(--pad) 40px; overflow: hidden; }
.halftone { position: absolute; top: -60px; right: -80px; width: 520px; height: 520px; pointer-events: none; opacity: .22; background-image: radial-gradient(var(--ink) 1.6px, transparent 1.7px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 68%); mask-image: radial-gradient(circle at 60% 40%, #000, transparent 68%); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 44px; align-items: end; min-height: calc(100vh - 200px); }
.hero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; animation: fadeUp .8s .1s both; }
.hero__kicker i { display: block; width: 52px; height: 2px; background: var(--accent); transform-origin: left; animation: lineGrow .9s .25s both; }
.hero__kicker span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-3); }
.hero h1 { margin: 0; font-size: clamp(52px,9.4vw,158px); line-height: .84; letter-spacing: -.03em; }
.hero h1 > span { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; }
.hero h1 > span > span { display: inline-block; animation: riseIn 1.05s .12s var(--ease) both; }
.hero h1 > span + span > span { color: var(--accent); animation-delay: .26s; }
.hero__lead { max-width: 40ch; margin: 32px 0 0; font-size: 19px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; animation: fadeUp 1s .55s both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: fadeUp 1s .7s both; }
.btn { display: inline-block; padding: 15px 28px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: transform .3s, background .3s, border-color .3s, color .3s; border: 0; cursor: pointer; }
.btn:hover { transform: translate(-3px,-3px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); color: var(--paper); }
.btn--line { border: 2px solid var(--ink); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.hero__art { position: relative; min-width: 0; animation: unmask 1.3s .3s var(--ease) both; }
.hero__frame { position: relative; height: min(74vh,720px); border: 1px solid var(--line); box-shadow: 18px 18px 0 rgba(22,19,15,.1); background: var(--paper-2); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag { position: absolute; left: -16px; bottom: -16px; padding: 9px 15px; background: var(--paper); border: 1px solid rgba(22,19,15,.2); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }
.hero__scroll { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-4); animation: bob 2.4s infinite; }

/* Marquesina */
.marquee { display: flex; overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; white-space: nowrap; background: var(--ink); }
.marquee__track { display: flex; gap: 38px; padding-right: 38px; animation: marquee 24s linear infinite; font-size: 26px; color: var(--paper); letter-spacing: .02em; }
.marquee__track b { color: var(--accent); font-weight: 400; }

/* Secciones */
.section { padding: 0 var(--pad) 100px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.section__head h2 { margin: 0; font-size: clamp(30px,4.6vw,66px); line-height: .9; letter-spacing: -.02em; }

/* Obra */
.obra { padding: 110px var(--pad) 30px; }
.obra .section__head { margin-bottom: 48px; }
.obra .section__head h2 { font-size: clamp(34px,5.4vw,78px); }
.gallery { display: grid; grid-template-columns: repeat(12,1fr); gap: 26px; }
.piece { margin: 0; cursor: pointer; transition: transform .5s var(--ease); }
.piece__frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.piece__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.piece:hover .piece__frame img { transform: scale(1.07); }
.piece:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.piece figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }

/* Banda outline */
.outline { overflow: hidden; padding: 26px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; margin-top: 80px; }
.outline__track { display: flex; gap: 44px; font-size: clamp(60px,11vw,168px); line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(22,19,15,.55); letter-spacing: -.02em; will-change: transform; }
.outline__track span:nth-child(even) { -webkit-text-stroke: 2px var(--accent); }

/* Bloque a sangre */
.bleed { position: relative; height: 76vh; overflow: hidden; border-bottom: 2px solid var(--ink); }
.bleed__art { position: absolute; inset: -14% 0; will-change: transform; }
.bleed__art img { width: 100%; height: 100%; object-fit: cover; }
.bleed__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(22,19,15,.72), rgba(22,19,15,.12) 62%); }
.bleed__text { position: absolute; left: var(--pad); bottom: 44px; right: var(--pad); pointer-events: none; will-change: transform; }
.bleed__text span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #d8cfbd; }
.bleed__text h2 { margin: 14px 0 0; max-width: 20ch; font-size: clamp(34px,6.4vw,104px); line-height: .9; color: var(--paper); letter-spacing: -.03em; }
.bleed__text h2 em { font-style: normal; color: var(--accent-light); }

/* Sobre */
.sobre { padding: 100px var(--pad); }
.sobre__grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 56px; align-items: center; border-top: 2px solid var(--ink); padding-top: 70px; }
.sobre__portrait { position: relative; height: 480px; border: 1px solid var(--line); box-shadow: -16px 16px 0 rgba(168,52,42,.16); background: var(--paper-2); overflow: hidden; }
.sobre__portrait img { width: 100%; height: 100%; object-fit: cover; }
.sobre__quote { margin: 22px 0 0; font-size: clamp(24px,3.1vw,42px); line-height: 1.14; letter-spacing: -.02em; text-wrap: pretty; }
.sobre__text { margin: 26px 0 0; max-width: 54ch; font-size: 18px; line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips span { padding: 8px 14px; border: 1px solid rgba(22,19,15,.25); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* Encuentros */
.enc__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; }
.enc__poster { position: relative; height: 600px; border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.enc__poster img { width: 100%; height: 100%; object-fit: cover; }
.timeline__item { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid rgba(22,19,15,.2); }
.timeline__item > span { font-size: 13px; color: var(--accent); }
.timeline__item h3 { margin: 0 0 6px; font-size: 19px; }
.timeline__item p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* Instagram */
.redes .section__head { margin-bottom: 36px; }
.ig-link { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.ig { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ig a { position: relative; min-width: 0; overflow: hidden; height: 250px; border: 1px solid var(--line); background: var(--paper-2); transition: transform .4s; }
.ig a:hover { transform: translateY(-6px); }
.ig img { width: 100%; height: 100%; object-fit: cover; }

/* Contacto */
.contacto { padding: 0 var(--pad) 90px; }
.contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: start; background: var(--ink); color: var(--paper); padding: 60px 48px; }
.contact .label { color: var(--on-ink-3); }
.contact h2 { margin: 20px 0 0; font-size: clamp(34px,5vw,72px); line-height: .92; letter-spacing: -.02em; }
.contact__text { margin: 24px 0 0; max-width: 38ch; font-size: 17px; line-height: 1.7; color: var(--on-ink-2); }
.contact__links { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.contact__links a { color: var(--paper); }
.contact__links a:hover { color: var(--accent-light); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-ink-3); }
.form input, .form textarea { padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--on-ink-line); border-radius: 0; color: var(--paper); font-size: 17px; outline: none; transition: border-color .3s; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form input::placeholder, .form textarea::placeholder { color: #6e665a; }
.form .hp { position: absolute; left: -9999px; }
.form button { align-self: flex-start; margin-top: 6px; padding: 15px 30px; background: var(--accent); color: var(--paper); }
.form button:hover { background: var(--paper); color: var(--ink); }
.form button:disabled { opacity: .7; cursor: default; transform: none; }
.form__status { margin: 0; font-size: 14px; color: var(--on-ink-2); min-height: 1.4em; }

/* Footer */
.footer { padding: 0 var(--pad) 40px; }
.footer div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(22,19,15,.2); padding-top: 22px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-4); }

/* Visor */
.lb { position: fixed; inset: 0; z-index: 95; background: rgba(14,12,10,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; animation: lbIn .35s ease both; }
.lb.is-open { display: grid; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; height: 100%; overflow: hidden; }
.lb__img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; border: 1px solid rgba(236,230,217,.18); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lbArt .55s var(--ease) both; }
.lb__btn { position: absolute; width: 52px; height: 52px; background: transparent; border: 1px solid rgba(236,230,217,.35); color: var(--paper); font-size: 20px; cursor: pointer; transition: background .3s, border-color .3s; }
.lb__btn:hover { background: var(--accent); border-color: var(--accent); }
.lb__prev { left: 16px; top: 50%; margin-top: -26px; }
.lb__next { right: 16px; top: 50%; margin-top: -26px; }
.lb__close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 18px; }
.lb__meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 72px 40px; animation: lbMeta .5s .1s var(--ease) both; }
.lb__count { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #a8a093; }
.lb__title { margin: 12px 0 0; font-size: clamp(24px,3.4vw,52px); line-height: .94; color: var(--paper); letter-spacing: -.02em; }
.lb__tech { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-2); }

/* Responsive */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery .piece { grid-column: span 1 !important; }
  .gallery .piece:last-child { grid-column: span 2 !important; }
  .piece__frame { height: 460px !important; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid rgba(22,19,15,.1); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .nav__links a { padding: 16px var(--pad); border-top: 1px solid rgba(22,19,15,.08); }
  .nav.is-open .nav__links { max-height: 400px; }
  .hero { padding-top: 110px; }
  .hero__grid, .sobre__grid, .enc__grid, .contact { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; gap: 56px; }
  .hero__frame { height: 70vh; }
  .halftone { width: 340px; height: 340px; }
  .obra { padding-top: 80px; }
  .sobre { padding: 80px var(--pad); }
  .sobre__grid { padding-top: 50px; gap: 44px; }
  .enc__poster { height: auto; aspect-ratio: 3 / 4; }
  .ig { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ig a { height: 200px; }
  .contact { padding: 44px 24px; gap: 44px; }
  .lb__stage { padding: 64px 12px 12px; }
  .lb__meta { padding: 16px 20px 28px; }
  .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; }
  .lb__img { max-height: calc(100vh - 260px); }
  .ring { display: none; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; gap: 34px; }
  .gallery .piece, .gallery .piece:last-child { grid-column: span 1 !important; }
  .piece__frame { height: auto !important; aspect-ratio: 4 / 5; }
  .piece figcaption { flex-direction: column; gap: 4px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bleed { height: 64vh; }
}
@media (hover: none) { .ring { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .curtain { display: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}
