/* ResolverIA · inicio y trabajos. Va después de base.css.
 * Un escenario 3D fijo detrás del contenido, secciones de color pleno y, en "Qué hacemos",
 * piezas simples para explicar la oferta: una banda que se desplaza con el scroll y dos carruseles paso a paso. */

/* ---------- escenario fijo ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity .22s linear; }
.has-3d #stage { opacity: 1; }
.has-3d.swapping #stage, .has-3d.swapping #labels { opacity: 0; }
#labels { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; transition: opacity .22s linear; }
.label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform;
  padding: .28rem .7rem; border-radius: 999px; background: var(--noche); color: var(--blanco);
  font-size: .8125rem; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.label b { display: inline-block; min-width: 1.1em; margin-right: .45em; font-weight: 800; text-align: center; color: var(--amarillo); }
.label.tag-A b { color: var(--menta); } .label.tag-C b { color: #FF7FB0; }
.label.big { padding: .4rem .95rem; background: var(--amarillo); color: var(--noche); font-size: 1.05rem; font-weight: 800; }

main > section { position: relative; z-index: 1; color: var(--fg); }

/* ---------- secciones con escena ---------- */
.scene-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100svh; }
html:not(.has-3d) .scene-section { background: var(--bg); }
.scene-section .copy { align-self: center; padding: 7.5rem 1.5rem 7.5rem var(--pad); }
.scene-section .slot { position: sticky; top: 0; height: 100vh; height: 100svh; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.scene-section .slot.grabbing { cursor: grabbing; }
.slot .view { position: absolute; inset: 5.5rem 1rem 9.5rem 1rem; }
/* Al llegar por un enlace a un trabajo, la sección arranca justo en su borde: sin esto asomaba el final de la anterior. */
.work { min-height: 150vh; min-height: 150svh; scroll-margin-top: -4.5rem; }
.work.flip .copy { order: 2; padding: 7.5rem var(--pad) 7.5rem 1.5rem; }
.work.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hero .copy { padding-top: 8.5rem; }
html.no-3d .slot { display: none; }
html.no-3d .scene-section { grid-template-columns: minmax(0, 1fr); min-height: 0; }

.kicker { font-size: 1rem; font-weight: 650; margin-bottom: 1.1rem; }
.kicker::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .55em; border-radius: 50%; background: currentColor; }
.status { display: inline-block; margin-top: 1.1rem; padding: .3rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; font-size: .92rem; font-weight: 700; }
.status + .lead { margin-top: 1.3rem; }
.facts { display: grid; gap: 1.05rem; margin-top: 1.9rem; max-width: 34rem; }
.facts dt { font-weight: 800; font-stretch: 86%; font-size: 1.02rem; }
.facts dd { color: var(--soft); }
.work .btn { margin-top: 2rem; }
.shot { margin-top: 2rem; width: min(24rem, 100%); transform: rotate(-1.6deg); transition: transform .3s var(--ease); }
.shot img { border-radius: .9rem; box-shadow: 0 .5rem 0 rgba(0, 0, 0, .26); background: rgba(0, 0, 0, .1); }
.shot figcaption { margin-top: .95rem; font-size: .9rem; font-weight: 600; color: var(--soft); }
.shot:hover { transform: rotate(0deg) scale(1.03); }
.shots { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.shots .shot { width: min(17rem, 100%); }
.shots .shot:nth-child(2) { transform: rotate(1.4deg); }
.shots .shot:nth-child(2):hover { transform: rotate(0deg) scale(1.03); }
.next-work { display: inline-block; margin-top: 2.2rem; }

/* ---------- reproductor de la escena ---------- */
.player { position: absolute; left: 50%; bottom: 1.6rem; width: min(31rem, 100% - 2rem); transform: translateX(-50%); cursor: default; color: var(--fg); }
.player .caption { min-height: 2.9em; display: flex; align-items: flex-end; justify-content: center; text-align: center; font-size: 1.02rem; font-weight: 650; line-height: 1.3; text-wrap: balance; }
.player .controls { display: flex; align-items: center; gap: .8rem; margin-top: .7rem; }
.player button { flex: none; border: 0; cursor: pointer; background: var(--btn); color: var(--btn-fg); font-weight: 750; box-shadow: 0 .22rem 0 var(--btn-edge); transition: transform .1s var(--ease), box-shadow .1s var(--ease); }
.player button:hover { transform: translateY(-.06rem); box-shadow: 0 .28rem 0 var(--btn-edge); }
.player button:active { transform: translateY(.18rem); box-shadow: 0 .04rem 0 var(--btn-edge); }
.player .pp { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; }
.player .pp svg { width: 1rem; height: 1rem; fill: currentColor; }
.player .pp .i-play { display: none; }
.paused .player .pp .i-play { display: block; } .paused .player .pp .i-pause { display: none; }
.player .drop { min-height: 2.75rem; padding: .4rem 1rem; border-radius: 999px; font-size: .92rem; }
.player .scrub { flex: 1; min-width: 0; height: 2.75rem; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.player .scrub::-webkit-slider-runnable-track { height: .36rem; border-radius: 999px; background: linear-gradient(to right, var(--fg) var(--p, 0%), color-mix(in srgb, var(--fg) 30%, transparent) var(--p, 0%)); }
.player .scrub::-moz-range-track { height: .36rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.player .scrub::-moz-range-progress { height: .36rem; border-radius: 999px; background: var(--fg); }
.player .scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 1.15rem; height: 1.15rem; margin-top: -.4rem; border-radius: 50%; background: var(--fg); border: 0; }
.player .scrub::-moz-range-thumb { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--fg); border: 0; }
.player .hint { margin-top: .45rem; text-align: center; font-size: .86rem; font-weight: 550; color: var(--soft); }
.player .hint strong { display: block; font-weight: 750; color: var(--fg); }
/* en trabajos las escenas corren en bucle, sin controles: queda más lugar para la escena */
.work[data-player="loop"] .slot .view { bottom: 7rem; }
.player.loop .caption { min-height: 2.6em; }
.player .controls.center { justify-content: center; }

/* ---------- secciones planas ---------- */
.plain { background: var(--blanco); padding: clamp(5rem, 11vw, 9.5rem) 0; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
.plain.night { background: var(--noche); }
.plain.blue { background: var(--cobalto); min-height: 82vh; min-height: 82svh; }
.plain.flow { display: block; min-height: 0; }
.note { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: .98rem; color: var(--soft); }

/* ---------- banda "¿Te suena alguna?": dos filas que se cruzan al desplazarse ---------- */
.drift { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(2.6rem, 4.5vw, 3.8rem); background: var(--noche); color: var(--blanco); overflow: hidden; }
.drift h3 { margin-bottom: 1.7rem; }
.drift-rows { display: grid; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; padding-block: .4rem; }
.drift-rows::-webkit-scrollbar { display: none; }
.drift.is-driven .drift-rows { overflow: hidden; }
.drift-row { display: flex; gap: 1rem; width: max-content; padding-inline: var(--pad); transition: transform .7s var(--ease); will-change: transform; }
.drift-row li {
  flex: none; padding: .65rem 1.3rem; border-radius: 999px; background: var(--bg, var(--blanco)); color: var(--ink, var(--noche));
  font-size: clamp(1.05rem, .9vw + .85rem, 1.5rem); font-weight: 720; font-stretch: 86%; white-space: nowrap; transform: rotate(var(--r, 0deg));
}
.drift-row li:nth-child(6n + 1) { --r: -1.4deg; }
.drift-row li:nth-child(6n + 2) { --bg: var(--amarillo); --r: 1.1deg; }
.drift-row li:nth-child(6n + 3) { --bg: var(--menta); --r: -.6deg; }
.drift-row li:nth-child(6n + 4) { --bg: var(--cobalto); --ink: var(--blanco); --r: 1.5deg; }
.drift-row li:nth-child(6n + 5) { --bg: var(--fucsia); --r: -1.1deg; }
.drift-row li:nth-child(6n + 6) { --bg: var(--mandarina); --r: .8deg; }

/* ---------- los dos servicios, cada uno con su carrusel ---------- */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(4rem, 9vw, 8rem); }
.service.flip .service-copy { order: 2; }
.service-copy::before { content: ""; display: block; width: 4.5rem; height: .6rem; margin-bottom: 1.5rem; border-radius: 999px; background: var(--c); }
.service-copy h3 { font-size: clamp(1.8rem, 1.8vw + 1.1rem, 2.8rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.022em; line-height: 1; }
.service-copy h3 + p { margin-top: 1rem; font-size: 1.1rem; color: var(--soft); }
.service-copy ul { margin-top: 1.3rem; display: grid; gap: .45rem; font-weight: 600; }
.service-copy li { padding-left: 1.5rem; position: relative; }
.service-copy li::before { content: ""; position: absolute; left: 0; top: .5em; width: .62rem; height: .62rem; border-radius: 50%; background: var(--c); }
.service-copy .limit { margin: 1.4rem 0 1.5rem; padding: .85rem 1.1rem; border-radius: .9rem; background: var(--lila); font-size: .98rem; font-weight: 550; }
.service-links { display: flex; flex-wrap: wrap; gap: .6rem 1.7rem; }

.carousel { min-width: 0; padding: 1rem 1rem 1.1rem; border-radius: 1.5rem; background: var(--c); color: var(--noche); }
.car-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; padding: 0 .4rem; }
.car-bars button { position: relative; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; }
.car-bars button::before, .car-bars i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .38rem; margin-top: -.19rem; border-radius: 999px; }
.car-bars button::before { background: rgba(21, 16, 43, .22); }
.car-bars i { background: var(--noche); transform: scaleX(0); transform-origin: left center; }
.car-bars button:hover::before { background: rgba(21, 16, 43, .38); }
.car-bars .is-done i, .car-bars .is-current i { transform: scaleX(1); }
.carousel.is-playing .car-bars .is-current i { animation: car-fill 6s linear both; }
.carousel.is-playing.is-held .car-bars .is-current i { animation-play-state: paused; }
@keyframes car-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 1rem; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: 2px; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-rows: 1fr auto; gap: .6rem; padding: .3rem .4rem .2rem; }
.mock { min-height: 18.5rem; display: grid; align-content: center; gap: .8rem; padding: .9rem .5rem; }
.slide-cap { min-height: 4.1em; padding: 0 .3rem; font-size: 1.06rem; line-height: 1.36; text-wrap: pretty; }
.slide-cap b { display: block; font-size: 1.22rem; font-weight: 800; font-stretch: 86%; }
.bubble { max-width: 31rem; padding: .95rem 1.15rem; border-radius: 1.15rem 1.15rem 1.15rem .3rem; background: var(--blanco); box-shadow: 0 .4rem 0 rgba(21, 16, 43, .2); font-size: 1.02rem; line-height: 1.42; }
.bubble.out { justify-self: end; border-radius: 1.15rem 1.15rem .3rem 1.15rem; background: var(--noche); color: var(--blanco); }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; margin-bottom: .45rem; padding-left: 2rem; position: relative; font-size: .86rem; font-weight: 750; line-height: 1.25; min-height: 1.5rem; }
.who::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -.75rem; border-radius: 50%; background: var(--amarillo); box-shadow: inset 0 0 0 2px var(--noche); }
.who span { font-weight: 550; opacity: .72; }
.sheet { max-width: 31rem; padding: 1.05rem 1.2rem 1.15rem; border-radius: 1rem; background: var(--blanco); box-shadow: 0 .4rem 0 rgba(21, 16, 43, .2); }
.sheet h4 { margin: 0 0 .75rem; font-size: 1.12rem; font-weight: 800; font-stretch: 86%; }
.sheet ul { display: grid; gap: .6rem; }
.sheet li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .65rem; align-items: start; font-size: 1rem; line-height: 1.3; font-weight: 600; }
.sheet li small { display: block; font-size: .8rem; font-weight: 700; opacity: .62; }
.sheet svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sheet .ok { color: #00875E; } .sheet .gap { color: #C2410C; }
.stamp { justify-self: end; display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .95rem; border-radius: 999px; background: var(--amarillo); box-shadow: inset 0 0 0 2px var(--noche); font-size: .92rem; font-weight: 800; transform: rotate(-2.5deg); }
.stamp svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* carrusel de trabajos: imágenes reales sobre cobalto, con texto claro */
.carousel.on-dark { color: var(--blanco); }
.carousel.on-dark .car-bars button::before { background: rgba(255, 255, 255, .3); }
.carousel.on-dark .car-bars button:hover::before { background: rgba(255, 255, 255, .5); }
.carousel.on-dark .car-bars i { background: var(--blanco); }
.carousel.on-dark .car-btns button { background: var(--blanco); color: var(--noche); box-shadow: 0 .22rem 0 rgba(0, 0, 0, .3); }
.carousel.on-dark .car-btns button:hover { box-shadow: 0 .28rem 0 rgba(0, 0, 0, .3); }
.carousel.on-dark .car-btns button:active { box-shadow: 0 .04rem 0 rgba(0, 0, 0, .3); }
.slide-cap .link { display: inline-block; margin-top: .35rem; white-space: nowrap; }
.mock .pic { justify-self: center; width: auto; max-width: min(100%, 27rem); max-height: 17rem; border-radius: .9rem; box-shadow: 0 .45rem 0 rgba(0, 0, 0, .3); rotate: -1.4deg; }
.mock.pair { gap: 1.1rem; }
.mock.pair .pic { max-height: 8.2rem; }
.mock.pair .pic:nth-child(2) { rotate: 1.6deg; justify-self: end; margin-right: 6%; }
.mock.pair .pic:nth-child(1) { justify-self: start; margin-left: 6%; }
.layers { justify-self: center; width: min(100%, 22rem); display: grid; gap: .5rem; }
.layers li { padding: .6rem 1.1rem; border-radius: .8rem; background: var(--bg); color: var(--noche); font-weight: 750; font-stretch: 88%; box-shadow: 0 .32rem 0 rgba(0, 0, 0, .28); }
.layers li:nth-child(even) { margin-left: 1.4rem; margin-right: -1.4rem; }
/* consultoría: una videollamada dibujada con formas simples */
.sheet .look { color: var(--cobalto); } .sheet .new { color: #C2185B; }
.call { justify-self: center; width: min(100%, 25rem); display: grid; gap: .7rem; padding: .85rem; border-radius: 1.2rem; background: var(--noche); box-shadow: 0 .4rem 0 rgba(21, 16, 43, .25); }
.call-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.call-tile { display: grid; justify-items: center; align-content: center; gap: .5rem; aspect-ratio: 5 / 4; border-radius: .8rem; background: #2A2450; color: var(--blanco); }
.call-tile .avatar { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--a); color: var(--noche); }
.call-tile svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.call-name { font-size: .86rem; font-weight: 700; }
.call-bar { display: flex; justify-content: center; gap: .6rem; }
.call-bar i { width: 2rem; height: 2rem; border-radius: 50%; background: #3A3368; }
.call-bar .end { width: 3.2rem; border-radius: 999px; background: #E5332A; }
.carousel.is-live .slide .pop { opacity: 0; transform: translateY(.9rem) scale(.97); }
.carousel.is-live .slide.is-active .pop { opacity: 1; transform: none; transition: opacity .35s linear, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 160ms); }
.carousel.is-live .slide.is-active .stamp.pop { transform: rotate(-2.5deg); }
.car-nav { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .7rem; padding: 0 .4rem; }
.car-note { font-size: .86rem; font-weight: 650; opacity: .82; }
.car-btns { display: flex; gap: .5rem; }
.car-btns button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: var(--noche); color: var(--blanco); box-shadow: 0 .22rem 0 rgba(21, 16, 43, .32); transition: transform .1s var(--ease), box-shadow .1s var(--ease); }
.car-btns button:hover { transform: translateY(-.06rem); box-shadow: 0 .28rem 0 rgba(21, 16, 43, .32); }
.car-btns button:active { transform: translateY(.18rem); box-shadow: 0 .04rem 0 rgba(21, 16, 43, .32); }
.car-btns svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-btns .car-play svg { fill: currentColor; stroke: none; }
.car-play .i-play { display: none; }
.carousel:not(.is-playing) .car-play .i-play { display: block; } .carousel:not(.is-playing) .car-play .i-pause { display: none; }
html:not(.js) .car-btns, html:not(.js) .car-bars { display: none; }

/* ---------- herramientas: una fila por categoría, con fichas del color de la categoría ---------- */
.toolbox { display: grid; gap: clamp(1.5rem, 2.8vw, 2.3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.tool-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.1rem clamp(1.5rem, 4vw, 4rem); align-items: start; padding-top: clamp(1.5rem, 2.8vw, 2.3rem); border-top: 2px solid rgba(255, 255, 255, .16); }
.tool-row:first-child { padding-top: 0; border-top: 0; }
.tool-head h3 { display: flex; align-items: baseline; gap: .65rem; }
.tool-head h3::before { content: ""; flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--c); }
.tool-head p { margin-top: .6rem; max-width: 25em; color: var(--soft); }
.tool-list { display: flex; flex-wrap: wrap; gap: .75rem .7rem; }
.tool-list li {
  padding: .5rem 1.15rem; border-radius: 999px; background: var(--c); color: var(--ink, var(--noche));
  font-size: clamp(1.02rem, .7vw + .88rem, 1.36rem); font-weight: 740; font-stretch: 86%; white-space: nowrap;
  box-shadow: 0 .3rem 0 rgba(0, 0, 0, .38); rotate: var(--r, 0deg);
  transition: rotate .25s var(--ease), translate .25s var(--ease);
}
.tool-list li:nth-child(3n + 1) { --r: -1.3deg; } .tool-list li:nth-child(3n + 2) { --r: 1deg; } .tool-list li:nth-child(3n) { --r: -.5deg; }
.tool-list li:hover { rotate: 0deg; translate: 0 -.22rem; }
/* cada fila deja caer sus fichas cuando entra en pantalla */
.toolbox.is-live .tool-row:not(.is-in) .tool-list li { opacity: 0; transform: translateY(1.1rem) scale(.9); }
.toolbox.is-live .tool-row.is-in .tool-list li {
  opacity: 1; transform: none;
  transition: opacity .3s linear, transform .55s var(--ease), rotate .25s var(--ease), translate .25s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms), calc(var(--i, 0) * 55ms), 0s, 0s;
}

/* ---------- cómo trabajamos: los pasos se encienden a medida que avanza el scroll ---------- */
.steps { position: relative; counter-reset: paso; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.4rem; --p: 1; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .4rem; border-radius: 999px; }
.steps::before { background: var(--lila); }
.steps::after { background: var(--noche); transform: scaleX(var(--p)); transform-origin: left center; transition: transform .5s var(--ease); }
.steps li { counter-increment: paso; --n: var(--cobalto); }
.steps li:nth-child(2) { --n: var(--fucsia); } .steps li:nth-child(3) { --n: var(--mandarina); } .steps li:nth-child(4) { --n: var(--menta); }
.steps li::before { content: counter(paso); display: block; width: max-content; font-size: clamp(3.6rem, 5vw, 5.2rem); font-weight: 800; font-stretch: 75%; line-height: .9; color: var(--n); margin-bottom: 1.1rem; transform-origin: left bottom; transition: color .3s linear, transform .5s var(--ease); }
.steps.is-live li:not(.is-on)::before { color: #D9D7EA; transform: scale(.86); }
.steps p { margin-top: .7rem; color: var(--soft); }
.onward { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; margin-top: clamp(3.5rem, 7vw, 6rem); padding: clamp(1.9rem, 4vw, 3.2rem); border-radius: 1.5rem; background: var(--cobalto); color: var(--fg); }
.onward h3 { font-size: clamp(1.7rem, 1.8vw + 1.1rem, 2.7rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.022em; line-height: 1; max-width: 14em; }
.onward .actions { margin-top: 0; }

/* ---------- trabajos ---------- */
.works-index { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; }
.works-index a {
  display: flex; align-items: center; gap: 1.1rem; padding: .55rem 0; text-decoration: none;
  font-size: clamp(1.6rem, 2.6vw + .8rem, 3.1rem); font-weight: 780; font-stretch: 80%; letter-spacing: -.02em; line-height: 1.1;
  transition: transform .25s var(--ease), color .2s linear;
}
.works-index a::before { content: ""; flex: none; width: .62em; height: .62em; border-radius: 50%; background: var(--c); transition: transform .25s var(--ease); }
.works-index a:hover, .works-index a:focus-visible { transform: translateX(.9rem); color: var(--c); }
.works-index a:hover::before, .works-index a:focus-visible::before { transform: scale(1.5); }

/* ---------- pantallas chicas ---------- */
@media (max-width: 900px) {
  .scene-section, .work.flip { grid-template-columns: minmax(0, 1fr); }
  .scene-section .copy, .work.flip .copy { order: 2; padding: 1.5rem var(--pad) 5rem; }
  .scene-section .slot { position: relative; order: 1; height: 78vh; height: 78svh; }
  .hero .copy { order: 1; padding: 6.5rem var(--pad) 0; }
  .hero .slot { order: 2; height: 86vh; height: 86svh; }
  .slot .view { inset: 4.5rem .5rem 9.5rem .5rem; }
  .hero .slot .view { inset: 2rem .5rem 10.5rem .5rem; }
  .work { min-height: 0; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service.flip .service-copy { order: 0; }
  .mock { min-height: 20rem; }
  .tool-row { grid-template-columns: minmax(0, 1fr); }
  .tool-list { gap: .65rem .55rem; }
  .steps { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 1.7rem; }
  .steps::before, .steps::after { right: auto; bottom: 0; width: .4rem; height: auto; }
  .steps::after { transform: scaleY(var(--p)); transform-origin: center top; }
  .steps li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 1rem; }
  .steps li::before { grid-row: span 2; margin: 0; font-size: 3.6rem; }
  .label.aux { display: none; }
  .label { font-size: .74rem; padding: .22rem .55rem; }
  .label.tag { display: flex; flex-direction: column; align-items: center; border-radius: .7rem; padding: .25rem .5rem .3rem; font-size: .68rem; line-height: 1.15; }
  .label.tag b { margin: 0; font-size: .95rem; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .scene-section .copy { padding-top: 6rem; padding-bottom: 6rem; }
  h1 { font-size: clamp(2.5rem, 3.8vw + .4rem, 4.2rem); }
}

/* ---------- menos movimiento ---------- */
html.reduce .carousel .pop { opacity: 1 !important; transform: none !important; }
html.reduce .carousel .stamp.pop { transform: rotate(-2.5deg) !important; }
html.reduce .toolbox .tool-list li { opacity: 1 !important; transform: none !important; }
html.reduce .drift-row { transform: none !important; }
html.reduce .drift .drift-rows { overflow-x: auto; }
