/* Panamax homepage — award-level experience layer (2026-10).
 *
 * How it is built (for whoever edits this next):
 *   - Everything new uses the .pmxv- prefix, so it cannot collide with the older
 *     inline styles or home-uplift.css.
 *   - The page is complete and readable with NO JavaScript: every section below
 *     has a calm default layout.
 *   - home-visual.js adds html.pmxv-fx on desktop when motion is allowed. Only
 *     then do the "scenes" switch on (pinned hero, pinned obra, sideways process).
 *     Scroll progress arrives as the CSS variable --p (0 → 1) on each scene.
 *   - prefers-reduced-motion: no pins, no intro, no smooth scroll, final states only.
 *
 * Brand rules kept (design-system/DESIGN.md): royal blue does the work, crimson
 * red is the spark; Archivo display type; no bounce or spring motion; real
 * Panamax footage only.
 */

:root {
  --pmxv-blue: #054491;
  --pmxv-blue-dark: #043a7c;
  --pmxv-sky: #8fc3ff;
  --pmxv-navy: #03203f;
  --pmxv-ink-deep: #020f20;
  --pmxv-red: #cd3439;
  --pmxv-red-dark: #b32b30;
  --pmxv-ink: #131c28;
  --pmxv-text: #51647a;
  --pmxv-grey: #f4f7fb;
  --pmxv-ease: cubic-bezier(.2, .7, .3, 1);
  --pmxv-ease-out: cubic-bezier(.16, 1, .3, 1);
  --pmxv-radius: 16px;
  --pmxv-shadow: 0 1px 2px rgba(3, 32, 63, .06), 0 18px 44px rgba(3, 32, 63, .12);
  --pmxv-header: 66px;
}

/* Lenis smooth scroll (desktop only, added by home-visual.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------- shared */
.pmxv-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); position: relative; width: 100%; box-sizing: border-box; }
.pmxv-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px Archivo, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pmxv-blue);
}
.pmxv-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--pmxv-red); flex: 0 0 auto; }
.pmxv-eyebrow--light { color: #9fc1ee; }
.pmxv-h2 {
  font: 800 clamp(30px, 4.4vw, 58px)/1.02 Archivo, sans-serif; font-stretch: 108%; letter-spacing: -.03em;
  color: var(--pmxv-ink); margin: 16px 0 0; max-width: 820px; text-wrap: balance;
}
.pmxv-h2--light { color: #fff; }

.pmxv-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 700 15.5px Archivo, sans-serif; text-decoration: none; white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.pmxv-btn svg { transition: transform .3s var(--pmxv-ease-out); }
.pmxv-btn:hover svg { transform: translateX(4px); }
.pmxv-btn--red { background: var(--pmxv-red); color: #fff; box-shadow: 0 10px 28px rgba(205, 52, 57, .4); }
.pmxv-btn--red:hover { background: var(--pmxv-red-dark); }
.pmxv-btn--blue { background: var(--pmxv-blue); color: #fff; }
.pmxv-btn--blue:hover { background: var(--pmxv-blue-dark); }
.pmxv-btn--glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pmxv-btn--glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .62); }
.pmxv-link { display: inline-flex; align-items: center; height: 54px; font: 700 15.5px Archivo, sans-serif; color: #fff; text-decoration: none; }
.pmxv-link span { border-bottom: 1.5px solid rgba(255, 255, 255, .45); padding-bottom: 3px; transition: border-color .2s ease; }
.pmxv-link:hover span { border-color: #fff; }
.pmxv-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.pmxv-checks li { display: flex; align-items: flex-start; gap: 10px; font: 500 15px/1.45 Archivo, sans-serif; color: #34465a; }
.pmxv-checks svg { flex: 0 0 auto; margin-top: 3px; color: #1e8a5b; }

/* film grain on dark sections: a tiny inline SVG noise, very faint */
.pmxv-hero::after, .pmxv-xp::after, .pmxv-proc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .07; mix-blend-mode: overlay;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- INTRO */
/* Navy curtain: the roof chevron draws, the wordmark rises, a counter runs to 100, then the curtain lifts.
   pointer-events: none so it can never block a tap; CSS removes it by itself after 2.6 s. */
.pmxv-intro { display: none; }
html.pmxv-intro-on .pmxv-intro {
  display: flex; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--pmxv-ink-deep); color: #fff;
  animation: pmxvCurtain .9s var(--pmxv-ease-out) 1.7s forwards;
}
html.pmxv-intro-on .pmxv-intro.is-leaving { animation: pmxvCurtain .9s var(--pmxv-ease-out) forwards; }
.pmxv-intro__chev { width: 120px; overflow: visible; }
.pmxv-intro__chev polygon { fill: transparent; stroke: #fff; stroke-width: 3; stroke-dasharray: 900; stroke-dashoffset: 900; animation: pmxvDraw 1.1s var(--pmxv-ease) .1s forwards, pmxvFillChev .5s ease 1s forwards; }
.pmxv-intro__chev polygon + polygon { animation-delay: .25s, 1.1s; }
.pmxv-intro__word { font: 900 clamp(34px, 5vw, 64px)/1 Archivo, sans-serif; font-stretch: 125%; letter-spacing: .04em; clip-path: inset(0 0 100% 0); animation: pmxvWipeUp .8s var(--pmxv-ease-out) .45s forwards; }
.pmxv-intro__meta { display: flex; align-items: center; gap: 14px; font: 500 12px 'Spline Sans Mono', ui-monospace, monospace; letter-spacing: .1em; color: #8fb3e3; }
.pmxv-intro__line { width: 140px; height: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.pmxv-intro__line i { display: block; height: 100%; background: var(--pmxv-red); transform-origin: left; transform: scaleX(0); }
@keyframes pmxvCurtain { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes pmxvDraw { to { stroke-dashoffset: 0; } }
@keyframes pmxvFillChev { to { fill: #fff; } }
@keyframes pmxvWipeUp { to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------- HERO */
/* Default (phones, no JS, reduced motion): full-bleed footage behind the copy. */
.pmxv-hero { position: relative; background: var(--pmxv-ink-deep); color: #fff; isolation: isolate; }
.pmxv-hero__stage {
  position: relative; overflow: hidden;
  min-height: clamp(620px, calc(100svh - var(--pmxv-header)), 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pmxv-hero__frame { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b2a52; }
.pmxv-hero__poster, .pmxv-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; display: block; }
.pmxv-hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 15, 32, .9) 0%, rgba(2, 15, 32, .6) 45%, rgba(2, 15, 32, .1) 80%),
    linear-gradient(0deg, rgba(2, 15, 32, .95) 0%, rgba(2, 15, 32, 0) 55%);
}
.pmxv-hero__chev { position: absolute; right: -4vw; top: 6%; width: clamp(280px, 40vw, 640px); z-index: 1; pointer-events: none; opacity: .06; }
.pmxv-hero__chev svg { width: 100%; display: block; fill: #fff; }
.pmxv-hero__copy { position: relative; z-index: 2; padding-top: clamp(56px, 8vh, 110px); }
.pmxv-hero__h1 { margin: 22px 0 0; font-weight: inherit; }
.pmxv-display {
  display: block; font: 900 clamp(46px, min(6.6vw, 11.5vh), 112px)/.9 Archivo, sans-serif; font-stretch: 112%;
  letter-spacing: -.035em; color: #fff;
}
.pmxv-display em { font-style: normal; color: var(--pmxv-sky); }
.pmxv-line { display: block; overflow: hidden; padding-bottom: .06em; }
.pmxv-line > span { display: inline-block; }
.pmxv-hero__seo { display: block; margin-top: 22px; max-width: 560px; font: 500 clamp(16px, 1.45vw, 20px)/1.5 Archivo, sans-serif; color: #c9d9ef; letter-spacing: 0; }
.pmxv-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.pmxv-hero__base { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 24px; margin-top: clamp(24px, 4vh, 48px); }
.pmxv-kpis { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .18); }
.pmxv-kpis li { padding: 18px 18px 24px 0; }
.pmxv-kpis li + li { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.pmxv-kpis b { display: block; font: 800 clamp(18px, 1.8vw, 24px)/1 Archivo, sans-serif; font-stretch: 108%; color: #fff; }
.pmxv-kpis span { display: block; margin-top: 7px; font: 600 11px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8fb3e3; }
.pmxv-cue { display: none; }

/* Entrance (first paint). Paused while the intro curtain is up, then plays. */
@keyframes pmxvRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes pmxvFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pmx-motion .pmxv-in { animation: pmxvFadeUp .9s var(--pmxv-ease-out) both; }
.pmx-motion .pmxv-line > .pmxv-in { animation-name: pmxvRise; animation-duration: 1.1s; }
.pmx-motion .pmxv-in--2 { animation-delay: .12s; }
.pmx-motion .pmxv-in--3 { animation-delay: .22s; }
.pmx-motion .pmxv-in--4 { animation-delay: .42s; }
.pmx-motion .pmxv-in--5 { animation-delay: .55s; }
html.pmxv-intro-on.pmx-motion .pmxv-in { animation-play-state: paused; }

/* Desktop scene: the footage starts inside a house-shaped window (the Panamax roof)
   and opens to full screen as you scroll. JS writes the polygon from --p. */
html.pmxv-fx .pmxv-hero { height: 210vh; }
html.pmxv-fx .pmxv-hero__stage { position: sticky; top: var(--pmxv-header); height: calc(100vh - var(--pmxv-header)); min-height: 0; }
html.pmxv-fx .pmxv-hero__frame { clip-path: var(--pmxv-house, none); will-change: clip-path; }
html.pmxv-fx .pmxv-hero__scrim { opacity: calc(.35 + var(--p, 0) * .65); }
html.pmxv-fx .pmxv-hero__chev { opacity: calc(.06 * (1 - var(--p, 0))); }
html.pmxv-fx .pmxv-display .pmxv-line:first-child { transform: translateX(calc(var(--p, 0) * -4vw)); }
html.pmxv-fx .pmxv-display .pmxv-line:last-child { transform: translateX(calc(var(--p, 0) * 4vw)); }
html.pmxv-fx .pmxv-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; padding-bottom: 22px;
  font: 500 11px 'Spline Sans Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8fb3e3;
  opacity: calc(1 - var(--p, 0) * 3);
}
.pmxv-cue i { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); animation: pmxvCue 1.8s var(--pmxv-ease) infinite; transform-origin: top; }
@keyframes pmxvCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------- MANIFESTO */
.pmxv-manifesto { background: #fff; padding: clamp(80px, 12vw, 180px) 0; }
.pmxv-manifesto__text {
  margin: 26px 0 0; max-width: 1100px;
  font: 800 clamp(28px, 4.2vw, 64px)/1.08 Archivo, sans-serif; font-stretch: 104%; letter-spacing: -.03em; color: var(--pmxv-ink);
}
.pmxv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* JS wraps each word; they light up one after another as the paragraph scrolls through. */
.pmxv-manifesto__text .w { transition: color .35s ease; color: #d3dce7; }
.pmxv-manifesto__text .w.on { color: var(--pmxv-ink); }
.pmxv-manifesto__text .w.on.k { color: var(--pmxv-blue); }

/* ------------------------------------------------------------- SERVICES: stacking panels */
.pmxv-svc { background: var(--pmxv-grey); padding: clamp(72px, 9vw, 130px) 0 clamp(72px, 9vw, 120px); }
.pmxv-svc__head { margin-bottom: clamp(36px, 5vw, 64px); }
.pmxv-stack { display: grid; gap: 28px; }
.pmxv-panel {
  position: sticky; top: calc(var(--pmxv-header) + 28px + var(--i) * 26px);
  display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(620px, calc(100vh - 160px));
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--pmxv-shadow); border: 1px solid #e3eaf3;
  transform-origin: 50% 0; transform: scale(calc(1 - var(--under, 0) * .05)); filter: brightness(calc(1 - var(--under, 0) * .12));
}
.pmxv-panel__media { position: relative; margin: 0; overflow: hidden; background: #dfe7f1; }
.pmxv-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--seen, 1) * .12)); transition: transform .2s linear; }
.pmxv-panel__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.pmxv-panel__n { font: 600 14px 'Spline Sans Mono', ui-monospace, monospace; color: var(--pmxv-red); letter-spacing: .06em; }
.pmxv-panel__n i { font-style: normal; color: #9aabbd; margin-left: 8px; }
.pmxv-panel h3 { font: 900 clamp(28px, 3.2vw, 46px)/1 Archivo, sans-serif; font-stretch: 110%; letter-spacing: -.03em; color: var(--pmxv-ink); margin: 16px 0 16px; }
.pmxv-panel p { font: 400 16.5px/1.6 Archivo, sans-serif; color: var(--pmxv-text); margin: 0 0 22px; max-width: 46ch; }
.pmxv-panel .pmxv-btn { align-self: flex-start; }
.pmxv-badges { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; z-index: 1; }
.pmxv-badge { padding: 6px 12px; border-radius: 999px; background: var(--pmxv-red); color: #fff; font: 700 10.5px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pmxv-badge--soft { background: #fff; color: var(--pmxv-red); }
.pmxv-card__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 1; padding: 7px 13px; border-radius: 999px;
  background: rgba(3, 32, 63, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 11px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}

/* ------------------------------------------------------------- MARQUEE */
.pmxv-mq { background: var(--pmxv-navy); overflow: hidden; padding: clamp(22px, 3vw, 36px) 0; border-top: 3px solid var(--pmxv-red); }
.pmxv-mq__row { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); width: max-content; will-change: transform; animation: pmxvMarquee 38s linear infinite; }
.pmxv-mq__row span { font: 900 clamp(34px, 5.4vw, 88px)/1 Archivo, sans-serif; font-stretch: 118%; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); white-space: nowrap; }
.pmxv-mq__row span:nth-of-type(4n+3) { color: #fff; -webkit-text-stroke: 0; }
.pmxv-mq__chev { width: clamp(34px, 4vw, 60px); flex: 0 0 auto; fill: var(--pmxv-red); }
@keyframes pmxvMarquee { to { transform: translateX(-33.333%); } }
html.pmxv-fx .pmxv-mq__row { animation: none; transform: translateX(calc(var(--mq, 0) * -1px)); }

/* ------------------------------------------------------------- EXTRACTORES + heat flow */
.pmxv-xp { position: relative; background: radial-gradient(120% 80% at 80% 0%, #0a3d7a 0%, var(--pmxv-navy) 55%, var(--pmxv-ink-deep) 100%); color: #fff; padding: clamp(80px, 10vw, 150px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.pmxv-xp__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pmxv-xp__lede { font: 400 17px/1.65 Archivo, sans-serif; color: #c2d4ec; margin: 22px 0 0; max-width: 520px; }
.pmxv-xp__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.pmxv-xp__list li { display: flex; gap: 12px; align-items: flex-start; font: 600 15.5px/1.45 Archivo, sans-serif; color: #fff; }
.pmxv-xp__list svg { color: #6fd6a3; flex: 0 0 auto; margin-top: 3px; }
.pmxv-xp__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.pmxv-heat { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #06264b 0%, #041a35 100%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pmxv-heat__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pmxv-heat__hud { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.pmxv-heat__state, .pmxv-heat__kwh { padding: 7px 13px; border-radius: 999px; font: 700 11.5px Archivo, sans-serif; letter-spacing: .07em; text-transform: uppercase; background: rgba(205, 52, 57, .9); color: #fff; transition: background .4s ease; }
.pmxv-heat.is-on .pmxv-heat__state { background: rgba(30, 138, 91, .92); }
.pmxv-heat__kwh { background: rgba(255, 255, 255, .12); font-family: 'Spline Sans Mono', ui-monospace, monospace; }
.pmxv-heat__toggle {
  position: absolute; right: 18px; bottom: 18px; height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 700 13.5px Archivo, sans-serif; color: #fff; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s ease;
}
.pmxv-heat__toggle:hover { background: rgba(255, 255, 255, .22); }
.pmxv-heat__toggle:focus-visible { outline: 3px solid var(--pmxv-sky); outline-offset: 2px; }
.pmxv-heat__caption { position: absolute; left: 18px; bottom: 18px; right: 210px; margin: 0; font: 600 13px/1.4 Archivo, sans-serif; color: #b3cef2; }

.pmxv-xp__video { position: relative; margin-top: clamp(48px, 6vw, 80px); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0b2a52; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.pmxv-xp__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.pmxv-xp__fs { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(2, 15, 32, .72); color: #fff; font: 700 13px Archivo, sans-serif; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pmxv-xp__fs:hover { background: rgba(2, 15, 32, .9); }

.pmxv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid rgba(255, 255, 255, .16); }
.pmxv-stats > div { padding: 28px 22px 0 0; }
.pmxv-stats > div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.pmxv-stats__v { font: 900 clamp(40px, 5.6vw, 88px)/1 Archivo, sans-serif; font-stretch: 112%; letter-spacing: -.035em; color: #fff; }
.pmxv-stats__v > span:not(.pmx-stat-value) { font: 600 .38em 'Spline Sans Mono', ui-monospace, monospace; letter-spacing: 0; color: var(--pmxv-sky); }
.pmxv-stats__l { margin-top: 12px; font: 600 12px Archivo, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8fb3e3; }

/* ------------------------------------------------------------- OBRA (pinned story) */
.pmxv-obra { position: relative; background: #fff; }
.pmxv-obra__stage { padding: clamp(72px, 9vw, 130px) 0; }
.pmxv-obra__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pmxv-obra__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 15px Archivo, sans-serif; color: var(--pmxv-blue); }
.pmxv-obra__steps { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; gap: 4px; }
.pmxv-obra__step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid #e3eaf3; }
.pmxv-obra__k { grid-row: span 2; font: 600 13px 'Spline Sans Mono', ui-monospace, monospace; color: var(--pmxv-red); padding-top: 6px; }
.pmxv-obra__t { font: 800 22px/1.2 Archivo, sans-serif; font-stretch: 106%; color: var(--pmxv-ink); letter-spacing: -.015em; }
.pmxv-obra__d { margin-top: 6px; font: 400 15px/1.55 Archivo, sans-serif; color: var(--pmxv-text); }
.pmxv-obra__bar { height: 3px; background: #e3eaf3; border-radius: 2px; margin: 18px 0 30px; overflow: hidden; }
.pmxv-obra__bar i { display: block; height: 100%; background: var(--pmxv-red); transform-origin: left; transform: scaleX(var(--p, 1)); }
.pmxv-obra__frame { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pmxv-obra__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; display: block; box-shadow: var(--pmxv-shadow); }

/* Desktop scene: the copy stays put while the three photos replace each other
   (each new one wipes up from below) and the active step lights up. */
html.pmxv-fx .pmxv-obra { height: 320vh; }
html.pmxv-fx .pmxv-obra__stage { position: sticky; top: var(--pmxv-header); height: calc(100vh - var(--pmxv-header)); display: flex; align-items: center; padding: 0; overflow: hidden; }
html.pmxv-fx .pmxv-obra__frame { display: block; height: min(78vh, 760px); }
html.pmxv-fx .pmxv-obra__img {
  position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 26px;
  clip-path: inset(calc((1 - var(--show, 0)) * 100%) 0 0 0 round 26px);
  transform: scale(calc(1.14 - var(--show, 0) * .14));
}
html.pmxv-fx .pmxv-obra__img[style*="--k:0"] { --show: 1; }
html.pmxv-fx .pmxv-obra__step { opacity: .32; transition: opacity .35s ease; }
html.pmxv-fx .pmxv-obra__step.is-on { opacity: 1; }

/* ------------------------------------------------------------- PROCESS (sideways) */
.pmxv-proc { position: relative; background: var(--pmxv-ink-deep); color: #fff; overflow: hidden; overflow: clip; } /* clip, not hidden: hidden would stop the stage from pinning */
.pmxv-proc__stage { padding: clamp(72px, 9vw, 130px) 0; }
.pmxv-proc__viewport { overflow: hidden; margin-top: clamp(40px, 5vw, 64px); }
.pmxv-proc__track { list-style: none; margin: 0; padding: 0 clamp(20px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1240px; box-sizing: border-box; margin-inline: auto; }
.pmxv-hstep { position: relative; padding: 34px 30px 36px; border-radius: 24px; background: linear-gradient(160deg, rgba(10, 79, 158, .55), rgba(5, 40, 82, .35)); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; min-height: 320px; display: flex; flex-direction: column; }
.pmxv-hstep__n { position: absolute; right: -6px; top: -26px; font: 900 170px/1 Archivo, sans-serif; font-stretch: 120%; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); letter-spacing: -.05em; pointer-events: none; }
.pmxv-hstep__icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--pmxv-red); color: #fff; box-shadow: 0 14px 30px rgba(205, 52, 57, .35); }
.pmxv-hstep h3 { margin: auto 0 10px; padding-top: 48px; font: 900 clamp(22px, 2.2vw, 30px)/1.08 Archivo, sans-serif; font-stretch: 108%; letter-spacing: -.02em; }
.pmxv-hstep p { margin: 0; font: 400 15.5px/1.6 Archivo, sans-serif; color: #b3cef2; max-width: 32ch; }
.pmxv-proc__bar { height: 3px; margin-top: 36px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.pmxv-proc__bar i { display: block; height: 100%; background: var(--pmxv-red); transform-origin: left; transform: scaleX(var(--p, 1)); }

/* Desktop scene: vertical scrolling slides the four steps sideways. JS sets the
   section height (--proc-h) and the horizontal distance (--proc-x). */
html.pmxv-fx .pmxv-proc { height: var(--proc-h, 300vh); }
html.pmxv-fx .pmxv-proc__stage { position: sticky; top: var(--pmxv-header); height: calc(100vh - var(--pmxv-header)); display: flex; flex-direction: column; justify-content: center; padding: 0; }
html.pmxv-fx .pmxv-proc__track { display: flex; width: max-content; max-width: none; gap: 24px; padding-left: max(clamp(20px, 4vw, 48px), calc((100vw - 1240px) / 2 + 48px)); padding-right: 12vw; transform: translateX(calc(var(--p, 0) * var(--proc-x, 0px) * -1)); will-change: transform; }
html.pmxv-fx .pmxv-hstep { width: min(46vw, 560px); min-height: min(52vh, 460px); }
html.pmxv-fx .pmxv-hstep__n { font-size: 230px; }

/* ------------------------------------------------------------- PROJECTS + NOSOTROS touches */
.pmx-project-cell video[poster], .pmx-video-frame video[poster] { background: #0b2a52; object-fit: cover; }
.pmx-project-cell { transition: transform .5s var(--pmxv-ease-out); }
.pmx-project-cell:hover { transform: translateY(-4px); }
.pmxv-nos-photo { margin: 0 0 18px; border-radius: var(--pmxv-radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.pmxv-nos-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
html.pmxv-fx [data-fx="open"] { clip-path: inset(calc((1 - var(--p, 1)) * 14%) calc((1 - var(--p, 1)) * 16%) round 18px); }

/* ------------------------------------------------------------- FOOTER WORDMARK */
.pmxv-wordmark {
  display: flex; justify-content: space-between; overflow: hidden; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) 0;
  max-width: 1240px; margin: 0 auto; box-sizing: border-box;
  font: 900 clamp(56px, 16.5vw, 236px)/.82 Archivo, sans-serif; font-stretch: 125%; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .07); user-select: none;
}
.pmxv-wordmark .l { display: inline-block; transform: translateY(calc((1 - var(--p, 1)) * 105%)); transition: transform .12s linear; }

/* ------------------------------------------------------------- CURSOR */
/* A dot that follows the mouse and grows over links; over videos it shows a label. */
.pmxv-cursor { position: fixed; left: 0; top: 0; z-index: 9998; pointer-events: none; width: 0; height: 0; }
.pmxv-cursor span {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 999px; background: #fff; mix-blend-mode: difference;
  transition: transform .3s var(--pmxv-ease-out), width .3s var(--pmxv-ease-out), height .3s var(--pmxv-ease-out), left .3s var(--pmxv-ease-out), top .3s var(--pmxv-ease-out);
}
.pmxv-cursor.is-link span { width: 48px; height: 48px; left: -24px; top: -24px; }
.pmxv-cursor b { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 999px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--pmxv-red); color: #fff; font: 700 12px/1.1 Archivo, sans-serif; letter-spacing: .04em; transform: scale(0); transition: transform .35s var(--pmxv-ease-out); }
.pmxv-cursor.is-label b { transform: scale(1); }
.pmxv-cursor.is-label span { transform: scale(0); }
.pmxv-cursor.is-out { opacity: 0; }

/* ------------------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .pmxv-mq__row { animation: none; }
  .pmxv-cue i { animation: none; }
  .pmxv-manifesto__text .w { color: var(--pmxv-ink); transition: none; }
  .pmxv-btn, .pmxv-btn svg, .pmx-project-cell { transition: none !important; }
}

/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1023px) {
  .pmxv-panel { grid-template-columns: 1fr; position: relative; top: auto; transform: none; filter: none; min-height: 0; }
  .pmxv-panel__media { aspect-ratio: 16 / 10; }
  .pmxv-xp__grid, .pmxv-obra__grid { grid-template-columns: minmax(0, 1fr); }
  .pmxv-proc__track { grid-template-columns: 1fr 1fr; }
  .pmxv-stats { grid-template-columns: 1fr 1fr; }
  .pmxv-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pmxv-stats > div:nth-child(n+3) { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 699px) {
  .pmxv-hero__stage { min-height: calc(100svh - 64px); }
  /* First screen on a phone: eyebrow + title + lede + buttons fit above the fold; KPIs follow. */
  .pmxv-hero__copy { padding-top: 26px; }
  .pmxv-hero__h1 { margin-top: 14px; }
  .pmxv-hero__seo { margin-top: 14px; font-size: 15.5px; }
  .pmxv-hero__ctas { margin-top: 20px; gap: 10px 14px; }
  .pmxv-hero__base { margin-top: 18px; }
  .pmxv-hero__poster, .pmxv-hero__video { object-position: 70% 50%; }
  .pmxv-hero__scrim { background: linear-gradient(0deg, rgba(2, 15, 32, .96) 0%, rgba(2, 15, 32, .8) 55%, rgba(2, 15, 32, .3) 100%); }
  .pmxv-display { font-size: clamp(38px, 11vw, 54px); font-stretch: 104%; }
  .pmxv-hero__ctas .pmxv-btn { width: 100%; }
  .pmxv-hero__ctas .pmxv-link { height: 40px; }
  .pmxv-kpis { grid-template-columns: 1fr 1fr; }
  .pmxv-kpis li { padding: 12px 10px 14px 0; }
  .pmxv-kpis li + li { padding-left: 0; border-left: 0; }
  .pmxv-kpis li:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .pmxv-kpis li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .pmxv-panel { border-radius: 20px; }
  /* «Impermeabilización» is wider than a small phone's card: let the title break instead of pushing the card off screen. */
  .pmxv-panel__body { min-width: 0; }
  .pmxv-panel h3 { font-size: clamp(24px, 7.4vw, 30px); overflow-wrap: anywhere; hyphens: auto; }
  .pmxv-heat { aspect-ratio: 4 / 5; }
  .pmxv-heat__caption { right: 18px; bottom: 74px; }
  .pmxv-heat__toggle { left: 18px; right: 18px; }
  .pmxv-stats__v { font-size: clamp(30px, 9.2vw, 44px); min-width: 0; overflow-wrap: anywhere; }
  .pmxv-stats > div { padding-right: 12px; }
  .pmxv-stats > div + div { padding-left: 12px; }
  /* phones: the three obra photos become a swipe row */
  .pmxv-obra__frame { display: grid; min-width: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .pmxv-obra__frame::-webkit-scrollbar { display: none; }
  .pmxv-obra__img { scroll-snap-align: start; }
  .pmxv-proc__track { grid-template-columns: 1fr; }
  .pmxv-hstep { min-height: 0; }
  .pmxv-hstep h3 { padding-top: 28px; }
}

/* ------------------------------------------------------------- INSPECTION OFFER (WhatsApp review, 2026-10-14) */
/* Apple-style product band: one big price, three inclusions, the credit rule, two clear paths. */
.pmxv-btn--ghost { background: transparent; color: var(--pmxv-blue); border: 1.5px solid #c7d5e6; }
.pmxv-btn--ghost:hover { background: #eef4fc; border-color: var(--pmxv-blue); }
.pmxv-offer { background: #fff; padding: clamp(72px, 9vw, 130px) 0; }
.pmxv-offer__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pmxv-offer__price { display: block; margin-top: 6px; font-size: clamp(64px, 9vw, 132px); line-height: .92; font-stretch: 116%; color: var(--pmxv-blue); letter-spacing: -.045em; }
.pmxv-offer__lede { margin: 26px 0 0; font: 500 18px/1.5 Archivo, sans-serif; color: var(--pmxv-text); }
.pmxv-offer__list { list-style: none; margin: 18px 0 0; padding: 0; border-radius: 18px; background: var(--pmxv-grey); overflow: hidden; }
.pmxv-offer__list li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 20px 16px 52px; position: relative; }
.pmxv-offer__list li + li { border-top: 1px solid #e1e8f0; }
.pmxv-offer__list li::before { content: ""; position: absolute; left: 20px; top: 19px; width: 18px; height: 18px; border-radius: 999px; background: var(--pmxv-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pmxv-offer__list b { font: 800 17px/1.3 Archivo, sans-serif; color: var(--pmxv-ink); }
.pmxv-offer__list span { font: 400 14.5px/1.45 Archivo, sans-serif; color: var(--pmxv-text); }
.pmxv-offer__credit { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--pmxv-red); font: 600 15.5px/1.5 Archivo, sans-serif; color: var(--pmxv-ink); }
.pmxv-offer__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pmxv-offer__media { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--pmxv-shadow); }
.pmxv-offer__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmxv-offer__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 13px; border-radius: 999px; background: rgba(3, 32, 63, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font: 700 11px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------- FAQ */
.pmxv-faq { background: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.pmxv-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pmxv-faq__list { border-radius: 18px; background: var(--pmxv-grey); overflow: hidden; }
.pmxv-faq__item + .pmxv-faq__item { border-top: 1px solid #e1e8f0; }
.pmxv-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; font: 700 16.5px/1.35 Archivo, sans-serif; color: var(--pmxv-ink);
}
.pmxv-faq__item summary::-webkit-details-marker { display: none; }
.pmxv-faq__item summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--pmxv-blue); font: 600 20px/1 Archivo, sans-serif; transition: transform .25s var(--pmxv-ease-out); }
.pmxv-faq__item[open] summary::after { transform: rotate(45deg); }
.pmxv-faq__item summary:focus-visible { outline: 3px solid #0a84ff; outline-offset: -3px; }
.pmxv-faq__item p { margin: 0; padding: 0 20px 18px; font: 400 15.5px/1.6 Archivo, sans-serif; color: var(--pmxv-text); max-width: 62ch; }

@media (max-width: 1023px) {
  .pmxv-offer__grid, .pmxv-faq__grid { grid-template-columns: 1fr; }
  .pmxv-offer__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 699px) {
  .pmxv-offer__ctas .pmxv-btn { width: 100%; }
  .pmxv-faq__item summary { font-size: 15.5px; padding: 14px 16px; }
  .pmxv-faq__item p { padding: 0 16px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pmxv-faq__item summary::after { transition: none; } }
