/* ==========================================================================
   AP Studio — Portfolio · v2 (cinematic)
   1. Tokens  2. Base  3. Utilities  4. Gate  5. Stage  6. Topbar + dock
   7. Cine hero  8. Statement  9. Works wall + case  10. Glass services
   11. Orbit  12. Timeline  13. Content  14. Contact  15. Footer  16. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #08080a;
  --bg-2: #0e0e11;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1eee9;
  --muted: #a19d97;
  --dim: #6c6964;
  --accent: #ff6a2b;      /* luz cálida */
  --accent-2: #4f7dff;    /* luz fría */
  --accent-ink: #120804;
  --warn: #ffb547;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:not(.no-js):not(.is-entered) body { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.warn { color: var(--warn); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block; animation: pulse 2.4s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.tag { display: inline-flex; align-items: center; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--f-body); padding: 16px 24px; border-radius: 99px; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; will-change: transform; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255,106,43,.6); }
.btn--solid:hover { background: #ff8550; box-shadow: 0 14px 40px -10px rgba(255,106,43,.8); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: var(--text); background: rgba(8,8,10,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal-fallback .reveal { opacity: 1; transform: none; }

.section { padding: clamp(84px, 10vw, 140px) 0; position: relative; }   /* v7: tighter rhythm between sections */
.section__head { max-width: 660px; margin-bottom: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.section__head--right { margin-left: auto; }
.section__index { color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.section__index::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section__title { font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.04em; }
.section__title .serif { letter-spacing: -.02em; }
.section__lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 36em; }

/* 4. (The entry gate was removed in v7: visitors land straight on the hero.) */

/* 5. Stage ----------------------------------------------------------------- */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .055; 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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
main, .footer { position: relative; z-index: 2; }

.ol { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; will-change: transform, opacity; }
.ol small { font-size: 9px; color: var(--dim); letter-spacing: .1em; }
.ol b { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.ol b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* 6. Topbar + dock --------------------------------------------------------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 18px var(--pad); transition: transform .5s var(--ease), background .4s; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 12px); z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: linear-gradient(rgba(8,8,10,.95) 0%, rgba(8,8,10,.88) 62%, rgba(8,8,10,0) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(#000 0 66%, transparent); mask-image: linear-gradient(#000 0 66%, transparent); }
.topbar.is-solid::before { opacity: 1; }   /* a soft dark veil under the fixed header, so nothing scrolling by fights the logo or the menu */
.topbar__brand { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--f-display); letter-spacing: .08em; margin-right: auto; }
.topbar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.topbar__status { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 1280px) { .topbar__status { display: none; } }

.dock { position: fixed; left: 50%; bottom: 18px; z-index: 55; transform: translate(-50%, 140%); display: flex; gap: 4px; padding: 7px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(16,15,18,.7); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: transform .9s var(--ease) .3s; }
.is-entered .dock, .no-js .dock { transform: translate(-50%, 0); }
.dock a { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--muted); transition: background .25s, color .25s, transform .3s var(--ease); }
.dock a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dock a span { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; border-radius: 8px; background: var(--text); color: var(--bg); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.dock a:hover { color: var(--text); background: rgba(255,255,255,.07); transform: translateY(-3px); }
.dock a:hover span { opacity: 1; transform: translate(-50%, 0); }
.dock a.is-active { color: var(--text); background: rgba(255,255,255,.1); }
.dock a.is-active::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.dock__cta { color: var(--accent) !important; }

/* 7. Cine hero ------------------------------------------------------------- */
.cine { height: 340vh; position: relative; z-index: 2; }
.cine__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine__media { position: absolute; inset: 0; --p: 0; --warm: 1; --s: 1; --py: 0px; --mx: 0; --my: 0; }
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; --p: 0; --warm: 1; --mx: 0; --my: 0; }
.no-js .backdrop { position: absolute; height: 100vh; }
.cine__bg { position: absolute; inset: -5%; background:
  radial-gradient(60% 75% at 82% 40%, rgba(60,100,255,.22), transparent 70%),
  radial-gradient(45% 55% at 50% 100%, rgba(255,80,30,.15), transparent 70%),
  #07060a; transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); }
.cine__bg::before, .cine__bg::after { content: ""; position: absolute; inset: 0; }
.cine__bg::before { background: radial-gradient(60% 75% at 18% 60%, rgba(255,92,30,.42), transparent 70%); opacity: var(--warm); }
.cine__bg::after { background: radial-gradient(60% 75% at 82% 40%, rgba(60,100,255,.3), transparent 70%); opacity: calc(1 - var(--warm)); }
.cine__haze { position: absolute; inset: 0; opacity: .55; }
.cine__haze i { position: absolute; margin: -60px; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.cine__haze i:nth-child(1) { width: calc(40vw + 120px); height: calc(40vw + 120px); left: 0; top: 30%; background: radial-gradient(closest-side, rgba(255,90,30,.35) 30%, rgba(255,90,30,0.252) 55%, rgba(255,90,30,0.112) 75%, rgba(255,90,30,0.028) 90%, rgba(255,90,30,0)); }
.cine__haze i:nth-child(2) { width: calc(36vw + 120px); height: calc(36vw + 120px); right: 0; top: 5%; background: radial-gradient(closest-side, rgba(70,110,255,.35) 30%, rgba(70,110,255,0.252) 55%, rgba(70,110,255,0.112) 75%, rgba(70,110,255,0.028) 90%, rgba(70,110,255,0)); animation-duration: 22s; animation-delay: -6s; }
.cine__haze i:nth-child(3) { width: calc(30vw + 120px); height: calc(30vw + 120px); left: 35%; bottom: -10%; background: radial-gradient(closest-side, rgba(255,140,80,.2) 30%, rgba(255,140,80,0.144) 55%, rgba(255,140,80,0.064) 75%, rgba(255,140,80,0.016) 90%, rgba(255,140,80,0)); animation-duration: 26s; }
@keyframes drift { to { transform: translate(6vw, -4vh) scale(1.15); } }

.cine__brand { position: absolute; left: 50%; top: 44%; transform: translate(calc(-50% + var(--p) * -14vw + var(--mx) * -20px), -50%) scale(calc(1.08 - .08 * var(--e, 1))); }
.cine__bigname { font: 700 clamp(80px, 17vw, 300px)/.85 var(--f-display); letter-spacing: -.035em; white-space: nowrap; color: transparent; background: linear-gradient(90deg, rgba(255,120,60,.9), rgba(255,255,255,.75) 50%, rgba(90,130,255,.9)); -webkit-background-clip: text; background-clip: text; opacity: calc((.2 - min(var(--p) * .5, .1)) * var(--e, 1)); }
.cine__est { position: absolute; right: .3em; top: 100%; margin-top: clamp(10px, 1.4vw, 22px); font: 500 clamp(11px, 1vw, 15px)/1 var(--f-mono); letter-spacing: .42em; text-transform: uppercase; color: rgba(241,238,233,.62); white-space: nowrap; opacity: calc(var(--est, 1) * (1 - min(var(--p) * 2.2, .85))); }
.cine__est::before { content: ""; display: inline-block; width: 2.4em; height: 1px; margin-right: 1em; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--accent)); }
/* Entrada: AP STUDIO aparece letra a letra, brilla un momento y se queda de fondo */
.cine__bigname.is-split { background: none; opacity: calc(.2 - min(var(--p) * .5, .1) + .3 * var(--lift, 0)); }
.cine__bigname .w { display: inline-block; white-space: nowrap; }
.cine__bigname .ch { display: inline-block; background-image: var(--g); background-size: var(--gw) 100%; background-position: var(--gx) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: .1em .06em; margin: -.1em -.06em;
  opacity: 0; transform: translate3d(0, .16em, 0) scale(.92); filter: blur(16px);
  transition: opacity 1.1s var(--ease), transform 1.5s var(--ease), filter 1.2s var(--ease); transition-delay: calc(400ms + var(--i) * 130ms); }
.cine__bigname.is-in .ch { opacity: 1; transform: none; filter: blur(0); }

.cine__person { position: absolute; left: 50%; bottom: 0; height: min(94vh, 118vw); aspect-ratio: 1; transform: translate(calc(-50% + var(--mx) * 14px), calc(var(--py) + var(--my) * 6px)) scale(var(--s)); transform-origin: 50% 85%; }
.cine__person { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); }
.cine__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.cine__img--cool { opacity: calc(1 - var(--warm)); }
.cine__img--rim { mix-blend-mode: screen; opacity: .9; }
.cine__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0,0,0,.55)), linear-gradient(to top, rgba(8,8,10,.9), transparent 30%); }

.cine__phase { position: absolute; z-index: 3; will-change: opacity, transform; }
.cine__phase--a { left: var(--pad); bottom: clamp(40px, 9vh, 110px); max-width: min(720px, 90vw); display: grid; gap: 18px; }
.cine__phase--b { right: var(--pad); top: 50%; transform: translateY(-50%); max-width: 440px; text-align: right; display: grid; gap: 18px; justify-items: end; }
.cine__phase--c { left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 520px; display: grid; gap: 26px; }
.cine__kicker { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.cine__title { font-size: clamp(44px, 6.4vw, 104px); line-height: .95; letter-spacing: -.05em; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cine__title .serif { font-size: .72em; letter-spacing: -.02em; color: #ffd9c7; }
.cine__h2 { font-size: clamp(38px, 4.8vw, 76px); line-height: .98; letter-spacing: -.045em; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cine__phase--b .serif { color: #c9d6ff; }
.cine__phase--c .serif { color: #ffd9c7; }
.cine__phase p:not(.cine__kicker) { color: rgba(241,238,233,.78); font-size: 17px; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.cine__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cine__scroll { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(40px, 9vh, 110px); color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.cine__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--text), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.no-js .cine__phase--b, .no-js .cine__phase--c { display: none; }
.no-js .cine { height: 100vh; }

/* 8. Statement ------------------------------------------------------------- */
.statement { position: relative; z-index: 2; padding: clamp(84px, 12vh, 150px) 0 clamp(70px, 10vh, 120px); }
.statement__kicker { color: var(--dim); text-align: center; margin-bottom: 36px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.statement__kicker::before, .statement__kicker::after { content: ""; width: 40px; height: 1px; background: var(--line-2); }
.statement__text { font: 500 clamp(32px, 4.6vw, 72px)/1.08 var(--f-display); letter-spacing: -.04em; text-align: center; max-width: 18em; margin: 0 auto; text-wrap: balance; }
.statement__text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--muted); }
.statement__text .w { opacity: .14; transition: opacity .35s linear; }
.statement__text .w.is-lit { opacity: 1; }
.no-js .statement__text .w { opacity: 1; }
.statement__text--big { font-size: clamp(64px, 13vw, 220px); line-height: .92; letter-spacing: -.055em; max-width: none; white-space: nowrap; }
.statement__text--big em { letter-spacing: -.03em; padding-right: .06em; }
.statement__text--big .w { opacity: .1; transition: opacity .45s linear; }
.statement__text--big .w.is-lit { opacity: 1; }

/* 9. Works wall + case ----------------------------------------------------- */
.works { position: relative; z-index: 2; padding-bottom: 0; }
.works__pin { height: 240vh; position: relative; }
.works__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: 90px; }
.works__sticky::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 230px; background: linear-gradient(var(--bg) 55%, transparent); pointer-events: none; z-index: 1; }
.works__head { padding: 0 var(--pad); max-width: var(--wrap); width: 100%; margin: 0 auto; display: grid; gap: 14px; position: relative; z-index: 2; }
.wall-wrap { perspective: 1600px; perspective-origin: 50% 20%; display: grid; place-items: center; overflow: visible; }
.wall { --rx: 38deg; --rz: -14deg; --sc: .82; --cy: 0px; width: min(1080px, 76vw); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); transform: rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--sc)); transform-style: preserve-3d; will-change: transform; }
.wall__col { display: grid; gap: clamp(16px, 2vw, 28px); transform: translateY(var(--cy)); will-change: transform; }
.wall__col[data-wall-col="1"] { transform: translateY(calc(var(--cy) * -1 + 60px)); }
.wcard { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #111015; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); transition: border-color .3s, transform .5s var(--ease); }
a.wcard:hover, .wcard:hover { border-color: rgba(255,255,255,.35); transform: translateZ(20px); }
.wcard__art { aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; overflow: hidden; }
.wcard--qr .wcard__art { background: radial-gradient(circle at 30% 30%, rgba(255,106,43,.35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(79,125,255,.3), transparent 55%), #0c0b10; }
.wcard--qr .qr3d { width: 36%; margin-bottom: 16%; }
.wcard--portfolio .wcard__art { background: radial-gradient(circle at 70% 40%, rgba(255,106,43,.28), transparent 55%), #0e0d12; }
.wcard__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(8,8,10,.92)); display: grid; gap: 6px; }
.wcard__info .mono { color: var(--muted); font-size: 10px; }
.wcard__info { padding: 56px 26px 24px; }
.wcard__info .mono { font-size: 11px; }
.wcard__info h3 { font-size: clamp(24px, 2.6vw, 36px); }

.qr3d { aspect-ratio: 1; width: 100%; display: grid; grid-template-columns: repeat(21, 1fr); gap: 1.5px; transform: rotateX(28deg) rotateZ(-18deg); animation: qrfloat 7s ease-in-out infinite; }
.qr3d i { aspect-ratio: 1; border-radius: 1.5px; }
.qr3d i.on { background: var(--text); box-shadow: 1.5px 2.5px 0 #8a3a17, 3px 5px 0 rgba(255,106,43,.35); }
@keyframes qrfloat { 0%, 100% { transform: rotateX(28deg) rotateZ(-18deg) translateY(0); } 50% { transform: rotateX(22deg) rotateZ(-12deg) translateY(-8px); } }

.mini-site { width: 74%; height: 70%; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); padding: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.mini-site--light, .mini-site--split { background: rgba(255,255,255,.72); border-color: rgba(0,0,0,.06); }
.mini-site--split { flex-direction: row; }
.mini-site__mono { width: 22px; height: 22px; border-radius: 6px; background: var(--text); color: var(--bg); font: 600 9px/22px var(--f-display); text-align: center; }
.mini-site__line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.4); }
.mini-site__line.dark, .mini-site--split .mini-site__line { background: rgba(0,0,0,.25); }
.w40 { width: 40%; } .w50 { width: 50%; } .w70 { width: 70%; }
.mini-site__orb { position: absolute; right: -14px; bottom: -14px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd0b8, var(--accent) 45%, #3a1a8a 100%); box-shadow: 0 0 40px rgba(255,106,43,.45); }
.mini-site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.mini-site__grid i { aspect-ratio: 1; border-radius: 5px; background: linear-gradient(135deg, #c98a4b, #8a4d22); }
.mini-site__block { width: 42%; border-radius: 6px; background: linear-gradient(160deg, #6f9bc4, #2f5b86); }
.mini-site__col { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; padding-left: 10px; }
.mini-site__pill { width: 50%; height: 14px; border-radius: 99px; background: #2f5b86; margin-top: 6px; }

.case { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background-color: rgba(16,15,19,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.case--featured { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; scroll-margin-top: 90px; }
.case__media { padding: clamp(20px, 3vw, 40px); background: radial-gradient(600px 400px at 30% 30%, rgba(255,106,43,.1), transparent 70%), radial-gradient(500px 300px at 90% 90%, rgba(79,125,255,.1), transparent 70%), #0d0c10; border-right: 1px solid var(--line); display: grid; place-items: center; perspective: 1000px; }
.browser { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: #0b0a0e; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: rotateX(8deg) rotateY(-10deg); transition: transform 1s var(--ease); }
.case--featured:hover .browser { transform: rotateX(2deg) rotateY(-3deg); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser__url { margin-left: 12px; color: var(--dim); font-size: 11px; text-transform: none; }
a.browser { display: block; color: inherit; }
.browser__body--shot { line-height: 0; background: #0b0a0e; }
.browser__body--shot img { display: block; width: 100%; height: auto; }
.browser__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.browser__body--qr { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; padding: clamp(18px, 3vw, 32px); min-height: 280px; }
.qr-ui { display: grid; gap: 10px; }
.qr-ui__label { color: var(--dim); font-size: 10px; }
.qr-ui__input { font-size: 13px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-ui__btn { font-size: 13px; font-weight: 600; padding: 11px 12px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-align: center; }
.case__body { padding: clamp(28px, 4vw, 52px); display: grid; gap: 20px; align-content: center; justify-items: start; }
.case__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--dim); }
.case__title { font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -.04em; line-height: 1; }
.case__desc { color: var(--muted); }
.case__facts { margin: 0; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.case__facts dt { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 6px; }
.case__facts dd { margin: 0; font-size: 15px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.inline-cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(8,8,10,.6); backdrop-filter: blur(6px); }
.inline-cta p { font: 500 clamp(18px, 1.8vw, 24px)/1.3 var(--f-display); max-width: 30em; }
.inline-cta .serif { color: var(--muted); }

/* 10. Glass services ------------------------------------------------------- */
.glass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.glass { --mx: 50%; --my: 0%; position: relative; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); background-color: rgba(14,13,17,.6); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); display: grid; gap: 14px; align-content: start; overflow: hidden; transition: border-color .3s, opacity 1s var(--ease), transform 1s var(--ease); }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,106,43,.14), transparent 60%); opacity: 0; transition: opacity .4s; }
.glass:hover { border-color: var(--line-2); }
.glass:hover::before { opacity: 1; }
.glass__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.glass__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.glass h3 { font-size: clamp(22px, 2vw, 28px); }
.glass p { color: var(--muted); font-size: 15px; max-width: 34em; }
.glass ul { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.glass li { font-size: 13px; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.05); color: var(--text); }
.mini-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.mini-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.mini-steps b { font: 500 12px/1.9 var(--f-mono); color: var(--accent); }
.pills { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pills span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(14,13,17,.7); backdrop-filter: blur(8px); transition: border-color .3s, transform .3s var(--ease); }
.pills span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.pills span:nth-child(2n)::before { background: var(--accent); }
.pills span:hover { border-color: var(--line-2); transform: translateY(-2px); }


/* 11. Orbit ---------------------------------------------------------------- */
/* v7: the particle sphere gave way to the liquid form (flow.js). The form has its own box in the page flow,
   between the two headlines, so they can never sit on top of the canvas or the labels. */
.orbit-section { position: relative; z-index: 2; padding: clamp(36px, 5vh, 70px) 0 clamp(40px, 6vh, 80px); }
.orbit-section .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 30px); text-align: center; }
.flow { position: relative; width: 100%; height: clamp(400px, 64vh, 680px); opacity: 0; transition: opacity 1.2s ease; }
.flow.is-in { opacity: 1; }
.flow::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(70%, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 106, 43, .1), rgba(255, 106, 43, .03) 55%, transparent 72%); }
.flow__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flow__labels { position: absolute; inset: 0; pointer-events: none; }
.flow__ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-7deg); border: 1px solid rgba(241, 238, 233, .1); border-radius: 50%; pointer-events: none; }
.flow.is-fallback .flow__gl { display: none; }
.flow.is-fallback::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(46vh, 52%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(241, 238, 233, .2), rgba(20, 20, 22, .9) 46%, #0a0a0c 70%); box-shadow: inset -18px -22px 50px rgba(255, 106, 43, .28), 0 0 0 1px rgba(241, 238, 233, .1); }
@media (max-width: 760px) {
  .flow { height: clamp(360px, 58svh, 520px); }
  .flow .ol { font-size: 10px; } .flow .ol small { font-size: 8px; }
  .flow .ol--b { display: none; }
}
.orbit-section__top, .orbit-section__bottom { font: 500 clamp(28px, 3.4vw, 52px)/1.1 var(--f-display); letter-spacing: -.035em; }
.orbit-section__bottom { font-size: clamp(40px, 6vw, 96px); }
.orbit-section .serif { background: linear-gradient(90deg, #ff9a6a, #9fb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }

/* 12. Timeline ------------------------------------------------------------- */
.timeline { --tl: 0; list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 1000px; display: grid; gap: 28px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.timeline::before { background: var(--line-2); }
.timeline::after { background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: top; transform: translateX(-50%) scaleY(var(--tl)); box-shadow: 0 0 12px var(--accent); }
.tl { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.tl::before { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--bg); border: 2px solid var(--line-2); z-index: 1; transition: border-color .5s, box-shadow .5s; }
.tl.is-in::before { border-color: var(--accent); box-shadow: 0 0 16px var(--accent); }
.tl__date { color: var(--muted); text-align: right; }
.tl:nth-child(even) .tl__date { order: 2; text-align: left; }
.tl__card { padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: rgba(14,13,17,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 10px; }
.tl__card h3 { font-size: 24px; }
.tl__card p { color: var(--muted); font-size: 15px; }
.tl__tag { color: var(--accent-2); font-size: 10.5px; }
.tl__tag--accent { color: var(--accent); }
.tl--next .tl__card { border-style: dashed; border-color: rgba(255,106,43,.45); background: linear-gradient(160deg, rgba(255,106,43,.1), rgba(14,13,17,.8)); }

/* 13. Content -------------------------------------------------------------- */
.channels { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.channel { position: relative; padding: 32px; min-height: 280px; border-radius: var(--radius); border: 1px solid var(--line); background-color: rgba(14,13,17,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.channel::before { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; top: -100px; border-radius: 50%; filter: blur(60px); opacity: .25; transition: opacity .5s; }
.channel--yt::before { background: #ff3b30; }
.channel--tt::before { background: linear-gradient(#25f4ee, #fe2c55); }
.channel:hover::before { opacity: .45; }
a.channel:hover { border-color: var(--line-2); }
.channel__icon { width: 54px; height: 54px; }
.channel__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.channel__icon .fill { fill: var(--text); }
.channel__name { font: 500 32px/1 var(--f-display); letter-spacing: -.03em; margin-top: auto; }
.channel__desc { color: var(--muted); font-size: 15px; }
.channel__go { color: var(--accent); }
.channel--yt .channel__go { text-transform: none; }
.channel__kicker { color: var(--dim); }
.channel--yt { padding: 18px 18px 26px; gap: 22px; }
.channel__row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 10px; }
.channel__text { display: grid; gap: 6px; min-width: 0; }
.channel--yt .channel__name { margin-top: 0; }
.channel--yt .channel__go { align-self: center; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(255,106,43,.4); transition: background .3s, color .3s; }
@media (hover: hover) { .channel--yt:hover .channel__go { background: var(--accent); color: var(--accent-ink); } }
.player { position: relative; display: block; aspect-ratio: 16 / 8.2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(80% 90% at 20% 80%, rgba(255,90,40,.32), transparent 60%), radial-gradient(70% 80% at 85% 20%, rgba(80,110,255,.3), transparent 60%), #0b0a0f; }
.player__glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,140,90,.18) 80%, transparent 90%); animation: player-sweep 7s linear infinite; }
.player__mark { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font: 700 clamp(40px, 6vw, 92px)/1 var(--f-display); letter-spacing: -.04em; white-space: nowrap; color: rgba(255,255,255,.05); }
.player__play { position: absolute; left: 50%; top: 44%; width: 74px; height: 74px; margin: -37px 0 0 -37px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .5s var(--ease), background .4s; }
.player__play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.player__play i { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255,140,90,.7); animation: player-ping 2.4s var(--ease) infinite; }
@media (hover: hover) { .channel--yt:hover .player__play { transform: scale(1.1); background: #ff3b30; border-color: #ff3b30; } }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(241,238,233,.75); }
.player__live { display: inline-flex; align-items: center; gap: 8px; }
.player__live b { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: player-blink 1.6s ease-in-out infinite; }
.player__handle { text-transform: none; color: var(--accent); }
.player__track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.player__track i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #ff3b30); transform-origin: 0 50%; animation: player-progress 9s linear infinite; }
@keyframes player-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes player-blink { 50% { opacity: .35; } }
@keyframes player-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes player-sweep { to { transform: rotate(1turn); } }
.channel--social { padding: 32px; }
.channel--social .socials { gap: 12px; }
.channel--social .social { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 14px 18px 14px 14px; border-radius: 16px; }
.channel--social .social__icon { width: 56px; height: 56px; border-radius: 14px; }
.channel--social .social__icon svg { width: 28px; height: 28px; }
.channel--social .social__name { font-size: 24px; }
.channel--social .social__handle { font-size: 12px; }
.channel__lead { margin: 14px 0 0; font: 500 clamp(30px, 3vw, 44px)/1.05 var(--f-display); letter-spacing: -.035em; }
.channel__lead .serif { font-weight: 400; background: linear-gradient(90deg, #ff9a6a, #c89bff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.channel--social::before { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.socials { display: grid; gap: 10px; margin-top: auto; }
.social { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 14px 11px 11px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s, transform .45s var(--ease); }
.social:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); transform: translateX(4px); }
.social__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.05); }
.social__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.social__icon .fill { fill: var(--text); stroke: none; }
.social__text { display: grid; gap: 3px; min-width: 0; }
.social__name { font: 500 20px/1.1 var(--f-display); letter-spacing: -.02em; }
.social__handle { color: var(--muted); font-size: 11px; text-transform: none; }
.social__go { color: var(--accent); font-size: 18px; transition: transform .35s var(--ease); }
.social:hover .social__go { transform: translate(2px, -2px); }

/* 14. Contact -------------------------------------------------------------- */
.section--contact { padding-bottom: clamp(80px, 9vw, 120px); }
.contact { max-width: 1040px; margin: 0 auto; display: grid; gap: 24px; justify-items: center; text-align: center; }
.contact__title { font-size: clamp(46px, 7.4vw, 116px); line-height: .95; letter-spacing: -.05em; }
.contact__title .serif { background: linear-gradient(90deg, #ff9a6a, #9fb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.contact__mail { font: 500 clamp(17px, 1.9vw, 24px)/1.2 var(--f-display); letter-spacing: -.015em; padding: 12px 22px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(8,8,10,.6); backdrop-filter: blur(8px); transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.contact__mail:hover { border-color: var(--accent); color: var(--accent); }
.form { width: 100%; max-width: 640px; margin-top: 24px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(14,13,17,.85); backdrop-filter: blur(12px); display: grid; gap: 16px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; }
.form label .mono { color: var(--dim); font-size: 11px; }
.form input, .form textarea, .form select { width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; transition: border-color .25s, background .25s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: #141317; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.05); }
.form .is-invalid { border-color: #ff6b5b; }
.form button { justify-self: start; }
.form__note { color: var(--dim); font-size: 11px; text-transform: none; }

.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 6px; }
.contact__links a { color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.contact__links a:hover { color: var(--text); border-color: var(--accent); }
.planet { width: min(560px, 92vw); margin-top: clamp(10px, 3vw, 30px); }
.planet__canvas { display: block; width: 100%; aspect-ratio: 1 / .66; }
/* Menú de arriba: cápsula de cristal con una luz que marca el apartado */
.topnav { position: relative; display: flex; align-items: center; padding: 5px; border-radius: 99px; border: 1px solid var(--line-2);
  background: rgba(16,15,18,.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 40px -20px rgba(0,0,0,.8); }
.topnav a { position: relative; z-index: 1; padding: 9px 15px; border-radius: 99px; font: 500 13.5px/1 var(--f-body); color: var(--muted); white-space: nowrap; transition: color .3s; }
.topnav a:hover, .topnav a.is-active { color: var(--text); }
.topnav__glow { position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 99px; background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); opacity: 0; pointer-events: none; }
.topnav__glow.is-ready { transition: transform .55s var(--ease), width .55s var(--ease), opacity .35s; }
.topnav__glow::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(255,106,43,.8); transition: opacity .3s; }
.topnav.is-hovering .topnav__glow::after { opacity: .35; }
.topcta { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
  font: 600 13.5px/1 var(--f-body); box-shadow: 0 10px 30px -12px rgba(255,106,43,.75); transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.topcta:hover { background: #ff8550; box-shadow: 0 14px 36px -10px rgba(255,106,43,.9); }
.topcta__arrow { transition: transform .4s var(--ease); }
.topcta:hover .topcta__arrow { transform: translateX(3px); }
.topcta.is-active { box-shadow: 0 0 0 4px rgba(255,106,43,.22), 0 14px 36px -10px rgba(255,106,43,.9); }

/* 15. Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: rgba(8,8,10,.94); padding: 40px 0 120px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.4; }
.footer__mono { font: 600 14px/1 var(--f-display); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--text); color: var(--bg); }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__meta { display: flex; gap: 22px; color: var(--dim); }
.footer__top:hover { color: var(--accent); }

/* 16. Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .case--featured { grid-template-columns: 1fr; }
  .case__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .channels { grid-template-columns: 1fr; }
  .topbar__status { display: none; }
  .topnav a { padding: 9px 12px; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .topbar { padding: 14px 18px; }
  .topnav { display: none; }
  .topcta { padding: 9px 14px; font-size: 13px; }
  .cine { height: 300vh; }
  .cine__person { height: min(78vh, 135vw); bottom: 14vh; }
  .cine__brand { top: 30%; }
  .cine__bigname { font-size: 19vw; }
  .cine__est { right: .2em; letter-spacing: .32em; }
  .cine__phase--a { bottom: 118px; }
  .cine__phase--b, .cine__phase--c { left: 20px; right: 20px; top: auto; bottom: 118px; transform: none; text-align: left; justify-items: start; max-width: none; }
  .cine__scroll { display: none; }
  .cine__vignette { background: radial-gradient(120% 90% at 50% 35%, transparent 50%, rgba(0,0,0,.7)), linear-gradient(to top, rgba(8,8,10,.98) 8%, rgba(8,8,10,.75) 34%, transparent 58%); }
  .cine__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .works__pin { height: auto; }
  .works__sticky { position: relative; height: auto; overflow: visible; padding: 110px 0 40px; gap: 40px; }
  .wall { width: 100%; padding: 0 20px; grid-template-columns: 1fr; transform: none !important; }
  .wall__col, .wall__col[data-wall-col="1"] { transform: none !important; }
  .glass-grid, .channels, .form__row { grid-template-columns: 1fr; }
  .browser__body--qr { grid-template-columns: 1fr; }
  .browser__body--qr .qr3d { width: 70%; margin: 0 auto; }
  .timeline::before, .timeline::after { left: 6px; }
  .tl { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .tl::before { left: 6px; top: 8px; transform: translate(-50%, 0); }
  .tl__date, .tl:nth-child(even) .tl__date { order: 0; text-align: left; }
  .inline-cta { padding: 24px; }
  .inline-cta .btn, .form button { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { flex-wrap: wrap; gap: 10px 18px; }
  .contact__copy span { display: none; }
  .contact__copy { padding: 0 14px; }
  .contact__mail { font-size: 16px; padding: 11px 16px; }
  .dock { bottom: 12px; }
  .dock a { width: 48px; height: 48px; }
  .orbit-section { min-height: 120vh; }
}

/* Reduced motion: only intrusive loops are calmed (see gotcha A.2) */
/* 17. Pulido: scroll suave, titulares letra a letra, cursor ---------------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

.split.reveal { opacity: 1; transform: none; }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0) rotate(7deg); filter: blur(8px); transition: opacity .8s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i) * 24ms); }
.split.is-in .ch, .no-js .split .ch, .reveal-fallback .split .ch { opacity: 1; transform: none; filter: blur(0); }
.cine__title.split .ch { transition-duration: 1s, 1.3s, 1.1s; transition-delay: calc(var(--i) * 42ms); }
.split .split-grad { background: none; }
.split .split-grad .ch { background-image: var(--g); background-size: var(--gw) 100%; background-position: var(--gx) 0; -webkit-background-clip: text; background-clip: text; color: transparent; padding: .12em .1em; margin: -.12em -.1em; }

.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--text); transition: opacity .2s; }
.cursor__circle { position: absolute; left: 0; top: 0; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(241,238,233,.4); display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), background .35s, border-color .35s, scale .3s var(--ease); }
.cursor.is-link .cursor__circle { width: 20px; height: 20px; background: transparent; border-color: var(--accent); }   /* over links and buttons: a small ring that never covers the words */
.cursor.is-link .cursor__dot { background: var(--accent); }
.cursor.is-label .cursor__circle { width: 96px; height: 96px; background: var(--accent); border-color: transparent; box-shadow: 0 10px 40px -8px rgba(255,106,43,.6); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__circle { scale: .86; }
.cursor__label { font: 600 11px/1.1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); text-align: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .45s var(--ease); white-space: nowrap; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* 18. Detalles: copiar correo, vista previa, versión, toast ------- */
.contact__mailrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.contact__copy { display: inline-flex; align-items: center; gap: 8px; align-self: stretch; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(8,8,10,.6); backdrop-filter: blur(8px); color: var(--muted); font: 500 14px/1 var(--f-body); cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.contact__copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__copy:hover { color: var(--text); border-color: var(--accent); }
.contact__copy.is-done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.wcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
.wcard__video.is-on { opacity: 1; transform: none; }
.wcard--qr .wcard__info { z-index: 1; }

.footer__ver { color: var(--dim); }


.toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(16,15,18,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); font: 500 14px/1.2 var(--f-body); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: opacity .35s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Modo ligero: solo se activa en equipos que no llegan a ir fluidos */
.is-lite .cine__haze, .is-lite .grain { display: none; }
.is-lite .dock, .is-lite .glass, .is-lite .case, .is-lite .tl__card, .is-lite .channel, .is-lite .pills span, .is-lite .btn--ghost, .is-lite .contact__mail, .is-lite .contact__copy, .is-lite .toast, .is-lite .inline-cta { backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-lite .dock, .is-lite .toast { background: rgba(16,15,18,.94); }
.is-lite .glass { background-color: rgba(14,13,17,.9); }
.is-lite .tl__card, .is-lite .channel, .is-lite .case { background-color: rgba(14,13,17,.94); }

@media (max-width: 760px) {
  .channel__row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 0 4px; }
  .channel__row .channel__icon { width: 44px; height: 44px; }
  .channel__row .channel__go { grid-column: 1 / -1; justify-self: start; }
  .player__track { visibility: hidden; }
  .player__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .channel--social { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .player__glow, .player__play i { animation: none; }
  .cine__haze i, .qr3d, .cine__scroll i { animation: none; }
  .split .ch, .cine__bigname .ch { transform: none; filter: none; }
}

/* 18. Manifiesto: el vídeo «AP Studio Drop» justo después de la portada ----- */
.manifesto { position: relative; z-index: 2; padding: clamp(90px, 12vw, 170px) 0 clamp(40px, 6vw, 80px); }
.manifesto__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); }
.manifesto__title { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.04em; }
.manifesto__title .serif { letter-spacing: -.02em; }

.mplayer { margin: 0; }
html.is-entered.is-cinema .dock { transform: translate(-50%, 160%); transition-delay: 0s; }
.mplayer__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; container-type: inline-size;
  border: 1px solid var(--line); box-shadow: 0 50px 120px -50px rgba(0,0,0,.95), -40px 30px 120px -70px rgba(255,106,43,.55), 40px 30px 120px -70px rgba(79,125,255,.55);
  isolation: isolate; cursor: pointer; }
.mplayer__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.mplayer__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 32%); transition: opacity .6s var(--ease); }
.mplayer.is-sound .mplayer__shade { opacity: 0; }


/* Botón «Watch with sound» y controles */
.mplayer__watch { position: absolute; left: clamp(14px, 2.2cqw, 28px); bottom: clamp(14px, 2.2cqw, 28px); z-index: 3; display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 20px 8px 8px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,8,10,.55); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 15px/1.2 var(--f-body); cursor: pointer;
  transition: transform .5s var(--ease), background .3s, border-color .3s, opacity .4s var(--ease); }
.mplayer__watch:hover { transform: translateY(-2px); background: rgba(8,8,10,.75); border-color: rgba(255,106,43,.6); }
.mplayer__play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); position: relative; flex: none; box-shadow: 0 8px 26px -8px rgba(255,106,43,.8); }
.mplayer__play::after { content: ""; position: absolute; left: 17px; top: 14px; border-left: 13px solid var(--accent-ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.mplayer__play::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,106,43,.5); animation: introNudge 2.4s ease-out infinite; }
.mplayer__watch-text { display: grid; gap: 2px; text-align: left; }
.mplayer__dur { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.mplayer.is-sound .mplayer__watch { opacity: 0; transform: translateY(8px); pointer-events: none; }
.mplayer__ctrl { position: absolute; top: clamp(10px, 1.6cqw, 20px); right: clamp(10px, 1.6cqw, 20px); z-index: 3; display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,238,233,.8); opacity: .0; transition: opacity .4s var(--ease); }
.mplayer__frame:hover .mplayer__ctrl, .mplayer__frame:focus-within .mplayer__ctrl, .mplayer.is-sound .mplayer__ctrl, .mplayer.is-touch .mplayer__ctrl { opacity: 1; }
.mplayer__ctrl button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.mplayer__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,8,10,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, color .3s; }
.mplayer__btn[hidden] { display: none; }
.mplayer__btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.mplayer__btn--icon { width: 32px; padding: 0; justify-content: center; }
.mplayer__btn svg { width: 15px; height: 15px; }
.intro__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.intro__eq i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: introEq .9s ease-in-out infinite; }
.intro__eq i:nth-child(2) { animation-delay: -.3s; } .intro__eq i:nth-child(3) { animation-delay: -.6s; }
[aria-pressed="false"] > .intro__eq i { animation: none; transform: scaleY(.25); }
@keyframes introEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes introNudge { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
.mplayer__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.08); }
.mplayer__bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.mplayer__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.mplayer__cap span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.mplayer__cap i { width: 6px; height: 6px; background: var(--accent); }   /* a square label mark (no glow, no pulse: it is a caption, not a loading state) */
.mplayer__frame:fullscreen { border-radius: 0; border: 0; width: 100vw; height: 100vh; aspect-ratio: auto; }
.mplayer__frame:fullscreen .mplayer__video { object-fit: contain; }

@media (max-width: 760px) {
  .mplayer__frame { border-radius: 14px; }
  .mplayer__watch { top: 10px; bottom: auto; left: 10px; gap: 10px; padding: 5px 14px 5px 5px; font-size: 13px; }
  .mplayer__play { width: 34px; height: 34px; }
  .mplayer__play::after { left: 13px; top: 10px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
  .mplayer__dur { display: none; }
  .mplayer__ctrl { font-size: 10px; }
  .mplayer__cap { flex-direction: column; gap: 6px; }
}

/* 19. Galería de trabajos: pared de salón + sala de visionado */

.gfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gfilter__label { color: var(--dim); margin-right: 6px; font-size: 11px; }
.chip { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(8,8,10,.45); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color .3s, background .3s, border-color .3s; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; transition: opacity .3s, box-shadow .3s, background .3s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.chip.is-on { color: var(--text); border-color: rgba(255,214,180,.45); background: rgba(255,214,180,.07); }
.chip.is-on::before { opacity: 1; background: #ffd9b8; box-shadow: 0 0 10px 2px rgba(255,200,150,.7); }

/* Marcos: pantalla (web), cine (vídeo), cuadro con paspartú (imagen) */
.frame { position: relative; display: block; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; transform: perspective(1100px) rotateX(var(--fy, 0deg)) rotateY(var(--fx, 0deg)); transition: transform .7s var(--ease), box-shadow .5s; }
.frame__win { position: relative; display: block; overflow: hidden; background: #0c0b10; }
.frame__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame--screen { padding: 9px; border-radius: 12px; background: linear-gradient(160deg, #1d1c21, #0b0b0d 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.12), 0 50px 90px -40px rgba(0,0,0,1), 0 20px 34px -20px rgba(0,0,0,.9); }
.frame__bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; background: #151418; border-radius: 6px 6px 0 0; }
.frame__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
.frame__bar .mono { margin-left: 8px; font-size: 9.5px; color: var(--dim); text-transform: none; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame--screen .frame__win { aspect-ratio: 16 / 10; border-radius: 0 0 6px 6px; }
.frame--film { padding: 16px 16px 34px; border-radius: 3px; background: linear-gradient(#0a0a0b, #040405); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 50px 90px -40px rgba(0,0,0,1), 0 20px 34px -20px rgba(0,0,0,.9); }
.frame--film .frame__win { aspect-ratio: 16 / 9; }
.frame__tag { position: absolute; left: 16px; bottom: 11px; font-size: 9.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 7px; }
.frame__tag b { width: 6px; height: 6px; border-radius: 50%; background: #ff4b3a; box-shadow: 0 0 8px rgba(255,75,58,.9); animation: breathe 2.4s ease-in-out infinite; }
.frame--art { padding: 13px; border-radius: 2px; background: linear-gradient(145deg, #34302a, #12100e 45%, #221f1a 80%, #0d0c0a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 5px rgba(0,0,0,.45), 0 50px 90px -40px rgba(0,0,0,1), 0 20px 34px -20px rgba(0,0,0,.9); }
.frame__mat { display: block; padding: 7.5%; background: linear-gradient(#efebe4, #e2ddd4); box-shadow: inset 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.08); }
.frame--art .frame__win { aspect-ratio: 3 / 1; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.frame--tall .frame__mat { padding: 9%; }
.frame--tall .frame__win { aspect-ratio: 4 / 5; }

/* ---- B · Pared de salón ---- */
.salon { position: relative; padding-top: clamp(110px, 12vw, 160px); }
.salon__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 30px 60px; align-items: end; }
.salon__titles { display: grid; gap: 14px; }
.salon__side { display: grid; gap: 22px; }
.salon__text { color: var(--muted); font-size: 16px; line-height: 1.6; }
.salon__view { --k: 1; position: relative; height: min(100vh, 940px); margin-top: clamp(40px, 5vw, 70px); overflow: hidden; cursor: grab; touch-action: pan-y;
  background: radial-gradient(70% 60% at 50% 45%, #141318, #0b0a0d 75%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(255,255,255,.06); }
.salon__view.is-dragging { cursor: grabbing; }
.salon__view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5,5,6,.85)); }
.salon__wall { position: absolute; left: 50%; top: 50%; width: 1760px; height: 1060px; margin: -530px 0 0 -880px; transform-origin: 50% 50%; will-change: transform; }
.salon__wall > * { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); }
/* Texto de sala + cartelas de museo (v3.3) */
.wtext { width: 250px; display: grid; gap: 18px; }
.wtext__kick { color: #e8c9a0; font-size: 10.5px; display: flex; align-items: center; gap: 10px; }
.wtext__kick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255,106,43,.8); }
.wtext__big { font: italic 400 66px/.92 var(--f-serif); letter-spacing: -.02em; color: #efe7dc; text-shadow: 0 0 40px rgba(255,214,180,.08); }
.wtext__p { color: var(--muted); font-size: 13.5px; line-height: 1.6; padding-top: 16px; border-top: 1px solid rgba(255,230,190,.14); }
.wtext__foot { font-size: 10px; color: var(--dim); }
.plate.plate--label { position: relative; z-index: 4; display: grid; gap: 4px; width: max-content; max-width: 280px; margin-top: 18px; padding: 10px 14px 11px; border-radius: 2px; background: linear-gradient(#efe9e0, #e2dbd0); color: #1b1815; box-shadow: 0 14px 26px -14px rgba(0,0,0,.9), inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .5s var(--ease), box-shadow .5s; }
.lbl__top { display: flex; gap: 10px; font-size: 9px; color: #6e665c; letter-spacing: .06em; }
.plate--label .lbl__top b { font-weight: 500; color: #b4542a; }
.lbl__title { font: 500 15px/1.15 var(--f-display); letter-spacing: -.01em; }
.lbl__title em { font: italic 400 16px/1 var(--f-serif); color: #4a443d; }
.lbl__line { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.lbl__line > span { overflow: hidden; font-size: 11.5px; line-height: 1.45; color: #3b3630; max-width: 30ch; transition: padding .5s var(--ease), margin .5s var(--ease); }
.piece.is-hot { z-index: 5; }
.piece.is-hot .lbl__line, .piece:focus-within .lbl__line { grid-template-rows: 1fr; }
.piece.is-hot .lbl__line > span, .piece:focus-within .lbl__line > span { padding-top: 7px; margin-top: 4px; border-top: 1px solid rgba(0,0,0,.12); }
.piece.is-hot .plate--label { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(0,0,0,1), 0 0 0 1px rgba(255,200,150,.35); }
.piece { width: calc(var(--w) * 1px); transition: opacity .6s var(--ease), filter .6s var(--ease); }
.piece__lamp { position: absolute; left: 50%; top: -26px; width: 44%; height: 9px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: linear-gradient(#3b342a, #17140f); box-shadow: inset 0 1px 0 rgba(255,230,190,.25); z-index: 2; }
.piece__lamp::after { content: ""; position: absolute; left: -30%; right: -30%; top: 6px; height: 320%; background: radial-gradient(50% 100% at 50% 0%, rgba(255,226,190,.32), transparent 70%); opacity: .55; transition: opacity .5s; pointer-events: none; }
.piece::before { content: ""; position: absolute; left: -22%; right: -22%; top: -30%; bottom: -26%; z-index: -1; background: radial-gradient(closest-side, rgba(255,226,196,.1), transparent); opacity: .55; transition: opacity .5s; pointer-events: none; }
.plate { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; font-size: 10.5px; color: var(--muted); padding: 7px 10px; border-radius: 3px; background: linear-gradient(#1c1a17, #121110); box-shadow: inset 0 0 0 1px rgba(255,230,190,.12); }
.plate b { color: #e8c9a0; font-weight: 500; }
.salon__view.is-focus .piece:not(.is-hot) { opacity: .42; filter: saturate(.6); }
.piece.is-hot::before, .piece.is-hot .piece__lamp::after { opacity: 1; }
.piece.is-hot .frame { transform: perspective(1100px) rotateX(var(--fy, 0deg)) rotateY(var(--fx, 0deg)) translateY(-4px); }
.piece.is-off { opacity: .16; filter: grayscale(1); }
.salon__hint { position: absolute; z-index: 3; right: var(--pad); bottom: 26px; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; pointer-events: none; }
.salon__hint i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.salon__hint i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); animation: drag 2.6s var(--ease) infinite; }
@keyframes drag { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@media (max-width: 760px) {
  .salon__head { grid-template-columns: 1fr; }
  .salon__view { height: auto; overflow: visible; cursor: auto; background: none; box-shadow: none; }
  .salon__view::after, .salon__hint { display: none; }
  .salon__wall > .wtext { position: relative; left: auto; top: auto; width: auto; grid-column: 1 / -1; gap: 14px; }
  .wtext__big { font-size: 52px; }
  .plate.plate--label { width: auto; max-width: none; }
  .lbl__line { grid-template-rows: 1fr; }
  .lbl__line > span { padding-top: 7px; margin-top: 4px; border-top: 1px solid rgba(0,0,0,.12); max-width: none; }
  .salon__wall { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 0; transform: none !important; display: grid; grid-template-columns: 1fr 1fr; gap: 54px 16px; padding: 30px 20px 40px; }
  .salon__wall > .piece { position: relative; left: auto; top: auto; width: auto; min-width: 0; }
  .piece--web:first-of-type, .piece--video, .piece--image { grid-column: span 2; }
  .piece--next .plate { white-space: normal; }
  .piece--fanart { grid-column: span 2; width: 78% !important; justify-self: center; }
  .plate { margin-top: 14px; }
}

/* ---- Sala de visionado (común) ---- */
html.is-room, html.is-room body { overflow: hidden; }
.vroom { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 22px 56px; padding: 24px var(--pad) 26px; background: #060608; opacity: 0; transition: opacity .5s var(--ease); }
.vroom[hidden] { display: none; }
.vroom.is-open { opacity: 1; }
.vroom__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 75% at 38% -5%, rgba(255,228,196,.12), transparent 70%), radial-gradient(40% 40% at 38% 105%, rgba(255,228,196,.05), transparent 70%); }
.vroom__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: var(--muted); position: relative; }
.vroom__close, .vroom__nav button { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; background: none; border: 1px solid var(--line-2); color: var(--text); padding: 11px 15px; border-radius: 99px; cursor: pointer; transition: border-color .3s, background .3s; }
.vroom__close:hover, .vroom__nav button:hover { border-color: var(--text); background: rgba(255,255,255,.05); }
.vroom__stage { grid-column: 1; grid-row: 2; min-height: 0; display: grid; place-items: center; position: relative; }
.vroom__media { width: 100%; max-width: min(100%, calc((100vh - 200px) * 1.6)); display: grid; gap: 14px; justify-items: center; }
.vroom__media--film { max-width: min(100%, calc((100vh - 190px) * 1.78)); }
.vroom__media--art { max-width: 100%; }
.vroom__media video, .vroom__media img { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); object-fit: contain; background: #000; }
.vroom__media--screen { padding: 10px; border-radius: 14px; background: linear-gradient(160deg, #1d1c21, #0b0b0d 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 60px 140px -40px #000; gap: 0; justify-items: stretch; }
.vroom__media--screen video, .vroom__media--screen img { border-radius: 0 0 7px 7px; max-height: calc(100vh - 250px); }
.vroom__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #151418; border-radius: 7px 7px 0 0; }
.vroom__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.vroom__bar .mono { margin-left: 10px; font-size: 10.5px; color: var(--dim); text-transform: none; }
.vroom__media--film video { border-radius: 4px; box-shadow: 0 0 0 14px #050506, 0 0 0 15px rgba(255,255,255,.07), 0 60px 140px -40px #000; }
.vroom__panes { position: relative; width: 100%; display: grid; place-items: center; }
.vroom__panes img { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); max-height: calc(100vh - 260px); width: auto; max-width: 100%; box-shadow: 0 0 0 12px #e9e4dc, 0 0 0 26px #1c1915, 0 60px 140px -40px #000; }
.vroom__panes img.is-on { opacity: 1; }
.vroom__tabs { display: flex; gap: 8px; margin-top: 30px; }
.vroom__tabs button { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.vroom__tabs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--text); border-color: var(--text); }
.vroom__info { grid-column: 2; grid-row: 2; align-self: center; position: relative; }
.vroom__text { display: grid; gap: 14px; padding-left: 22px; border-left: 1px solid var(--line-2); }
.vroom__no { color: var(--accent); }
.vroom__title { font: 500 clamp(30px, 3vw, 44px)/1.02 var(--f-display); letter-spacing: -.035em; }
.vroom__meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.vroom__meta em { font: 400 17px/1.4 var(--f-serif); color: #d8cfc4; }
.vroom__desc { color: rgba(241,238,233,.82); font-size: 15px; line-height: 1.65; }
.vroom__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.vroom__nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: var(--dim); position: relative; }
.vroom__stage > *, .vroom__info > * { animation: roomIn .8s var(--ease) both; }
.vroom__info > * { animation-delay: .12s; }
@keyframes roomIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .vroom { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; overflow-y: auto; align-content: start; gap: 22px; padding: 18px 18px 26px; }
  .vroom__stage { grid-row: 2; min-height: auto; }  /* keep the full film; the room scrolls instead */
  .vroom__info { grid-column: 1; grid-row: 3; }
  .vroom__nav { grid-row: 4; }
  .vroom__keys { display: none; }
  .vroom__media, .vroom__media--film { max-width: 100%; }
  .vroom__media video, .vroom__media img, .vroom__panes img { max-height: 56vh; }
  .vroom__panes img { box-shadow: 0 0 0 7px #e9e4dc, 0 0 0 15px #1c1915; }
  .vroom__tabs { margin-top: 20px; }
}
.vroom__media--tall .vroom__panes img { max-height: calc(100vh - 230px); }
@media (prefers-reduced-motion: reduce) {
  .salon__hint i::after { animation: none; }
}

/* ---- Saturn rings on the small status dots (2026-11-26) ---- */
.topbar__dot, .dot { position: relative; flex: none; }
.topbar__dot::after, .dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none;
  width: 250%; height: 78%; border-radius: 50%;
  border: 1.2px solid currentColor; border-top-color: transparent;  /* front arc only, so it wraps the planet */
  transform: translate(-50%, -50%) rotate(-18deg);
  opacity: .85;
}
.topbar__dot { color: rgba(255, 160, 110, .95); margin: 0 4px 0 3px; }
.dot { color: rgba(140, 240, 180, .9); margin-right: 5px; }
.dot::after { animation: none; }

/* ===== Hero v4 (2026-11-26): name left · ASCII sphere ↔ «AP» centre · phrase right ===== */
.cine--ascii { height: 100vh; height: 100svh; }
.cine--ascii .cine__sticky { background: #050507; }
.backdrop { display: none; }
.cine--ascii .cine__vignette { background: radial-gradient(120% 90% at 50% 50%, transparent 65%, rgba(0,0,0,.5)); }
.ascii { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero3__left { left: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: 16px; max-width: 30vw; }
.hero3__left .cine__kicker { order: 2; font-size: 11px; letter-spacing: .22em; }
.cine--ascii .cine__title { font-size: clamp(40px, 4.8vw, 84px); line-height: .92; letter-spacing: -.045em; white-space: nowrap; text-shadow: none; }
.hero3__dot { color: var(--accent, #ff6a2b); }
.hero3__right { right: var(--pad); top: 50%; transform: translateY(-50%); text-align: right; max-width: 28vw; }
.cine--ascii .hero3__right p.hero3__l1 { font: 600 clamp(20px, 1.75vw, 30px)/1.25 var(--f-display); letter-spacing: -.01em; color: var(--text); text-shadow: none; margin: 0; }
.cine--ascii .hero3__right p.hero3__l2 { font: 500 clamp(17px, 1.45vw, 25px)/1.3 var(--f-display); letter-spacing: -.01em; color: var(--muted); text-shadow: none; margin: 4px 0 0; }
.hero3__foot { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5vh, 48px); display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(241,238,233,.42); }
.hero3__work { color: rgba(241,238,233,.7); text-decoration: none; transition: color .25s; }
.hero3__work:hover { color: var(--text); }
@media (max-width: 760px) {
  .cine--ascii { height: 100vh; height: 100svh; }
  .hero3__left { top: 17vh; transform: none; max-width: none; left: 22px; right: 22px; }
  .cine--ascii .cine__title { font-size: 46px; }
  .hero3__right { top: auto; bottom: 150px; transform: none; max-width: none; left: 22px; right: 22px; }
  .hero3__foot { bottom: 108px; left: 22px; right: 22px; }
}
.no-js .cine--ascii .cine__phase { opacity: 1; }
/* Corner logo (2026-11-26): thick-line A+P monogram, no text, no dot */
.topbar__brand--logo { color: var(--text); gap: 0; letter-spacing: 0; transition: color .25s, opacity .25s; }
.topbar__brand--logo:hover { color: #fff; opacity: .85; }
.topbar__logo { display: block; overflow: visible; width: auto; height: 36px; }
@media (max-width: 760px) { .topbar__logo { height: 31px; } }
/* Contact button v2 (2026-11-26, his pick «1»): light pill + orange circle; orange floods the pill on hover */
.topcta--v2 { position: relative; overflow: hidden; isolation: isolate; gap: 14px; padding: 6px 6px 6px 22px; background: #f3efe9; color: #0a0a0c;
  font: 600 14px/1 var(--f-body); letter-spacing: -.01em; box-shadow: 0 10px 30px -12px rgba(255,255,255,.35); }
.topcta--v2:hover { background: #f3efe9; box-shadow: 0 12px 34px -10px rgba(255,106,43,.7); }
.topcta--v2::before { content: ""; position: absolute; z-index: -1; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: var(--accent); transition: transform .55s var(--ease); }
.topcta--v2:hover::before, .topcta--v2:focus-visible::before { transform: scale(9); }
.topcta__t { transition: color .45s var(--ease); }
.topcta--v2:hover .topcta__t, .topcta--v2:focus-visible .topcta__t { color: #fff; }
.topcta__i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .45s var(--ease); }
.topcta--v2:hover .topcta__i { transform: rotate(45deg); }
.topcta--v2.is-active { box-shadow: 0 0 0 4px rgba(255,106,43,.25), 0 12px 34px -10px rgba(255,106,43,.7); }
@media (max-width: 760px) {
  .topcta--v2 { gap: 10px; padding: 5px 5px 5px 16px; font-size: 13px; }
  .topcta--v2::before, .topcta__i { width: 30px; height: 30px; }
  .topcta--v2::before { right: 5px; margin-top: -15px; }
}

/* ===== v4.1 (2026-11-26, his pick «3»): hero style across the site — sans titles with grey second part, ASCII details ===== */
.serif, .serif .ch, .split-grad, .split-grad .ch, .statement__text em {
  font-family: var(--f-display) !important; font-style: normal !important; font-weight: 600 !important; letter-spacing: -.04em !important;
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: var(--muted) !important; -webkit-text-fill-color: var(--muted) !important; padding-right: 0 !important; }
.section__index { color: var(--text); font-family: var(--f-mono); letter-spacing: .2em; }
.section__index::before { width: 8px; height: 8px; background: var(--accent); }
.section__index::after { content: " . : . : . : . : . : ."; color: rgba(241,238,233,.25); letter-spacing: .25em; white-space: nowrap; }
.tl__card, .channel, .glass, .mplayer__frame, .chip, [class*="__card"] { border-radius: 4px !important; }
/* «AP Universe.» drawn with characters (initStatementAscii) */
.statement__text--big.is-ascii { position: relative; color: transparent; }
.statement__text--big.is-ascii .w { opacity: 0 !important; }
.statement__ascii { position: absolute; left: 0; top: 0; pointer-events: none; }
@media (max-width: 760px) { .section__index::after { content: " . : . : ."; } }

/* ===== v4.3 (2026-11-26, his pick «C»): socials merged into contact — panel + strip ===== */
.contact--panel { max-width: 1100px; gap: 0; }
.cpanel { width: 100%; display: grid; gap: 22px; justify-items: center; padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 48px); border: 1px solid var(--line-2); border-radius: 4px 4px 0 0;
  background: radial-gradient(circle, rgba(241,238,233,.09) 1px, transparent 1.4px) 0 0/14px 14px, radial-gradient(70% 90% at 50% 100%, rgba(255,106,43,.14), transparent 70%), rgba(8,8,10,.82); }
.cpanel__row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.cpill { display: inline-flex; align-items: center; gap: 16px; padding: 7px 7px 7px 26px; border-radius: 99px; background: #f3efe9; color: #0a0a0c; font: 600 clamp(16px, 1.5vw, 19px)/1 var(--f-display);
  letter-spacing: -.01em; box-shadow: 0 16px 40px -14px rgba(255,106,43,.7); position: relative; overflow: hidden; isolation: isolate; }
.cpill::before { content: ""; position: absolute; z-index: -1; right: 7px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: var(--accent); transition: transform .55s var(--ease); }
.cpill:hover::before { transform: scale(10); } .cpill span { transition: color .45s var(--ease); } .cpill:hover span { color: #fff; }
.cpill i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .45s var(--ease); }
.cpill:hover i { transform: rotate(45deg); }
.contact--panel .contact__copy span { display: inline !important; font-size: 14px; }
.cstrip { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 4px 4px; background: rgba(8,8,10,.7); }
.cstrip a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px; border-left: 1px solid var(--line-2); transition: background .3s; text-align: left; }
.cstrip a:first-child { border-left: 0; } .cstrip a:hover { background: rgba(255,106,43,.08); }
.cstrip span { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; } .cstrip b { font: 600 15px/1 var(--f-display); } .cstrip em { font-style: normal; color: var(--accent); }
.contact--panel .planet { margin-top: clamp(30px, 5vw, 60px); }
@media (max-width: 760px) { .cstrip { grid-template-columns: 1fr; } .cstrip a { border-left: 0; border-top: 1px solid var(--line-2); } .cstrip a:first-child { border-top: 0; }
  .contact--panel .contact__copy span { font-size: 13px; } }
/* Closing (v8.9): a framed panoramic still, not full-bleed. The image sits in a 2.25:1 cinema frame with black air around it,
   graded in CSS, with an inner vignette; an editorial bar runs under it at the same width (initClosing drives the contained zoom) */
.closing { position: relative; z-index: 2; background: var(--bg); padding: clamp(80px, 10vh, 140px) clamp(24px, 5vw, 72px); }
.closing__frame { position: relative; margin: 0 auto; max-width: 1160px; width: 100%; aspect-ratio: 2.25 / 1; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #000; isolation: isolate; }
.closing__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  transform-origin: 50% 42%; transform: translate3d(0, 0, 0) scale(1.06); will-change: transform;
  filter: contrast(1.14) brightness(0.84) saturate(0.95); transition: filter .8s cubic-bezier(.22, .61, .36, 1); }
.closing__frame:hover .closing__img { filter: contrast(1.14) brightness(0.94) saturate(0.95); }
/* inner vignette: darkens the corners a little so the lit letters on the blimp carry the frame */
.closing__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 78% 92% at 52% 44%, rgba(0,0,0,0) 48%, rgba(0,0,0,.22) 74%, rgba(0,0,0,.52) 100%);
  box-shadow: inset 0 0 90px rgba(0,0,0,.35); }
.closing__bar { max-width: 1160px; width: 100%; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: baseline; align-items: last baseline; gap: 24px; }
.closing__eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.closing__line { margin: 0; font: 400 clamp(26px, 2.7vw, 40px)/1.1 var(--f-serif); letter-spacing: -.01em; color: #f2f0ec; }
.closing__line em { font-style: italic; }
.closing__cta { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 12px; letter-spacing: .18em; color: var(--text);
  padding: 14px 22px; border: 1px solid rgba(241,238,233,.2); border-radius: 999px; transition: color .35s, border-color .35s, background-color .35s; }
.closing__cta span { display: inline-block; transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
.closing__cta:hover, .closing__cta:focus-visible { color: var(--accent); border-color: var(--accent); background-color: rgba(255,106,43,.06); }
.closing__cta:hover span, .closing__cta:focus-visible span { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  /* phones: a slightly taller frame so the blimp and the man keep their size; the bar stacks */
  .closing__frame { aspect-ratio: 16 / 10; }
  .closing__bar { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 20px; }
}

/* ===== v4.6: animated background inside the contact panel ===== */
.cpanel { position: relative; isolation: isolate; overflow: hidden; }
.cpanel.has-bg { background: #09090b; }
.cpanel__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ===== v4.8: glitch on «AP Universe.» + line underneath ===== */
.statement__sub { margin: clamp(22px, 3vw, 40px) auto 0; text-align: center; font: 500 clamp(18px, 2vw, 28px)/1.3 var(--f-display); letter-spacing: -.02em; color: var(--muted); }
/* phones keep the plain title (no ASCII canvas): same RGB burst done in CSS */
@media (max-width: 759px) {
  .statement__text--big { animation: apGlitch 3.4s steps(1) infinite; }
  @keyframes apGlitch {
    0%   { text-shadow: -4px 0 rgba(255,106,43,.8), 4px 0 rgba(241,238,233,.4); transform: translateX(3px) skewX(-6deg); clip-path: inset(0 0 0 0); }
    3%   { text-shadow: 3px 0 rgba(255,106,43,.8), -3px 0 rgba(241,238,233,.4); transform: translateX(-4px); clip-path: inset(30% 0 22% 0); }
    6%   { text-shadow: -2px 0 rgba(255,106,43,.65), 2px 0 rgba(241,238,233,.32); transform: translateX(2px); clip-path: inset(0 0 0 0); }
    9%   { text-shadow: 5px 0 rgba(255,106,43,.65), -5px 0 rgba(241,238,233,.32); transform: translateX(-2px) skewX(4deg); clip-path: inset(55% 0 5% 0); }
    12%  { text-shadow: none; transform: none; clip-path: none; }
  }
}

/* =========================================================================
   20. Museo refinado (v5.2, 2026-11-29) — more air on the wall, dark gallery
   labels, one frame language, slim brass lamps, posters at rest.
   Tune the atmosphere here.
   ========================================================================= */
.salon__view {
  --wall-w: 2400; --wall-h: 1400;                 /* canvas (keep in sync with WALL_W / WALL_H in main.js) */
  --wtext-air: 64px;                               /* free space right of the wall text */
  --label-gap: 16px;                               /* frame → label */
  --label-bg: rgba(20, 20, 19, .85);
  --label-border: rgba(255, 255, 255, .10);
  --label-no: #b8714f;                             /* N.º — muted orange */
  --label-meta: rgba(236, 234, 228, .42);
  --label-title: #ECEAE4;
  --label-sub: rgba(236, 234, 228, .62);
  --label-text: rgba(236, 234, 228, .66);
  --frame-radius: 2px;
  --frame-edge: inset 0 0 0 1px rgba(255, 255, 255, .08);
  --frame-shadow: 0 50px 90px -40px rgba(0, 0, 0, 1), 0 20px 34px -20px rgba(0, 0, 0, .9);
  --lamp-metal: linear-gradient(180deg, #6b5a44 0%, #3a3127 45%, #1c1813 100%);
  --lamp-light: rgba(255, 226, 190, .12);         /* warm cone intensity */
  --lamp-wash: rgba(255, 226, 196, .07);          /* glow on the wall behind */
  --tag-rest: .3;                                  /* «0:39 · muted» at rest */
}
@media (min-width: 761px) {
  .salon__wall { width: calc(var(--wall-w) * 1px); height: calc(var(--wall-h) * 1px); margin: calc(var(--wall-h) * -.5px) 0 0 calc(var(--wall-w) * -.5px); }
  .wtext { width: 270px; padding-right: var(--wtext-air); box-sizing: content-box; }
}

/* labels: small, dark, the work always wins */
.plate.plate--label { gap: 3px; max-width: 236px; margin-top: var(--label-gap); padding: 8px 11px 9px; border-radius: 1px;
  background: var(--label-bg); border: 1px solid var(--label-border); color: var(--label-title);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lbl__top { font-size: 8.5px; gap: 8px; color: var(--label-meta); }
.plate--label .lbl__top b { color: var(--label-no); }
.lbl__title { font-size: 13.5px; color: var(--label-title); }
.lbl__title em { font-size: 14.5px; color: var(--label-sub); }
.lbl__line > span { font-size: 10.5px; color: var(--label-text); max-width: 28ch; }
.piece.is-hot .lbl__line > span, .piece:focus-within .lbl__line > span { border-top-color: rgba(255, 255, 255, .08); }
.piece.is-hot .plate--label { box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 200, 150, .18); }

/* one frame language: square corners, same edge and depth */
.frame--film, .frame--art, .frame--plain { border-radius: var(--frame-radius); }
.frame--film { box-shadow: var(--frame-edge), var(--frame-shadow); }
.frame--plain { padding: 16px; background: linear-gradient(#0a0a0b, #040405); box-shadow: var(--frame-edge), var(--frame-shadow); }
.frame--plain .frame__win { aspect-ratio: 16 / 10; }
.frame--art { box-shadow: var(--frame-edge), inset 0 0 0 5px rgba(0, 0, 0, .45), var(--frame-shadow); }
.piece.is-playing .frame__poster { opacity: 0; }
.frame__tag { opacity: var(--tag-rest); transition: opacity .35s ease; }
.piece.is-hot .frame__tag, .piece:focus-within .frame__tag, .piece.is-playing .frame__tag { opacity: 1; }

/* slim brass lamp + soft warm cone */
.piece__lamp { top: -22px; width: 34%; height: 3px; border-radius: 2px; background: var(--lamp-metal);
  box-shadow: 0 1px 0 rgba(255, 236, 205, .28) inset, 0 2px 6px rgba(0, 0, 0, .6); }
.piece__lamp::before { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 9px; margin-left: -1px; background: linear-gradient(#2a241d, #4a3f31); }
.piece__lamp::after { left: -70%; right: -70%; top: 2px; height: 0; padding-bottom: 120%; border-radius: 0;
  background: radial-gradient(48% 62% at 50% 0%, var(--lamp-light), rgba(255, 226, 190, .04) 55%, transparent 78%); opacity: 1; }
.piece::before { background: radial-gradient(closest-side, var(--lamp-wash), transparent); }

/* desktop: the top nav is enough — the dock is for phones only */
@media (min-width: 761px) { .dock { display: none !important; } }

/* Contact: dark pill, subtle border, the orange circle does the talking */
.topcta--v2 { background: rgba(22, 21, 20, .72); color: #ECEAE4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px -14px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topcta--v2:hover { background: rgba(22, 21, 20, .72); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, .5), 0 12px 34px -12px rgba(255, 106, 43, .55); }

@media (max-width: 760px) {
  .salon__wall > .piece, .piece--web:first-of-type { grid-column: span 2; }
  .piece--next { width: 78% !important; justify-self: center; }
  .plate.plate--label { max-width: none; }
  .frame__tag { opacity: .6; }
}

/* =========================================================================
   21. Archivo en movimiento (v7.0, 2026-12-03) — one cover per work riding
   a spiral or an orbit on a light stage (archive.js). Tune it here.
   ========================================================================= */
.archive {
  --stage-bg: #e9e8e5;                 /* keep in sync with BG in archive.js */
  --stage-ink: #141414;
  --stage-dim: rgba(20, 20, 20, .72);   /* secondary text on the paper: index, hints, meta (AA contrast) */
  --stage-faint: rgba(20, 20, 20, .24);
  --stage-radius: 22px;
  --stage-h: min(86vh, 880px);
  --grain: .07;                        /* film grain over the stage */
  position: relative; padding: clamp(60px, 8vh, 96px) 0 clamp(36px, 5vh, 64px);
}
.archive__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 4vh, 44px); }
.archive__text { max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* the stage: warm paper, a soft vignette, grain, and a reveal on entry */
.archive__stage {
  position: relative; width: min(calc(100% - 2 * var(--pad)), 1480px); height: var(--stage-h); margin: 0 auto;
  border-radius: var(--stage-radius); overflow: hidden; color: var(--stage-ink); outline: none;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(255, 255, 255, .62), transparent 70%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(60, 52, 40, .16) 100%),
    var(--stage-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 70px 140px -70px rgba(0, 0, 0, .95), 0 30px 60px -40px rgba(0, 0, 0, .8);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: clip-path 1.4s var(--ease), opacity .9s ease;
}
.archive__stage.is-armed:not(.is-in) { clip-path: inset(7% 5% round var(--stage-radius)); opacity: 0; }
.archive__stage:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 70px 140px -70px rgba(0, 0, 0, .95); }
.archive__stage.is-drag { cursor: grabbing; }
.archive__stage.is-over { cursor: pointer; }
.archive__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.archive__grain { position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: var(--grain); 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='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: archGrain 1.2s steps(6) infinite; }
@keyframes archGrain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); } 60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); } }

/* technical marks: corner labels, crosses, rulers */
.archive__c { position: absolute; z-index: 2; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--stage-ink); pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .8s ease .5s, transform .8s var(--ease) .5s; }
.archive__stage.is-in .archive__c, .archive__stage:not(.is-armed) .archive__c { opacity: 1; transform: none; }
.archive__c::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; }
.archive__c--tr::before, .archive__c--br::before { order: 2; }
.archive__c--tl { top: 22px; left: 24px; } .archive__c--tr { top: 22px; right: 24px; }
.archive__c--bl { bottom: 22px; left: 24px; color: var(--stage-dim); } .archive__c--br { bottom: 22px; right: 24px; }
.archive__cross { position: absolute; z-index: 2; left: 50%; width: 11px; height: 11px; margin-left: -5px; pointer-events: none; }
.archive__cross::before, .archive__cross::after { content: ""; position: absolute; background: var(--stage-ink); }
.archive__cross::before { left: 5px; top: 0; width: 1px; height: 11px; } .archive__cross::after { top: 5px; left: 0; width: 11px; height: 1px; }
.archive__cross--t { top: 24px; } .archive__cross--b { bottom: 24px; display: none; }
.archive__ruler { position: absolute; z-index: 1; top: 30%; bottom: 30%; width: 9px; pointer-events: none; opacity: .7;
  background: repeating-linear-gradient(to bottom, var(--stage-faint) 0 1px, transparent 1px 12px),
              repeating-linear-gradient(to bottom, var(--stage-ink) 0 1px, transparent 1px 60px);
  background-size: 5px 100%, 9px 100%; background-repeat: no-repeat; }
.archive__ruler--l { left: 0; } .archive__ruler--r { right: 0; transform: scaleX(-1); }

/* index of works, left; big counter, right */
.archive__index { position: absolute; z-index: 3; left: 30px; top: 50%; transform: translateY(-50%); display: grid; gap: 2px; }
.archive__index button { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 5px 0; color: var(--stage-dim); transition: color .3s ease; }
.archive__index span { font-size: 10px; font-weight: 500; letter-spacing: .12em; width: 18px; }
.archive__index b { font: 500 13px var(--f-display); letter-spacing: -.005em; position: relative; padding-left: 0; transition: padding .5s var(--ease); }
.archive__index b::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--accent); transition: width .5s var(--ease); }
.archive__index button.is-on b { padding-left: 18px; }
.archive__index button.is-on b::before { width: 10px; }
.archive__index button:hover { color: var(--stage-ink); }
.archive__index button.is-on { color: var(--stage-ink); }
.archive__index button.is-on span { color: var(--accent); }
.archive__index button:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.archive__count { position: absolute; z-index: 2; right: 30px; top: 50%; transform: translateY(-50%); display: flex; align-items: flex-start; gap: 6px; pointer-events: none; }
.archive__cwin { display: block; overflow: hidden; height: 1em; font: 400 clamp(54px, 6vw, 92px)/1 var(--f-serif); font-style: italic; letter-spacing: -.02em; }
.archive__cnum { display: block; }
.archive__cnum.is-roll { animation: archRoll .7s var(--ease); }
@keyframes archRoll { from { transform: translateY(100%); } to { transform: none; } }
.archive__ctot { font-size: 10px; letter-spacing: .14em; color: var(--stage-dim); margin-top: 8px; }

/* the piece in focus: a frosted pill with three fixed cells — number · title · category — and the orbit timer
   as a hairline. The pill has a set width and every cell its own room (flex + gap), the title is the only
   one that gives way (ellipsis), so nothing can run into anything else, not even while two works swap. */
.archive__now { position: absolute; z-index: 3; left: 50%; bottom: 52px; transform: translateX(-50%); margin: 0; pointer-events: none;
  width: min(600px, calc(100% - 48px)); box-sizing: border-box; padding: 10px 20px 11px; border-radius: 999px; overflow: hidden;
  background: rgba(240, 239, 236, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 30px -18px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.archive__nin { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; white-space: nowrap;
  transition: opacity .22s ease, transform .22s ease; }
.archive__now.is-swap .archive__nin { opacity: 0; transform: translateY(-40%); transition-duration: .18s; }
.archive__nno { flex: none; font-size: 10px; letter-spacing: .14em; color: #d9531c; font-weight: 500; font-variant-numeric: tabular-nums; }
.archive__nt { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.archive__nt span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.archive__nt em { flex: 0 10 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-serif); font-size: 17px; font-weight: 400; font-style: italic; color: var(--stage-dim); }
.archive__nmeta { flex: none; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--stage-dim);
  padding-left: 16px; border-left: 1px solid var(--stage-faint); }
.archive__prog { position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: .8; }

/* accessible list of the works: hidden while the stage runs, a grid if WebGL is missing */
.archive__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; list-style: none; }
.archive__list img { display: none; }
.archive__stage.is-fallback { height: auto; padding: 70px 24px; cursor: auto; }
.archive__stage.is-fallback .archive__gl, .archive__stage.is-fallback .archive__now, .archive__stage.is-fallback .archive__index,
.archive__stage.is-fallback .archive__count, .archive__stage.is-fallback .archive__ruler { display: none; }
.archive__stage.is-fallback .archive__list { position: static; width: auto; height: auto; clip-path: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.archive__stage.is-fallback .archive__list button { all: unset; cursor: pointer; display: grid; gap: 8px; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.archive__stage.is-fallback .archive__list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* cursor over the stage: a dark ring that says Drag, the ember disc that says Open (card in focus) or Select (any other card) */
.cursor.is-archive .cursor__circle { width: 74px; height: 74px; background: rgba(240, 239, 236, .25); border-color: rgba(20, 20, 20, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cursor.is-archive .cursor__label { opacity: 1; transform: none; color: #141414; }
.cursor.is-archive .cursor__dot { background: #141414; }
.cursor.is-archive-open .cursor__circle { width: 92px; height: 92px; background: var(--accent); border-color: transparent; box-shadow: 0 10px 40px -8px rgba(255, 106, 43, .6); }
.cursor.is-archive-open .cursor__label { opacity: 1; transform: none; color: var(--accent-ink); }
.cursor.is-archive-open .cursor__dot { opacity: 0; }

@media (max-width: 1100px) {
  .archive__index { display: none; }
}
@media (max-width: 760px) {
  .archive { --stage-h: max(74svh, 500px); --stage-radius: 16px; }
  .archive__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .archive__stage { width: calc(100% - 24px); }
  .archive__c { font-size: 8.5px; letter-spacing: .1em; }
  .archive__c--tl, .archive__c--tr { top: 16px; }
  .archive__c--tl { left: 16px; } .archive__c--tr { right: 16px; }
  .archive__c--bl, .archive__c--br, .archive__cross, .archive__ruler { display: none; }
  .archive__count { display: none; }
  .archive__now { bottom: 44px; border-radius: 14px; padding: 9px 14px 10px; width: calc(100% - 28px); }
  .archive__nin { flex-wrap: wrap; gap: 3px 12px; }
  .archive__nt { order: 3; flex: 1 0 100%; justify-content: flex-start; }
  .archive__nmeta { padding-left: 0; border-left: 0; }
}

/* =========================================================================
   22. Tres actos (v7.1, 2026-12-03) — a sticky, scroll-driven section right
   under the hero: Web Design · Motion & Video · Interactive 3D.
   The outer section gives the scroll distance; the inner box stays pinned.
   Titles move behind masks, the stage on the right is drawn by initActs
   (main.js): two 2D-canvas studies and one small Three.js scene.
   ========================================================================= */
.acts { --acts-scroll: 320vh; position: relative; z-index: 2; height: var(--acts-scroll); }
.acts__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.acts__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.32fr); gap: clamp(28px, 4.6vw, 80px); align-items: center; width: 100%; max-width: 1480px; }
.acts__left { position: relative; z-index: 2; display: grid; gap: clamp(16px, 2.4vh, 28px); align-content: center; min-width: 0; }
.acts__count { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.acts__count::before { content: ""; width: 6px; height: 6px; background: var(--accent); align-self: center; }
.acts__cwin { display: inline-block; height: 1.3em; overflow: hidden; color: var(--text); }
.acts__croll { display: block; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.acts__croll b { display: block; height: 1.3em; line-height: 1.3; font-weight: 500; }
.acts__count i { font-style: normal; color: var(--dim); }
.acts__titles, .acts__notes { display: grid; }
.acts__title, .acts__note { grid-area: 1 / 1; margin: 0; }
.acts__title { font: 600 clamp(44px, 5.9vw, 100px)/.98 var(--f-display); letter-spacing: -.045em; color: var(--text); pointer-events: none; }
/* each line waits below its own mask, rises into place when its act is on, and leaves upward: opacity + travel, never a cut */
.acts__line { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.acts__line > span { display: block; opacity: 0; transform: translateY(118%); transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .55s ease; will-change: transform, opacity; }
.acts__line + .acts__line > span { transition-delay: .07s; color: var(--muted); }
.acts__title.is-on .acts__line > span { opacity: 1; transform: none; }
.acts__title.is-past .acts__line > span { opacity: 0; transform: translateY(-118%); }
.acts__note { font-size: clamp(9px, .9vw, 12px); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 30px; background: linear-gradient(var(--accent), var(--accent)) left center / 18px 1px no-repeat;
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.acts__note.is-on { opacity: 1; transform: none; transition-delay: .14s; }
.acts__note.is-past { transform: translateY(-12px); }
/* the stage: one WebGL canvas that bleeds past its box and fades out on every side, so there is no frame to see */
.acts__right { min-width: 0; }
.acts__stage { --hud: 0; position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 68vh; margin: 0 auto; }
.acts__gl { position: absolute; left: -13%; top: -15%; width: 126%; height: 130%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect; }
/* corner read-outs: a detail of precision, kept quiet so they never compete with the piece */
.acts__hud { position: absolute; z-index: 1; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; white-space: pre; color: var(--text); opacity: calc(var(--hud) * .45);
  font-variant-numeric: tabular-nums; pointer-events: none; }
.acts__hud--tl { top: 0; left: 0; } .acts__hud--tr { top: 0; right: 0; text-align: right; }
.acts__hud--bl { bottom: 0; left: 0; } .acts__hud--br { bottom: 0; right: 0; text-align: right; }
/* chapters: a hairline per act, filled by a thin ember line with a soft glow and a bright head */
.acts__progress { position: absolute; z-index: 2; left: 0; right: 0; max-width: 1480px; bottom: clamp(26px, 5vh, 46px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acts__seg { display: grid; gap: 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); transition: color .5s ease; }
.acts__seg b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts__seg em { font-style: normal; margin-left: .6em; }
.acts__seg i { display: block; height: 1px; background: rgba(255, 255, 255, .12); position: relative; }
.acts__seg i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 106, 43, .45), #ff7a3a); transform: scaleX(var(--f, 0)); transform-origin: left;
  box-shadow: 0 0 10px rgba(255, 106, 43, .55), 0 0 2px rgba(255, 150, 90, .9); }
.acts__seg i::before { content: ""; position: absolute; top: 50%; left: calc(var(--f, 0) * 100%); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #ffc59c; box-shadow: 0 0 12px 3px rgba(255, 106, 43, .75); opacity: 0; transition: opacity .5s ease; z-index: 1; }
.acts__seg.is-on { color: var(--text); }
.acts__seg.is-on i::before { opacity: 1; }
.acts.is-nogl .acts__right { display: none; } .acts.is-nogl .acts__grid { grid-template-columns: minmax(0, 1fr); }
.no-js .acts { height: auto; } .no-js .acts__sticky { position: static; height: auto; padding: 120px 0; }
.no-js .acts__title, .no-js .acts__note { grid-area: auto; } .no-js .acts__line > span { transform: none; opacity: 1; } .no-js .acts__note { opacity: 1; transform: none; } .no-js .acts__right { display: none; }
@media (max-width: 900px) {
  .acts { --acts-scroll: 270svh; }                       /* a comfortable run on phones: about 1.7 screens of scrolling */
  .acts__sticky { align-items: flex-start; padding-top: clamp(84px, 12svh, 104px); }
  .acts__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 3svh, 30px); }
  .acts__left { gap: 12px; }
  .acts__title { font-size: clamp(36px, 10.4vw, 64px); display: flex; flex-wrap: wrap; column-gap: .22em; }
  .acts__note { font-size: clamp(8.5px, 2.56vw, 10.5px); letter-spacing: .03em; padding-left: 24px; background-size: 14px 1px; }   /* always one line on a phone */
  .acts__stage { aspect-ratio: auto; height: clamp(240px, calc(100svh - 385px), 118vw); max-height: none; }   /* the stage takes the room between the text and the progress line */
  .acts__gl { left: -8%; width: 116%; top: -9%; height: 118%; }
  .acts__hud { font-size: 8.5px; letter-spacing: .1em; }
  .acts__progress { bottom: 104px; gap: 8px; }            /* clear of the bottom dock */
  .acts__seg em { display: none; }
}
