/* Píxel y Código — home */
:root {
  --bg: #0C0C0D;
  --surface: #151517;
  --line: #2A2A2E;
  --line-2: #3A3A3F;
  --bone: #F2F1EC;
  --soft: #D9D8D2;
  --muted: #B9B8B2;
  --dim: #8E8D88;
  --off: #6E6D69;
  --lime: #C8F53C;
  --coral: #FF6B4A;
  --display: 'Archivo', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pixel: 'Silkscreen', var(--mono);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--bone); font-family: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--lime); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lime { color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 10px 16px; background: var(--lime); color: var(--bg); font: 13px var(--mono); border-radius: 999px; }
.skip-link:hover { color: var(--bg); }
.skip-link:focus { top: 12px; }
.cursor { color: var(--lime); animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; background: var(--bg); }
.is-animated .hero { height: 320vh; }
.hero__sticky { --photo-top: 64px; position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; }
.hero__canvas, .hero__veil, .hero__grid { position: absolute; inset: 0; }
.hero__veil { background: linear-gradient(0deg, #0C0C0D 0%, rgba(12,12,13,0) 16%), linear-gradient(90deg, rgba(12,12,13,.8) 0%, rgba(12,12,13,.55) 32%, rgba(12,12,13,0) 56%); pointer-events: none; }
.hero__grid { background-image: linear-gradient(rgba(242,241,236,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(242,241,236,.035) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.hero__canvas canvas { width: 100%; height: 100%; display: block; }
/* Foto del hero: primer pintado y respaldo sin JS o sin canvas. hero-fx.js copia este encuadre. */
.hero__photo { display: block; position: absolute; left: 0; top: var(--photo-top); width: 100%; height: calc(100% - var(--photo-top)); object-fit: cover; object-position: 80% 0%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 28px); mask-image: linear-gradient(180deg, transparent, #000 28px); }
.fx-ready .hero__photo { opacity: 0; }
.no-3d .hero__photo { opacity: 1; }
.no-3d .hero__canvas { display: none; }

.header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter); }
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo:hover { color: var(--bone); }
.logo__pixel { font-family: var(--pixel); font-size: 22px; letter-spacing: .02em; }
.logo__code { font-family: var(--mono); font-size: 15px; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--mono); font-size: 13px; }
.nav__link { color: var(--muted); }
.nav__link:hover { color: var(--bone); }
.nav__cta { padding: 10px 16px; border: 1px solid var(--lime); color: var(--lime); border-radius: 999px; }
.nav__cta:hover { background: var(--lime); color: var(--bg); }
.menu-toggle { display: none; }

.hero__tag { font-family: var(--mono); font-size: 13px; color: var(--lime); margin-bottom: 24px; }
.hero__tag--coral { color: var(--coral); }
.hero__tag--static { display: none; }
.is-reduced .hero__tag--static { display: block; }
.hero__static { position: absolute; left: var(--gutter); bottom: 15vh; z-index: 2; max-width: min(640px, 60vw); }
.hero__h1 { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 800; font-size: clamp(44px, 6vw, 96px); line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
/* Animado: el h1 queda solo para lectores de pantalla; las frases visuales van con aria-hidden */
.is-animated .hero__static { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero__stages, .rail, .hero__hint { display: none; }
.is-animated .hero__stages { display: grid; position: absolute; left: var(--gutter); bottom: 15vh; z-index: 2; width: min(680px, 58vw); }
.stage { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .8s var(--ease); pointer-events: none; }
.stage.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.stage.is-prev { transform: translateY(-40px); }
.stage__title { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 800; font-size: clamp(52px, 7.4vw, 124px); line-height: .92; letter-spacing: -.04em; }
.stage__lead { margin-top: 28px; max-width: 420px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.stage__logo { display: flex; align-items: baseline; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.stage__logo-pixel { font-family: var(--pixel); font-size: clamp(28px, 3vw, 44px); }
.stage__logo-code { font-family: var(--mono); font-size: clamp(20px, 2vw, 28px); }

.is-animated .rail { display: flex; gap: 16px; position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); z-index: 2; }
.rail__track { position: relative; width: 2px; background: var(--line); }
.rail__bar { position: absolute; inset: 0; background: var(--lime); transform: scaleY(0); transform-origin: top; }
.rail__stages { display: flex; flex-direction: column; gap: 44px; }
.rail__btn { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--off); text-align: left; }
.rail__btn.is-active { color: var(--bone); }
.rail__btn--machine.is-active { color: var(--lime); }
.is-animated .hero__hint { display: block; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; transition: opacity .4s; }
.is-animated .hero__hint.is-hidden { opacity: 0; }

/* ---------- Secciones ---------- */
.section { max-width: 1440px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section__head--services { margin-bottom: 56px; }
.section__head--projects { margin-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--dim); margin-bottom: 20px; }
.eyebrow--backing { margin-bottom: 32px; }
.eyebrow--contact { margin-bottom: 28px; }
.title { font-family: var(--display); font-variation-settings: 'wdth' 110; font-weight: 800; font-size: clamp(40px, 5vw, 80px); line-height: .95; letter-spacing: -.035em; }
.title--narrow { max-width: 820px; }
.title--proc { margin-bottom: 64px; }
.section__intro { max-width: 360px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- Dos mundos ---------- */
.worlds { display: flex; flex-wrap: wrap; gap: 12px; min-height: 600px; }
.world { flex: 1 1 0; min-width: 280px; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: default; transition: flex .7s var(--ease); }
.worlds[data-open="pixel"] .world--pixel, .worlds[data-open="code"] .world--code { flex: 1.8 1 0; }
.worlds[data-open="pixel"] .world--code, .worlds[data-open="code"] .world--pixel { flex: .8 1 0; }
.world__stage { flex: 1; min-height: 340px; position: relative; }
.world--pixel .world__stage { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,107,74,.16), rgba(255,107,74,0) 70%), #121214; }
.world--code .world__stage { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(200,245,60,.12), rgba(200,245,60,0) 70%), #121214; }
.world__obj { position: absolute; inset: 0; }
.world__label { position: absolute; left: 20px; top: 18px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.world__body { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.world__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.world__name--pixel { font-family: var(--pixel); font-weight: 400; font-size: 44px; color: var(--coral); }
.world__name--code { font-family: var(--mono); font-weight: 500; font-size: 40px; color: var(--lime); letter-spacing: -.02em; }
.world__kind { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.world__text { max-width: 460px; font-size: 17px; line-height: 1.5; color: var(--soft); }
.chips { display: none; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.worlds[data-open="pixel"] .world--pixel .chips, .worlds[data-open="code"] .world--code .chips { display: flex; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
html:not(.js) .chips { display: flex; }
.fusion { flex: 0 1 318px; min-width: 278px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px 28px; border: 1px solid var(--lime); border-radius: 4px; background: linear-gradient(180deg, rgba(200,245,60,.06), rgba(200,245,60,0)); }
.fusion__tag { font-family: var(--mono); font-size: 13px; color: var(--lime); }
.fusion__obj { height: 220px; margin: -8px -12px; }
.fusion__title { margin-bottom: 16px; font-family: var(--display); font-variation-settings: 'wdth' 108; font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.fusion__text { font-size: 16px; line-height: 1.55; color: var(--soft); }
.fusion__link { font-family: var(--mono); font-size: 13px; color: var(--lime); }
.world__obj canvas, .fusion__obj canvas, .contact__obj canvas { width: 100%; height: 100%; display: block; }
.obj-img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: screen; transform-origin: 50% 50%; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }

/* ---------- Proyectos ---------- */
.more-link { font-family: var(--mono); font-size: 14px; color: var(--lime); padding-bottom: 6px; border-bottom: 1px solid var(--lime); }
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.projects__item { display: flex; min-width: 0; --media: 320px; }
.projects__item--a { grid-column: span 7; --media: 380px; }
.projects__item--b { grid-column: span 5; --media: 380px; }
.projects__item--c { grid-column: span 5; --media: 300px; }
.projects__item--d { grid-column: span 7; --media: 300px; }
.projects__item--e, .projects__item--f { grid-column: span 6; }
.card { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--bone); }
.card--link { transition: border-color .3s, transform .4s var(--ease); }
.card--link:hover, .card--link:focus-visible { color: var(--bone); border-color: var(--lime); transform: translateY(-4px); }
.card__media { position: relative; height: var(--media); background: repeating-linear-gradient(135deg, #17171a 0 10px, #1c1c20 10px 20px); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
/* el nombre va primero en el HTML (lectura) y debajo de la línea de tipo en pantalla */
.card__meta { order: -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 12px; }
.card__type--code { color: var(--lime); }
.card__type--pixel { color: var(--coral); }
.card__url { color: var(--dim); overflow-wrap: anywhere; }
.card__name { font-family: var(--display); font-variation-settings: 'wdth' 106; font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.card__result { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.projects__count { display: none; }

/* ---------- Así trabajo ---------- */
.proc__line { position: relative; height: 2px; margin-bottom: 40px; background: var(--line); }
.proc__bar { position: absolute; inset: 0; background: var(--lime); transform-origin: left; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step__n { font-family: var(--mono); font-size: 14px; color: var(--lime); margin-bottom: 20px; }
.step__title { margin-bottom: 14px; font-family: var(--display); font-variation-settings: 'wdth' 106; font-weight: 700; font-size: 28px; letter-spacing: -.02em; line-height: 1.05; }
.step__text { max-width: 300px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Respaldo ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 40px 32px; min-width: 0; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__big { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 800; font-size: clamp(36px, 3.6vw, 56px); letter-spacing: -.03em; line-height: 1; }
.fact__text { font-size: 16px; line-height: 1.5; color: var(--muted); }
.backers { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 32px; font-family: var(--mono); font-size: 13px; color: var(--dim); }

/* ---------- Contacto y pie ---------- */
.contact { position: relative; padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px); }
.contact__obj { position: absolute; right: 0; bottom: clamp(40px, 5vw, 80px); width: min(460px, 38vw); height: min(440px, 36vw); pointer-events: none; }
.contact__obj:has(.obj-img) { z-index: 0; opacity: .45; }
.contact__title { position: relative; z-index: 1; font-family: var(--display); font-variation-settings: 'wdth' 115; font-weight: 800; font-size: clamp(52px, 9vw, 152px); line-height: .9; letter-spacing: -.045em; }
.contact__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; width: fit-content; max-width: 100%; }
.btn { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 26px 36px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.btn__detail { font-family: var(--mono); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.btn--primary { background: var(--lime); color: var(--bg); transition: transform .3s var(--ease); }
.btn--primary:hover { color: var(--bg); transform: scale(1.03); }
.btn--secondary { border: 1px solid var(--bone); transition: background .3s, color .3s; }
.btn--secondary:hover { background: var(--bone); color: var(--bg); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 32px var(--gutter); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--dim); }
.footer__logo { display: flex; align-items: baseline; gap: 8px; color: var(--bone); }
.footer__pixel { font-family: var(--pixel); font-size: 16px; }
.footer__link { color: var(--dim); }

/* ---------- El Bit (bit.js): lienzo detrás del contenido, nunca recibe clics ---------- */
/* Sin WebGL o sin JS no existe .has-bit y nada de esto aplica */
.has-bit body { position: relative; background: transparent; }
.bit-layer { position: absolute; inset: 0; z-index: -1; overflow: hidden; overflow: clip; pointer-events: none; }
/* El Bit forma la "P" en contacto: la imagen del logo sobra (con reducir movimiento el Bit se queda en el hero y la imagen vuelve) */
.is-animated.has-bit .contact__obj { display: none; }
.bit-canvas { position: absolute; left: 0; top: 0; display: block; pointer-events: none; will-change: transform; }

/* ---------- Táctil: etiquetas siempre visibles ---------- */
@media (hover: none), (max-width: 960px) {
  .chips { display: flex; }
  .only-hover { display: none; }
}

/* ---------- Dos mundos apilados ---------- */
@media (max-width: 960px) {
  .worlds { flex-direction: column; flex-wrap: nowrap; min-height: 0; }
  .worlds .world.world { flex: none; min-width: 0; }
  .world__stage { flex: none; height: 300px; min-height: 0; }
  .fusion { flex: none; min-width: 0; }
}

/* ---------- Móvil y tableta ---------- */
@media (max-width: 900px) {
  .hero, .hero__sticky { min-height: 560px; }
  .hero { height: 100vh; height: 100svh; }
  .hero__sticky { height: 100vh; height: 100svh; }
  .is-animated .hero { height: 320vh; }
  .hero__sticky { --photo-top: 72px; --portrait: min(66%, calc(100% - 210px)); }
  .hero__veil { display: none; }
  /* retrato arriba (recorte centrado en la cara), titular abajo sobre negro */
  .hero__canvas { bottom: auto; height: var(--portrait); -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 99%); mask-image: linear-gradient(180deg, #000 68%, transparent 99%); }
  .hero__photo { height: calc(var(--portrait) - var(--photo-top)); object-position: 96% 0%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 28px, #000 65%, transparent 99%); mask-image: linear-gradient(180deg, transparent, #000 28px, #000 65%, transparent 99%); }
  .hero__static { left: 22px; right: 22px; bottom: 56px; max-width: none; }
  .hero__h1 { font-variation-settings: 'wdth' 108; font-size: clamp(34px, min(10.2vw, 5.4vh), 60px); line-height: .96; }
  .hero__tag { font-size: 11px; margin-bottom: 12px; }
  .is-animated .hero__stages { left: 22px; right: 22px; bottom: 80px; width: auto; }
  .stage__title { font-variation-settings: 'wdth' 108; font-size: clamp(40px, min(12.6vw, 7.6vh), 72px); line-height: .94; }
  .stage__lead { margin-top: 16px; font-size: 15px; }
  .stage__logo { gap: 8px; margin-top: 18px; padding-top: 14px; }
  .stage__logo-pixel { font-size: 24px; }
  .stage__logo-code { font-size: 16px; }
  /* el selector lateral pasa a tres barras horizontales */
  .is-animated .rail { top: auto; left: 22px; right: 22px; bottom: 34px; transform: none; }
  .rail__track { display: none; }
  .rail__stages { flex: 1; flex-direction: row; gap: 6px; }
  .rail__btn { flex: 1; position: relative; height: 27px; }
  .rail__btn::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 3px; background: var(--line); }
  .rail__btn.is-done::before { background: var(--lime); }
  .rail__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-animated .hero__hint { display: none; }

  .projects__item.projects__item { grid-column: span 12; }

  .facts { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .fact { padding: 18px 12px 18px 0; gap: 6px; border-bottom: 1px solid var(--line); }
  .fact:first-child { grid-column: span 2; padding-right: 0; }
  .fact + .fact { border-left: 0; }
  .fact:last-child { padding: 18px 0 18px 12px; border-left: 1px solid var(--line); }
  .fact__big { font-size: clamp(24px, 7vw, 40px); }
  .fact__text { font-size: 14px; }
}

@media (max-width: 720px) {
  .header { padding: max(20px, env(safe-area-inset-top)) 22px 20px; gap: 12px; }
  .logo { gap: 6px; }
  .logo__pixel { font-size: 16px; }
  .logo__code { font-size: 11px; }
  .js .menu-toggle { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(12,12,13,.6); color: var(--bone); font: 14px var(--mono); cursor: pointer; }
  .js .nav { display: none; position: absolute; top: calc(100% - 8px); left: 22px; right: 22px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
  .js .nav.is-open { display: flex; }
  .js .nav__link { padding: 12px; }
  .js .nav__cta { padding: 12px 16px; text-align: center; }
  html:not(.js) .header { flex-wrap: wrap; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 14px; }

  .section { padding: 56px 22px 0; }
  .section__head { gap: 16px; }
  .section__head--services, .section__head--projects { margin-bottom: 24px; }
  .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .title { font-variation-settings: 'wdth' 108; font-size: 36px; line-height: .98; letter-spacing: -.03em; }
  .title--proc { margin-bottom: 28px; }
  .section__intro { font-size: 15px; }

  .worlds { gap: 10px; }
  .world__stage { height: 220px; }
  .world__label { left: 14px; top: 12px; }
  .world__body { gap: 12px; padding: 18px; }
  .world__name--pixel { font-size: 28px; }
  .world__name--code { font-size: 26px; }
  .world__text, .fusion__text { font-size: 15px; }
  .fusion { gap: 14px; padding: 18px; }
  .fusion__tag { font-size: 11px; }
  .fusion__obj { height: 170px; margin: 0; }
  .fusion__title { margin-bottom: 8px; font-size: 22px; }

  /* carrusel de proyectos; el scroll queda dentro de la lista */
  .projects { display: flex; gap: 10px; margin: -6px -22px 0; padding: 6px 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .projects::-webkit-scrollbar { display: none; }
  .projects__item.projects__item { flex: 0 0 min(290px, 100%); --media: 180px; scroll-snap-align: start; }
  .card__body { gap: 8px; padding: 18px; }
  .card__meta { flex-direction: column; font-size: 11px; }
  .card__name { font-size: 21px; }
  .card__result { font-size: 14px; }
  .projects__count { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

  .proc__line { display: none; }
  .steps { display: flex; flex-direction: column; gap: 0; }
  .step { padding: 0 0 22px 18px; border-left: 2px solid var(--lime); }
  .step.is-pending { border-left-color: var(--line); }
  .step:last-child { padding-bottom: 0; }
  .step__n { font-size: 12px; margin-bottom: 4px; }
  .step__title { margin-bottom: 6px; font-size: 22px; }
  .step__text { font-size: 15px; max-width: none; }

  .backers { gap: 12px 24px; margin-top: 20px; font-size: 11px; }

  .contact { padding: 72px 22px 40px; }
  .contact__obj { display: none; }
  .contact__title { font-variation-settings: 'wdth' 112; font-size: clamp(40px, 12.3vw, 64px); line-height: .92; letter-spacing: -.04em; }
  .contact__actions { flex-direction: column; gap: 10px; width: 100%; margin-top: 32px; }
  .btn { flex-direction: column; justify-content: center; gap: 4px; padding: 18px 20px; font-size: 18px; text-align: center; }
  .btn__detail { font-size: 12px; }
  .footer { padding: 28px 22px; font-size: 11px; }
}

@media (max-width: 599px) {
  /* como en los fotogramas móviles: solo el titular; el texto sigue disponible para lectores */
  .stage__lead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
}

/* Celular apaisado: texto a la izquierda, retrato a la derecha */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  .hero, .hero__sticky { min-height: 340px; }
  .hero__sticky { --photo-top: 66px; }
  .hero__canvas { left: 46%; height: 100%; }
  .hero__photo { left: 46%; width: 54%; height: calc(100% - var(--photo-top)); object-position: 100% 0%; }
  .hero__canvas, .hero__photo { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
  .hero__static, .is-animated .hero__stages { right: 50%; }
  .is-animated .rail { right: 50%; bottom: 20px; }
  .is-animated .hero__stages { bottom: 60px; }
  .hero__static { bottom: 28px; }
  .hero__h1 { font-size: 30px; }
  .stage__title { font-size: clamp(32px, 10vh, 48px); }
  .stage__lead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .js .nav a { padding-top: 8px; padding-bottom: 8px; }
}

/* ---------- Reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .stage, .world, .card--link, .btn, .hero__hint { transition: none; }
  .card--link:hover, .card--link:focus-visible, .btn--primary:hover { transform: none; }
}

/* ---------- Cambio de página ---------- */
.load-bar { position: fixed; top: 0; left: 0; z-index: 20; width: 100%; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.is-leaving .load-bar { transform: scaleX(.7); transition: transform .35s ease; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .is-leaving .load-bar { transition: none; }
}
