/* ============ MANIFIESTO · #manifiesto (+ quiénes somos) ============ */
.mf { position: relative; }

/* --- base (sin JS / movimiento reducido): cinco bloques normales; cada uno trae su figura en data-shape --- */
.mf-in { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }
.mf-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: clamp(3rem, 8vw, 7rem); margin-bottom: clamp(1rem, 3vw, 2.4rem); }
.mf-top .eyebrow .num { color: var(--muted); }
.mf-text { grid-column: 1 / span 7; position: relative; isolation: isolate; }
.mf-phrase { min-height: 70vh; min-height: 70svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(2rem, 6vh, 4rem); }

.mf-lead { font-size: clamp(2.1rem, .8rem + 4.3vw, 5.2rem); line-height: .99; letter-spacing: -.04em; font-weight: 720; text-wrap: balance; margin: 0; }
.mf-lead em, .mf-em { font-style: normal; }
.mf-body { margin: clamp(1.1rem, 2vw, 1.8rem) 0 0; font-size: clamp(1.1rem, .98rem + .55vw, 1.5rem); line-height: 1.4; color: var(--paper-2); max-width: 36ch; }
.mf-w { display: inline; }
.mf-lead em .mf-w, .mf-lead em { color: var(--accent); }

/* lectura garantizada: un velo oscuro detrás del texto, porque el polvo de cubos pasa por debajo */
.mf-text::before { content: ''; position: absolute; z-index: -1; inset: -12vh -10vw -12vh -9vw; pointer-events: none; background: radial-gradient(ellipse 70% 62% at 36% 50%, rgba(13, 13, 16, .84), rgba(13, 13, 16, .58) 55%, rgba(13, 13, 16, 0) 100%); }

/* --- escena fija con scroll horizontal (JS + movimiento normal): la sección queda pineada y las 5 frases corren de costado ---
   La escena mide N pantallas de alto (--mf-n, lo pone el JS); cada pantalla de scroll = un panel. El JS mueve el track con translateX
   según el progreso y, mientras la escena está tomada, cada gesto (rueda, trackpad, swipe, teclado) avanza exactamente un panel. */
.mf-pinned .mf-scene { height: calc(var(--mf-n, 5) * 100vh); height: calc(var(--mf-n, 5) * 100svh); position: relative; }
.mf-pinned .mf-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; }
.mf-pinned .mf-in { height: 100%; grid-template-rows: auto 1fr; padding-bottom: clamp(24px, 6vh, 64px); }
.mf-pinned .mf-top { padding-top: clamp(84px, 11.5vh, 118px); margin-bottom: 0; align-items: center; }
.mf-pinned .mf-text { grid-column: 1 / -1; align-self: center; display: flex; flex-wrap: nowrap; isolation: auto; will-change: transform; }
.mf-pinned .mf-text::before { display: none; }
.mf-pinned .mf-phrase { flex: 0 0 100vw; width: 100vw; min-height: 0; padding-block: 0; justify-content: flex-start; position: relative; isolation: isolate; }
.mf-pinned .mf-phrase > * { max-width: min(calc((min(100vw, var(--maxw, 100vw)) - 2 * var(--gutter)) * .58), 60rem); }
/* el velo de lectura viaja con su frase */
.mf-pinned .mf-phrase::before { content: ''; position: absolute; z-index: -1; top: -12vh; bottom: -12vh; left: -9vw; width: min(78vw, 70rem); pointer-events: none; background: radial-gradient(ellipse 70% 62% at 42% 50%, rgba(13, 13, 16, .84), rgba(13, 13, 16, .58) 55%, rgba(13, 13, 16, 0) 100%); }

/* indicador 01–05 + barra de progreso + flechas */
.mf-nav { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); }
.mf-nav[hidden] { display: none; }
.mf-nav__count { margin: 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); display: flex; gap: .5em; align-items: baseline; font-variant-numeric: tabular-nums; }
.mf-nav__count b { font-family: var(--font-pixel); font-weight: 400; font-size: 1.15rem; color: var(--paper); letter-spacing: 0; }
.mf-nav__bar { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mf-nav__bar li { width: clamp(18px, 2.4vw, 34px); height: 6px; background: var(--line-strong); transition: background .45s var(--ease-out); }
.mf-nav__bar li.is-done { background: var(--paper-2); }
.mf-nav__bar li.is-on { background: var(--accent); box-shadow: 3px 3px 0 -1px var(--cobalt); }
.mf-nav__btn { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-family: var(--font-mono); font-size: 1rem; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .3s, color .3s, box-shadow .3s, opacity .3s; }
.mf-nav__btn:hover, .mf-nav__btn:focus-visible { background: var(--lime); color: var(--ink); box-shadow: none; }
.mf-nav__btn:disabled { opacity: .3; pointer-events: none; }

/* --- quiénes somos (teaser de una pantalla) --- */
.mf-about { position: relative; min-height: 70vh; min-height: 70svh; display: flex; align-items: center; padding-block: clamp(3rem, 7vh, 5rem) clamp(3rem, 7vh, 5rem); }
.mf-about-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.mf-about-main { grid-column: 1 / span 6; display: grid; gap: clamp(1rem, 2.2vw, 1.7rem); justify-items: start; }
.mf-about-head, .mf-about-rest { display: grid; gap: clamp(1rem, 2.2vw, 1.7rem); justify-items: start; width: 100%; }
.mf-about-txt, .mf-about-rest { position: relative; isolation: isolate; }
.mf-about-txt { display: grid; gap: clamp(1rem, 2.2vw, 1.7rem); justify-items: start; }
.mf-about-txt::before, .mf-about-rest::before { content: ''; position: absolute; z-index: -1; inset: -8vh -8vw -4vh -9vw; pointer-events: none; background: radial-gradient(ellipse 70% 70% at 38% 50%, rgba(13, 13, 16, .8), rgba(13, 13, 16, .5) 45%, rgba(13, 13, 16, .2) 72%, rgba(13, 13, 16, 0) 100%); }
.mf-about-main .eyebrow .num { color: var(--muted); }
.mf-about-title { font-size: var(--step-5); line-height: .92; letter-spacing: -.045em; font-weight: 760; margin: 0; }
.mf-about-copy { max-width: 50ch; font-size: clamp(1.02rem, .96rem + .3vw, 1.22rem); line-height: 1.5; color: var(--paper-2); }
.mf-about-copy p { margin: 0; }
.mf-about-copy strong { color: var(--paper); font-weight: 600; }
.mf-ficha { margin: 0; width: 100%; max-width: 560px; border-top: 1px solid var(--line-strong); }
.mf-ficha > div { display: grid; grid-template-columns: minmax(5.5rem, 7rem) 1fr; gap: 1rem; padding: .7em 0; border-bottom: 1px solid var(--line); }
.mf-ficha dt { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.mf-ficha dd { margin: 0; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.4; color: var(--paper); }
.mf-about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.mf-about-link { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid var(--line-strong); padding-bottom: .25em; transition: border-color .4s var(--ease-out), color .4s var(--ease-out); }
.mf-about-link:hover { border-color: var(--accent); color: var(--accent); }

/* --- responsive --- */
@media (max-width: 980px) {
  .mf-text { grid-column: 1 / span 10; }
  .mf-about-main { grid-column: 1 / span 9; }
}
@media (max-width: 760px) {
  .mf-in { grid-template-columns: 1fr; }
  .mf-top { padding-top: 4.5rem; }
  .mf-text, .mf-about-main { grid-column: 1 / -1; }
  .mf-lead { font-size: clamp(1.95rem, 1rem + 5.8vw, 2.8rem); line-height: 1.02; }
  .mf-body { font-size: 1.08rem; }
  .mf-pinned .mf-in { padding-bottom: 12svh; }
  .mf-pinned .mf-top { padding-top: 76px; }
  .mf-pinned .mf-text { align-self: end; }
  .mf-pinned .mf-phrase { justify-content: flex-end; }
  .mf-pinned .mf-phrase > * { max-width: calc(100vw - 2 * var(--gutter)); }
  .mf-pinned .mf-phrase::before { left: -8vw; width: 100vw; top: -8vh; bottom: -6vh; background: linear-gradient(0deg, rgba(13, 13, 16, .86), rgba(13, 13, 16, .6) 70%, rgba(13, 13, 16, 0)); }
  .mf-pinned .mf-in { grid-template-columns: minmax(0, 1fr); }   /* el track mide 5 pantallas: sin esto la columna crece y el indicador queda afuera */
  .mf-pinned .mf-top { flex-wrap: wrap; row-gap: 10px; }
  .mf-nav__btn { display: none; }
  .mf-text::before { inset: -8vh -8vw -6vh -8vw; background: linear-gradient(0deg, rgba(13, 13, 16, .86), rgba(13, 13, 16, .6) 70%, rgba(13, 13, 16, 0)); }
  .mf-about { min-height: 0; display: block; padding-block: 0 4rem; }
  .mf-about-in { display: block; }
  .mf-about-main { gap: 0; }
  .mf-about-head { min-height: 80svh; align-content: end; padding-bottom: 2rem; }
  .mf-about-txt::before, .mf-about-rest::before { inset: -6vh -8vw -2vh; background: linear-gradient(0deg, rgba(13, 13, 16, .86), rgba(13, 13, 16, .6) 70%, rgba(13, 13, 16, 0)); }
  .mf-about-rest { padding-top: 1rem; }
  .mf-about-title { font-size: clamp(2.8rem, 1.6rem + 6vw, 4rem); }
  .mf-ficha > div { grid-template-columns: 5.2rem 1fr; gap: .7rem; }
}
