:root {
  --bg: #050507;
  --fg: #ecebf3;
  --mute: rgba(236, 235, 243, .54);
  --line: rgba(236, 235, 243, .14);
  --display: 'Sora', system-ui, sans-serif;     /* titulos: sans geometrica de peso medio */
  --serif: 'Instrument Serif', 'Times New Roman', serif; /* acentos en italica */
  --sans: 'Geist', system-ui, sans-serif;       /* texto corrido */
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* sin ligaduras: la "tt" de Mivtt se unia en una sola barra. Con !important porque el atajo font: de cada estilo las reactivaba */
*, *::before, *::after { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "clig" 0, "calt" 0 !important; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 300 16px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #ecebf3; color: #050507; }
.mono { font: 400 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- fondo vivo ---------- */
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.no-webgl body { background: radial-gradient(60% 60% at 70% 45%, #2a1d4d 0%, #050507 70%); }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- cabecera ---------- */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); mix-blend-mode: difference; color: #fff; }
.mark { font: 500 19px/1 var(--display); letter-spacing: -.01em; font-kerning: none; }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 38px); align-items: center; font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.top nav a, #lang { position: relative; padding: 5px 0; }
.top nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.top nav a:hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
#lang { border: 1px solid currentColor; border-radius: 99px; padding: 5px 10px; font: inherit; }

main { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; }
.page { padding: clamp(110px, 17vh, 170px) var(--pad) 0; flex: 1; }

/* ---------- cápsula (como la etiqueta de Xylem Rhizome) ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(5, 5, 7, .55); color: #cfe9d6; font-size: 10.5px; letter-spacing: .1em; }

/* ---------- inicio ---------- */
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: clamp(48px, 9vh, 110px); }
.name { line-height: 0; margin-left: -.1rem; }
.name canvas { display: block; max-width: 100%; touch-action: pan-y; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tagline { font: 400 clamp(.95rem, 1.2vw, 1.15rem)/1.4 var(--display); letter-spacing: -.01em; color: rgba(236,235,243,.82); max-width: 62ch; text-wrap: balance; margin-top: 10px; }
.sub { font: 400 clamp(1.05rem, 1.7vw, 1.6rem)/1.3 var(--display); letter-spacing: -.02em; color: rgba(236,235,243,.86); }
.avail { display: flex; align-items: center; gap: 10px; color: var(--mute); margin-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 12px #7dffb0; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.sec-head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-weight: 400; color: var(--mute); }
.sec-head sup { margin-left: 6px; vertical-align: baseline; }
/* galeria: rejilla uniforme, con inclinacion 3D, luz que sigue al cursor y atenuado de las demas */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 22px; padding: clamp(28px, 5vh, 56px) 0 0; perspective: 1500px; }
.card { --c: #fff; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; display: block; opacity: 0; transform: translateY(46px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .5s; }
.card.in { opacity: 1; transform: none; }
.thumb { position: relative; overflow: hidden; background: #0c0c10; aspect-ratio: 1; border-radius: 3px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease), box-shadow .5s; will-change: transform;
  box-shadow: 0 30px 70px -45px color-mix(in srgb, var(--c) 55%, transparent); }
.card.hot .thumb { transition: transform .08s linear, box-shadow .5s; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; }
.thumb video { opacity: 0; }
.thumb video.on { opacity: 1; }
.thumb::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
  background: radial-gradient(240px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 42%, transparent), transparent 65%); }
.meta { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; gap: 3px 10px; padding: 14px 0 0; }
.meta .n, .meta .f { color: var(--mute); }
.meta .t { font: 500 clamp(1.25rem, 1.8vw, 1.7rem)/1.05 var(--display); letter-spacing: -.04em; transition: color .4s; }
.meta .f { grid-column: 2; }

/* ---------- bio ---------- */
.bio-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.bio-main { display: flex; flex-direction: column; gap: 28px; }
.bio-1 { font: 500 clamp(1.55rem, 2.9vw, 2.7rem)/1.18 var(--display); letter-spacing: -.035em; text-wrap: pretty; }
.bio-2 { font: 300 clamp(1.02rem, 1.25vw, 1.2rem)/1.65 var(--sans); max-width: 54ch; color: rgba(236,235,243,.86); }
.bio-3 { font: 300 clamp(1rem, 1.25vw, 1.15rem)/1.6 var(--sans); max-width: 54ch; color: var(--mute); }
.bio-side { display: flex; flex-direction: column; gap: 44px; padding-top: 8px; }
.bio-side h3 { color: var(--mute); font-weight: 400; margin-bottom: 12px; }
.cv li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cv li:last-child { border-bottom: 1px solid var(--line); }
.cv .a { color: var(--mute); font: 400 11.5px/1.7 var(--mono); }
.cv .e { font: 400 1rem/1.3 var(--display); letter-spacing: -.02em; }
.cv .l { display: block; margin-top: 4px; color: var(--mute); font: 300 .92rem/1.3 var(--sans); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.cols li { padding: 4px 0; }

/* ---------- contacto ---------- */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 4vh; }
.mega { font: 500 clamp(1.05rem, 2.3vw, 2.1rem)/1.3 var(--display); letter-spacing: 0; font-kerning: none; display: flex; align-items: baseline; gap: .35em; width: fit-content; max-width: 100%; padding: .08em 0 .14em; overflow: visible; word-break: break-word; transition: color .4s; }
.mega:hover { color: #cfe9ff; }
.mega .arrow { font: 400 .7em/1 var(--display); }
.contact .sub { max-width: 34ch; margin-bottom: 14px; }
.social { display: flex; gap: 14px 26px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; }
.social a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s; }
.social a:hover { border-color: var(--fg); }

.foot { display: flex; justify-content: space-between; gap: 16px; color: var(--mute); border-top: 1px solid var(--line); margin: clamp(60px, 14vh, 150px) var(--pad) 0; padding: 14px 0 22px; }

/* ---------- cursor propio ---------- */
#cursor { position: fixed; z-index: 95; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; mix-blend-mode: difference;
  pointer-events: none; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; will-change: transform; }
#cursor.on { opacity: 1; }
#cursor.big { width: 118px; height: 118px; margin: -59px 0 0 -59px; display: grid; place-items: center; }
#cursor.big::after { content: attr(data-label); color: #000; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
@media (hover: none) { #cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body { cursor: none; } a, button { cursor: none; } }

/* ---------- pagina de obra ---------- */
#obra { --accent: #8b7bff; position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(70% 55% at 72% 38%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), #050507;
  visibility: hidden; opacity: 0; }
#obra.open { visibility: visible; }
.o-bar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--pad);
  background: linear-gradient(rgba(5,5,7,.9), rgba(5,5,7,0)); }
.o-bar .o-arrows { justify-self: end; display: flex; gap: 22px; }
.o-bar a:hover { opacity: .6; }
.o-wrap { display: grid; grid-template-columns: minmax(260px, 30%) 1fr; gap: clamp(24px, 4vw, 72px); padding: 4vh var(--pad) 8vh; align-items: start; }
.o-info { position: sticky; top: 90px; }
.o-info h2 { font: 500 clamp(2.2rem, 4.4vw, 4.4rem)/1 var(--display); letter-spacing: -.045em; margin-bottom: 30px; }
.o-info dl { border-top: 1px solid var(--line); margin-bottom: 26px; }
.o-info dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.o-info dt { color: var(--mute); }
.o-info dd { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.o-info p { font-weight: 300; color: rgba(236,235,243,.82); max-width: 44ch; }
.o-frames { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.o-frames.row { flex-direction: row; gap: 16px; }
.o-fig { --ar: 1; margin: 0; width: min(100%, calc((100svh - 190px) * var(--ar))); }
.o-frames.row .o-fig { width: min(calc(50% - 8px), calc((100svh - 190px) * var(--ar))); }
.o-frame { position: relative; width: 100%; aspect-ratio: var(--ar); background: #000; overflow: hidden; border-radius: 2px; }
.o-fig figcaption { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; color: var(--mute); }
.o-fig .fs:hover { color: var(--fg); }
.o-info .sub { margin: -18px 0 28px; color: var(--mute); }
.o-link { display: inline-block; margin-top: 22px; padding-bottom: 2px; border-bottom: 1px solid var(--line); color: var(--mute); transition: .3s; }
.o-link:hover { color: var(--fg); border-color: var(--fg); }
.o-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.o-ctrl { display: flex; gap: 22px; padding-top: 14px; color: var(--mute); }
.o-ctrl button:hover { color: var(--fg); }
.o-nextbig { display: block; padding: 10vh var(--pad) 12vh; border-top: 1px solid var(--line); }
.o-nextbig .mono { color: var(--mute); }
.o-nexttitle { display: block; font: 500 clamp(2.6rem, 9vw, 9rem)/.95 var(--display); letter-spacing: -.05em; margin-top: 14px; transition: letter-spacing .6s var(--ease); }
.o-nextbig:hover .o-nexttitle { letter-spacing: -.03em; }

/* ---------- movil ---------- */
@media (max-width: 800px) {
  .bio-grid { grid-template-columns: 1fr; }
  .o-wrap { grid-template-columns: 1fr; }
  .o-info { position: static; }
  .o-fig { width: 100%; }
  .o-frames.row .o-fig { width: calc(50% - 8px); }
  .top nav { gap: 12px; font-size: 10.5px; }
  .foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .dot { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- stills ---------- */
.o-stills { margin-top: 56px; }
.o-stills h3 { color: var(--mute); font-weight: 400; margin-bottom: 14px; }
.stills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.still { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; background: #0c0c10; border-radius: 2px; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.still:hover img { transform: scale(1.07); }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(3, 3, 5, .96); }
.lightbox img { max-width: min(92vw, 1500px); max-height: 86svh; object-fit: contain; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.lb-btn { position: absolute; padding: 18px; color: var(--fg); font-size: 18px; transition: opacity .3s; }
.lb-btn:hover { opacity: .55; }
.lb-close { top: 8px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
#lb-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--mute); }

/* celular: sin cursor propio */
html.touch-ui #cursor { display: none; }
html.touch-ui body, html.touch-ui a, html.touch-ui button { cursor: auto; }

/* nombre real debajo del nombre artistico */
.realname { font: 500 clamp(1.7rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -.02em; font-kerning: none; color: var(--fg); margin: -6px 0 8px 0; }

/* hueco entre las dos t de "mivtt": las barras de la fuente se unian en una sola */
i.tt { display: inline-block; width: .04em; font-style: normal; }

.home-social { margin-top: 4px; font-size: 12px; }

.mega i.tt { width: .06em; }

/* foto: blanco y negro; al pasar el cursor una luz duotono lila la revela y la foto se inclina */
.portrait { margin: 0 0 4px; width: min(100%, 300px); perspective: 900px; --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --o: 0; }
.p-tilt { position: relative; aspect-ratio: 828 / 1080; border-radius: 2px; overflow: hidden; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); background: #0c0c10; }
.portrait.hot .p-tilt { transition: transform .08s linear; }
.p-tilt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-duo { opacity: var(--o); transition: opacity .4s;
  -webkit-mask-image: radial-gradient(circle 140px at var(--mx) var(--my), #000 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(circle 140px at var(--mx) var(--my), #000 0%, #000 55%, transparent 100%); }
.p-tilt::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--o); transition: opacity .4s;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(255,160,235,.22), transparent 70%); mix-blend-mode: screen; }

/* inicio: rol */
.role { font: 500 clamp(1.05rem, 1.7vw, 1.5rem)/1.2 var(--display); letter-spacing: -.01em; color: var(--fg); margin-top: 14px; }
.role + .tagline { margin-top: 2px; color: var(--mute); }

/* foto mas pequena */
.portrait { width: min(100%, 210px); }

/* celular: el resaltado de la tarjeta se enciende apenas entra, sin esperar */
.card.lit .thumb { box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.card.lit .meta .t { color: var(--c); }
.card.lit .thumb::after { opacity: 1; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--c) 26%, transparent), transparent 75%); }
.card .thumb::after, .card .meta .t, .card .thumb { transition-duration: .25s; }

@media (max-width: 800px) {
  .portrait { float: right; width: 116px; margin: 4px 0 8px 16px; }
  .bio-main .pill { margin-bottom: 14px; }
  .bio-1 { font-size: clamp(1.15rem, 5.2vw, 1.5rem); }
  .bio-main { display: block; }
  .bio-main > * { margin-bottom: 18px; }
  .bio-main > .pill { display: flex; }
  .bio-2, .bio-3 { clear: both; }
}

/* hover solo con mouse: en celular el :hover se queda pegado tras tocar y atenuaba las demas tarjetas */
@media (hover: hover) {
  .gallery:hover .card.in:not(:hover) { opacity: .32; filter: blur(1.5px) saturate(.6); }
  .card:hover .thumb { box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c) 70%, transparent); }
  .card:hover .thumb img, .card:hover .thumb video { transform: scale(1.07); }
  .card:hover .thumb::after { opacity: 1; }
  .card:hover .meta .t { color: var(--c); }
}
/* celular: la tarjeta activa (la que esta al centro) se enciende al instante con el poster; el video entra encima */
@media (hover: none) {
  .card { transition: opacity .3s var(--ease), transform .5s var(--ease); }
  .card .thumb { transition: box-shadow .3s; }
  .thumb video { transition: opacity .25s; }
}
