/* ==========================================================================
   tebusco · capa de experiencia
   Letras animadas, experiencias apiladas, juego y túnel de LED del zoom.
   ========================================================================== */

/* 1. Letras ---------------------------------------------------------------- */
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }

/* suben desde una máscara al entrar en pantalla */
.js [data-chars] .wd { overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js [data-chars] .ch {
  transform: translateY(108%) rotate(7deg);
  transform-origin: 0 100%;
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 18ms);
}
.js [data-chars].is-in .ch { transform: none; }

/* se juntan desde posiciones dispersas, ligadas al scroll (JS escribe el transform) */
.js [data-gather] .ch { will-change: transform, opacity; }

/* titular del hero: segunda línea que rota con efecto de descifrado */
.hero__title { max-width: none; }
.hero__l1 { display: block; max-width: 13ch; }
.hero__rot { display: block; white-space: nowrap; color: var(--accent-ink); }
.hero__rot .g { color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }

/* menú: cada letra rueda hacia arriba al pasar el cursor */
.roll { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: middle; }
.roll .ch { text-shadow: 0 1.25em 0 currentColor; transition: transform 0.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 16ms); }
@media (hover: hover) {
  a:hover > .roll .ch, a:focus-visible > .roll .ch { transform: translateY(-1.25em); }
}

/* correo del footer: ola de letras */
[data-wave] .ch { transform-origin: 50% 100%; }
@media (hover: hover) {
  [data-wave]:hover .ch { animation: chWave 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
}
@keyframes chWave { 40% { transform: translateY(-16%) scaleY(1.06); color: var(--o-400); } }

/* 2. Experiencias apiladas -------------------------------------------------- */
.xp { padding-top: clamp(5rem, 12vh, 8rem); }
.xp__head { display: grid; gap: 1.25rem; }
.xp__lead { max-width: 40ch; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.xp__stack { position: relative; margin-top: clamp(2rem, 6vh, 4rem); padding-inline: var(--gutter); }
.xp__card {
  position: sticky;
  top: calc(var(--hd-h) + 0.5rem + var(--n) * 14px);
  height: min(80svh, 760px);
  margin: 0 auto 16svh;
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px -30px rgb(0 0 0 / 0.5);
}
.xp__card:last-child { margin-bottom: 6svh; }
.xp__card::after { content: ''; position: absolute; inset: 0; z-index: 3; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.xp__card--dark { background: var(--visor); color: var(--n-50); --tag: rgb(255 255 255 / 0.22); }
.xp__card--accent { background: var(--o-500); color: var(--n-950); --tag: rgb(9 9 11 / 0.3); }
.xp__card--light { background: var(--surface-2); color: var(--ink); --tag: var(--line-2); }
.xp__text { display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: clamp(1.5rem, 3.5vw, 3.5rem); min-width: 0; }
.xp__num { font: 400 0.8rem/1 var(--f-mono); opacity: 0.6; margin-bottom: auto; }
.xp__text h3 { font-size: clamp(2.4rem, 5.4vw, 6rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.06em; }
.xp__text p { max-width: 34ch; opacity: 0.8; font-size: clamp(0.95rem, 1.2vw, 1.1rem); }
.xp__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.xp__tags li { padding: 0.4rem 0.75rem; border: 1px solid var(--tag); border-radius: 999px; font: 400 0.72rem/1 var(--f-mono); }
/* un botón para cotizar cada experiencia (lleva al formulario con el tema elegido) */
.xp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.25rem; }
.xp__card--accent .xp__actions .btn { background: #09090B; color: #F4F6FF; border-color: #09090B; }
.xp__link { display: inline-flex; align-items: center; min-height: 40px; font: 600 0.88rem/1 var(--f-sans); text-decoration: underline; text-underline-offset: 4px; opacity: 0.9; }
.xp__link:hover { opacity: 1; }
.xp__media { position: relative; margin: 0; min-height: 0; overflow: hidden; }
.xp__media canvas, .xp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
/* ilustración en lugar de una escena (simuladores): encuadre en el robot y un acercamiento lento */
.xp__art { object-position: 76% 50%; transform-origin: 72% 50%; animation: xpArt 18s ease-in-out infinite alternate; }
.portals__media .xp__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes xpArt { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .xp__art { animation: none; } }
.xp__card--light .xp__media { background: var(--bg); }

/* 3. Juego --------------------------------------------------------------- */
.play { padding-block: clamp(5rem, 12vh, 8rem); }
.play__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vh, 3rem); }
.play__lead { max-width: 36ch; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.arcade {
  position: relative;
  height: min(76svh, 700px);
  min-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--visor);
  color: var(--n-50);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), var(--shadow);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.arcade__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.arcade__canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--r-xl); }
.arcade__hud {
  position: absolute;
  top: 1rem; left: 1.25rem; right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 400 0.8rem/1 var(--f-mono);
  color: var(--n-400);
  pointer-events: none;
}
.arcade__hud b { color: var(--n-50); font-weight: 500; font-variant-numeric: tabular-nums; }
.arcade__lives { display: flex; gap: 5px; }
.arcade__lives i { width: 12px; height: 12px; border-radius: 3px; background: var(--o-500); box-shadow: 0 0 10px rgb(255 138 0 / 0.6); transition: background-color 0.3s, box-shadow 0.3s; }
.arcade__lives i.off { background: rgb(255 255 255 / 0.12); box-shadow: none; }
.arcade__screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgb(13 15 20 / 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.arcade__screen[hidden] { display: none; }
.arcade__kicker { font: 500 0.8rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--o-400); }
.arcade__title { font-size: clamp(2.2rem, 5.6vw, 5rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.055em; }
.arcade__help { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; font: 400 0.8rem/1 var(--f-mono); color: var(--n-300); }
.arcade__help li { display: inline-flex; align-items: center; gap: 0.5rem; }
.arcade__help b { color: var(--n-50); font-weight: 500; }
.k { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.k--o { background: var(--o-500); }
.k--w { background: #F4F6FF; }
.k--r { background: #FF4D5E; }
.arcade__play { min-width: 160px; min-height: 52px; font-size: 1rem; }
.arcade__keys { font: 400 0.72rem/1.5 var(--f-mono); color: var(--n-400); }

/* 4. Túnel de LED durante el zoom al visor ------------------------------------ */
.hero__warp { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__hud, .hero__foot { z-index: 2; }

/* 5. Adaptable ------------------------------------------------------------- */
@media (max-width: 860px) {
  .xp__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: min(84svh, 720px); }
  .xp__media { grid-row: 1; }
  .xp__text { grid-row: 2; padding: 1.25rem 1.25rem 1.5rem; gap: 0.7rem; }
  .xp__num { display: none; }
  .xp__text h3 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .xp__text p { font-size: 0.9rem; }
  .xp__actions .btn { min-height: 42px; padding-inline: 1rem; font-size: 0.88rem; }
  .arcade { height: 72svh; }
  .arcade__help { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-chars] .ch { transform: none; }
  .xp__card { position: relative; top: auto; margin-bottom: 1.5rem; }
}

/* 6. Nada ensancha la página: tarjetas que entran de lado, la esfera 3D y las letras --- */
/* (clip y no hidden: con hidden las tarjetas fijas dejarían de quedarse fijas) */
main > section { overflow-x: clip; }

/* 7b. La nave 3D en «Realidad virtual» (nave-embed.js) ----------------------- */
.nave-embed { background: #0b0806; }
.nave-embed .nave-embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: opacity 700ms ease; }
.nave-embed__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity 700ms ease; }
.nave-embed.is-viva .nave-embed__iframe { opacity: 1; }
.nave-embed.is-viva .nave-embed__poster { opacity: 0; }
.nave-embed__abrir {
  position: absolute; right: 0.9rem; bottom: 0.9rem; z-index: 2; display: inline-flex; align-items: center; text-decoration: none;
  min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--o-500); background: var(--o-500); color: #09090B;
  font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.04em; transition: background-color 200ms, border-color 200ms;
}
.nave-embed__abrir:hover, .nave-embed__abrir:focus-visible { background: var(--o-400); border-color: var(--o-400); }
.nave-embed__abrir:focus-visible { outline: 2px solid var(--o-500); outline-offset: 2px; }
.nave-embed.is-viva .nave-embed__abrir { display: none; }

/* 8. Celular y pantallas táctiles -------------------------------------------- */
@media (max-width: 1100px) {
  .sphere__help, .arcade__keys, .svc__tags li, .xp__tags li { font-size: 0.75rem; }
}
@media (pointer: coarse) {
  .ft__bottom nav a, .ft__bottom nav button, .ft__mail, .hd__nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs a { display: inline-block; padding-block: 0.8rem; margin-block: -0.8rem; }
}

/* 6. Zoom al ojo (hero.js) ------------------------------------------------------
   Más recorrido para la picada; el manifiesto queda fijo debajo del último tramo
   del hero, así al cruzar el ojo ya está ahí y solo se aleja (zoom out) */
.has-zoom .hero { height: 250vh; height: 250svh; z-index: 2; }
.has-zoom .mani { margin-top: -100vh; margin-top: -100svh; z-index: 1; }
.hero__warp { opacity: 0; }
.mani__lines { transform-origin: 50% 50%; will-change: transform, opacity; }
.mani__grid { transform-origin: 50% 50%; }

/* 7. El robot del logo (bot.js) ----------------------------------------------------
   Ojos vivos en el icono y la escapada con imanes */
.hd__icon { position: relative; }
.hd__eyes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hd__pupil { fill: #F4F6FF; }
.hd__happy { fill: none; stroke: #F4F6FF; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hd__eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 90ms ease-out; }
.hd__eye.is-shut { transform: scaleY(0.12); }
.hd__eyes.is-wide .hd__eye { transform: scale(1.25); transition-duration: 160ms; }
.hd__eyes.is-happy .hd__pupil { opacity: 0; }
.hd__eyes.is-happy .hd__happy { opacity: 1; }
/* la caja vacía mientras anda afuera */
.hd__icon img, .hd__eyes { transition: opacity 200ms ease, transform 300ms ease; }
.hd__icon.is-out img, .hd__icon.is-out .hd__eyes { opacity: 0.12; transform: scale(0.8); }
.hd__icon.is-out { box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 2px rgb(255 138 0 / 0.35); }

.bot-run {
  position: fixed; left: 0; top: 0; z-index: 9990;
  width: 150px; aspect-ratio: 1448 / 1086;
  transform-origin: 50% 20%;
  pointer-events: none; opacity: 0; visibility: hidden;
  filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.35));
}
.bot-run.is-on { visibility: visible; }
.bot-run img { width: 100%; height: 100%; display: block; }
.bot-run__mag {
  position: absolute; left: var(--x); top: var(--y);
  width: 22%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(closest-side, rgb(255 138 0 / 0.75), rgb(255 138 0 / 0.15) 60%, transparent);
  opacity: 0; mix-blend-mode: screen;
  transition: opacity 200ms, transform 300ms;
}
.bot-run.is-mag .bot-run__mag { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: botMag 420ms ease-in-out infinite alternate; }
/* ondas del campo magnético */
.bot-run__mag::after {
  content: ''; position: absolute; inset: 20%; border-radius: 50%;
  border: 2px solid rgb(255 138 0 / 0.8); opacity: 0;
}
.bot-run.is-mag .bot-run__mag::after { animation: botWave 700ms ease-out infinite; }
@keyframes botMag { to { transform: translate(-50%, -50%) scale(1.25); } }
@keyframes botWave { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(2.4); } }
.bot-loot { z-index: 9991; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hd__eye { transition: none; } }


/* 8. Ficha del proyecto como en tbō (initCaseFx en core.js) ------------------------
   Sala oscura con la portada desenfocada y el nombre gigante; apertura desde lo tocado */
.case {
  position: fixed; inset: 0; width: 100%; height: 100%;
  background: #0B0B0E; color: #F4F4F5; overflow-x: hidden; isolation: isolate;
  scrollbar-color: rgb(255 255 255 / 0.25) transparent;
  --k: #FF8A00;
  --ink: #F4F4F5; --ink-2: rgb(244 244 245 / 0.72); --line: rgb(255 255 255 / 0.12);
  --surface-2: rgb(255 255 255 / 0.08); --bg-2: rgb(22 22 28 / 0.62); --bg: #0B0B0E;
}
.case[open] { animation: none; }
.case::backdrop { background: rgb(5 5 8 / 0.7); }
.case__bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.case__bg canvas { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; max-height: none; opacity: 0.5; transform: scale(1.1); will-change: transform, opacity; }
.case__bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 30% 35%, color-mix(in oklab, var(--k) 55%, transparent), transparent 70%), linear-gradient(180deg, rgb(11 11 14 / 0.2), rgb(11 11 14 / 0.85) 75%);
}
.case__giant {
  position: fixed; left: 0; bottom: -0.16em; z-index: -1; margin: 0; pointer-events: none;
  font: 650 clamp(5rem, 19vw, 20rem)/1 var(--f-sans); letter-spacing: -0.06em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.13);
  animation: caseDrift 38s linear infinite alternate;
}
@keyframes caseDrift { from { translate: 2vw 0; } to { translate: calc(100vw - 100% - 2vw) 0; } }
.case__inner { position: relative; padding-top: clamp(5rem, 9vw, 6.5rem); padding-bottom: 2.5rem; }
.case__close { top: clamp(1rem, 2vw, 1.5rem); right: clamp(1rem, 2vw, 1.5rem); z-index: 5; background: #F4F4F5; color: #0B0B0E; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6); }
.case__bento { grid-auto-rows: minmax(clamp(110px, 16vh, 170px), auto); gap: 12px; }
.case__bento > * { border-radius: 22px; }
.case__hero { position: relative; box-shadow: 0 40px 90px -40px color-mix(in oklab, var(--k) 70%, #000), 0 0 0 1px rgb(255 255 255 / 0.08); }
.case__hero img { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.case__hero:hover img { transform: scale(1.04); }
.case__info { background: rgb(20 20 26 / 0.82); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
.case__num { color: var(--o-500); letter-spacing: 0.14em; }
.case__title { color: #fff; }
.case__tags li { border: 1px solid rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.06); color: #F4F4F5; }
.case__nav { gap: 1rem; margin-top: 1.75rem; }
.case__nav button { padding: 0.85rem 1.4rem; min-height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.18); color: #F4F4F5; background: rgb(255 255 255 / 0.04); transition: background-color 200ms, color 200ms, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.case__nav button:hover { background: #F4F4F5; color: #0B0B0E; }
.case__prev:hover { transform: translateX(-4px); }
.case__next:hover { transform: translateX(4px); }
.case.is-single .case__crop, .case.is-single .case__url { display: none; }
.case.has-shots .case__crop img { transform: none; object-position: 50% 50%; }
@media (min-width: 861px) {
  .case.is-single .case__hero, .case.is-single .case__info { grid-row: span 4; }
  .case.is-single .case__hero { grid-column: span 7; }
  .case.is-single .case__info { grid-column: span 5; justify-content: center; }
}
@media (max-width: 860px) {
  .case__bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .case__hero, .case__info { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .case__hero { aspect-ratio: 16 / 10; }
  .case__giant { font-size: 30vw; }
}
/* apertura */
.case.is-enter { animation: caseOpen 900ms cubic-bezier(0.77, 0, 0.18, 1) both; }
@keyframes caseOpen { from { transform: translate(var(--otx, 0), var(--oty, 0)) scale(var(--osc, 0.3)); opacity: 0.25; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
.case.is-enter::backdrop { animation: caseFade 500ms ease-out both; }
@keyframes caseFade { from { opacity: 0; } }
.case.is-enter .case__bg canvas { animation: caseBg 1500ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes caseBg { from { opacity: 0; transform: scale(1.6); } }
.case.is-enter .case__giant { animation: caseGiant 1500ms cubic-bezier(0.16, 1, 0.3, 1) 250ms both, caseDrift 38s linear 1750ms infinite alternate; }
@keyframes caseGiant { from { opacity: 0; translate: 40vw 0; letter-spacing: 0.1em; } to { translate: 2vw 0; } }
.case.is-enter .case__hero { animation: caseHero 1150ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both; transform-origin: 30% 60%; will-change: transform, opacity; }
@keyframes caseHero {
  from { opacity: 0; transform: perspective(1400px) translate3d(-6%, 90px, 0) rotateX(16deg) rotateY(18deg) scale(0.82); }
  to { opacity: 1; transform: none; }
}
.case.is-enter .case__hero img { animation: caseKen 1700ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both; }
@keyframes caseKen { from { transform: scale(1.35); } }
.case.is-enter .case__info { animation: caseInfo 900ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both; }
@keyframes caseInfo { from { opacity: 0; transform: translate3d(70px, 0, 0); } }
.case.is-enter .case__info > * { animation: caseUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.case.is-enter .case__info > :nth-child(1) { animation-delay: 560ms; }
.case.is-enter .case__info > :nth-child(2) { animation: caseTitle 900ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both; }
.case.is-enter .case__info > :nth-child(3) { animation-delay: 700ms; }
.case.is-enter .case__info > :nth-child(4) { animation-delay: 760ms; }
.case.is-enter .case__info > :nth-child(5) { animation-delay: 820ms; }
.case.is-enter .case__info > :nth-child(6) { animation: casePop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 900ms both; }
@keyframes caseUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes caseTitle { from { opacity: 0; transform: translateY(0.5em); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }
@keyframes casePop { from { opacity: 0; transform: scale(0.6); } }
.case.is-enter .case__tags li { animation: casePop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.case.is-enter .case__tags li:nth-child(1) { animation-delay: 840ms; }
.case.is-enter .case__tags li:nth-child(2) { animation-delay: 900ms; }
.case.is-enter .case__tags li:nth-child(3) { animation-delay: 960ms; }
.case.is-enter .case__close { animation: caseCloseIn 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 650ms both; }
@keyframes caseCloseIn { from { opacity: 0; transform: rotate(-180deg) scale(0.2); } }
.case.is-enter .case__nav { animation: caseUp 700ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms both; }
/* paso a otro proyecto */
.case { --dir: 1; }
.case.is-swap .case__hero { animation: caseSwapHero 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes caseSwapHero { from { opacity: 0; transform: perspective(1400px) translate3d(calc(var(--dir) * 14%), 0, 0) rotateY(calc(var(--dir) * -14deg)) scale(0.9); } }
.case.is-swap .case__hero img { animation: caseKen 1100ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.case.is-swap .case__bg canvas { animation: caseFade 900ms ease-out both; }
.case.is-swap .case__giant { animation: caseSwapGiant 900ms cubic-bezier(0.16, 1, 0.3, 1) both, caseDrift 38s linear 900ms infinite alternate; }
@keyframes caseSwapGiant { from { opacity: 0; translate: calc(var(--dir) * 30vw + 2vw) 0; } to { translate: 2vw 0; } }
.case.is-swap .case__info > * { animation: caseSwapIn 650ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.case.is-swap .case__info > :nth-child(2) { animation-delay: 60ms; }
.case.is-swap .case__info > :nth-child(3) { animation-delay: 110ms; }
.case.is-swap .case__info > :nth-child(4) { animation-delay: 150ms; }
.case.is-swap .case__info > :nth-child(5) { animation-delay: 190ms; }
.case.is-swap .case__info > :nth-child(6) { animation-delay: 230ms; }
@keyframes caseSwapIn { from { opacity: 0; transform: translate3d(calc(var(--dir) * 40px), 0, 0); } }
/* cierre */
.case.is-leave { animation: caseClose 420ms cubic-bezier(0.7, 0, 0.84, 0) both; pointer-events: none; }
@keyframes caseClose { to { transform: translate(var(--otx, 0), var(--oty, 0)) scale(var(--osc, 0.3)); opacity: 0; } }
.case.is-leave::backdrop { animation: caseFadeOut 420ms ease-in both; }
@keyframes caseFadeOut { to { opacity: 0; } }
.case.is-leave .case__inner { animation: caseLeave 420ms cubic-bezier(0.7, 0, 0.84, 0) both; }
@keyframes caseLeave { to { opacity: 0.4; transform: scale(0.94); } }
@media (max-width: 760px) {
  @keyframes caseHero { from { opacity: 0; transform: perspective(1000px) translate3d(0, 60px, 0) rotateX(14deg) scale(0.88); } to { opacity: 1; transform: none; } }
  .case__info { background: rgb(22 22 28 / 0.88); }
}
@media (prefers-reduced-motion: reduce) { .case__giant { animation: none; } }
