/* Nos engagements: scroll story (page-nos-engagements.php, assets/js/vision.js).
   Motion runs only once vision.js adds .gp-vs-motion (motion allowed, JS on); without it every step, word and picture
   shows plainly. Colours come from the scheme tokens, so the light scheme works too; the hero and the prévention band
   sit on photos and stay dark. */

/* ---------- Hero ---------- */
.gp-vs-hero { min-height: 100svh; }
.gp-vs-hero__img { object-position: 62% 50%; transform-origin: 72% 60%; }
.gp-vs-hero__shade { background: linear-gradient(90deg, rgba(10, 11, 13, .86), rgba(10, 11, 13, .4) 52%, rgba(10, 11, 13, .08)), linear-gradient(0deg, rgba(10, 11, 13, .92), transparent 48%); }
.gp-vs-hero__inner { position: relative; z-index: 2; }
@media (max-width: 899.98px) {
	.gp-vs-hero__img { object-position: 84% 50%; } /* the hiker and his bag in the middle of a phone screen */
	.gp-vs-hero__shade { background: linear-gradient(0deg, rgba(10, 11, 13, .95) 8%, rgba(10, 11, 13, .55) 52%, rgba(10, 11, 13, .2)); }
}
.gp-vs-hero .gp-lead { max-width: 40ch; }
.gp-vs-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.gp-vs-index a { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .45em .95em; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .07); color: #f4f4f0; font-size: .85rem; font-weight: 600; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s ease, border-color .25s ease; }
.gp-vs-index a span { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.gp-vs-index a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.gp-vs-cue { display: none; }
@media (min-width: 900px) {
	/* 44 × 58 to point at or tap; the mouse outline is drawn inside, where it was. */
	/* Right edge: beside the floating WhatsApp button's room (--assist-room, site.css), never under it. */
	.gp-vs-cue { position: absolute; z-index: 2; right: max(calc(var(--gutter, 24px) - 5px), var(--assist-room, 0px)); bottom: 26px; display: block; width: 44px; height: 58px; border-radius: 16px; }
	.gp-vs-cue::before { content: ""; position: absolute; top: 8px; left: 9px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
	.gp-vs-cue span { position: absolute; top: 16px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
}

/* Label on illustration photos (AI images; a bag in them is identical to the one sold). */
.gp-vs-tag { position: absolute; z-index: 3; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 11, 13, .6); color: #f4f4f0; font-size: .7rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.gp-vs-hero > .gp-vs-tag { top: calc(var(--header-total, 72px) + var(--space-edge, 20px)); bottom: auto; } /* clear of the fixed header (and its phone world row) by the theme's edge room */

.gp-vs-num { font-variant-numeric: tabular-nums; letter-spacing: .14em; }

/* ---------- 01 Vision ---------- */
.gp-vs-vision { padding-block: clamp(64px, 8vw, 120px) clamp(36px, 5vw, 72px); }
.gp-vs-vision__grid { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
.gp-vs-statement { max-width: 30ch; margin: 1.3rem 0 1.5rem; font-family: var(--font-display); font-size: clamp(1.45rem, 1rem + 1.9vw, 2.55rem); font-weight: 800; line-height: 1.12; letter-spacing: -.012em; text-wrap: pretty; }
.gp-vs-w { transition: opacity .35s ease, color .35s ease; }
.gp-vs-motion .gp-vs-w { opacity: .2; }
.gp-vs-motion .gp-vs-w.is-lit { opacity: 1; }
.gp-vs-vision__more p { max-width: 58ch; margin: 0 0 1rem; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.gp-vs-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.gp-vs-who li { position: relative; isolation: isolate; padding: .45em .95em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .85rem; font-weight: 600; }
/* Once, as the list comes into view (vision.js adds .is-in): each profile lights up in turn, a fill that fades in and
   out (G1: the Pro cream fill takes the olive rim on a light page). Nothing loops. */
.gp-vs-who li::before { content: ""; position: absolute; z-index: -1; inset: -1px; border-radius: inherit; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-rim); opacity: 0; }
.gp-vs-motion .gp-vs-who.is-in li { animation: gp-vs-who-ink 1.6s ease-out calc(var(--k, 0) * .32s + .15s) both; }
.gp-vs-motion .gp-vs-who.is-in li::before { animation: gp-vs-who 1.6s ease-out calc(var(--k, 0) * .32s + .15s) both; }
@keyframes gp-vs-who { 0%, 100% { opacity: 0; } 18%, 62% { opacity: 1; } }
@keyframes gp-vs-who-ink { 0%, 100% { color: var(--ink-2); } 18%, 62% { color: var(--on-accent); } }

/* Centre-of-gravity drawing: the load flows down the straps to the centre of gravity. */
.gp-vs-cog { position: relative; margin: 0; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), var(--bg-2); color: var(--ink); }
.gp-vs-cog svg { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; overflow: visible; }
.gp-vs-cog__body { opacity: .5; }
.gp-vs-cog__straps { stroke: color-mix(in srgb, var(--ink) 22%, transparent); }
.gp-vs-cog__flow { stroke: var(--accent-ink); stroke-dasharray: .2 .8; }
.gp-vs-cog__dot { fill: var(--accent); stroke: var(--accent-rim); stroke-width: 1.5; } /* G1: the Pro cream dot takes the olive rim on a light page */
.gp-vs-cog__halo { fill: none; stroke: var(--accent-ink); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; }
.gp-vs-cog__labels { fill: var(--ink-2); }
.gp-vs-cog figcaption { margin-top: 14px; color: var(--muted, var(--ink-2)); font-size: .85rem; text-align: center; }
/* The load flows twice as the drawing comes into view (main.js reveals it with .is-in), then rests (vision.js adds
   .is-done). With a mouse over it the same cycle keeps going (.is-live: only the count changes, so nothing restarts),
   and the mouse leaving lets the cycle under way finish (vision.js), so it always stops at rest. Taps do nothing. */
.gp-vs-motion .gp-vs-cog__halo { opacity: 0; }
.gp-vs-motion .gp-vs-cog.is-in .gp-vs-cog__flow path { animation: gp-vs-flow 2.4s linear 2; }
.gp-vs-motion .gp-vs-cog.is-in .gp-vs-cog__halo { animation: gp-vs-halo 2.4s ease-out 2; }
.gp-vs-motion .gp-vs-cog.is-in.is-live :is(.gp-vs-cog__flow path, .gp-vs-cog__halo) { animation-iteration-count: infinite; }
.gp-vs-motion .gp-vs-cog.is-done:not(.is-live) :is(.gp-vs-cog__flow path, .gp-vs-cog__halo) { animation: none; }
@keyframes gp-vs-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gp-vs-halo { 0% { scale: .35; opacity: 0; } 10% { opacity: .9; } 100% { scale: 1.7; opacity: 0; } } /* each ring fades in: a cycle starts and ends invisible */

/* ---------- 02 Terrain: steps beside a sticky picture ---------- */
.gp-vs-field { padding-block: clamp(28px, 4vw, 64px) var(--space-section, clamp(70px, 9vw, 130px)); } /* the stuck picture stops a section's room above the photo band (main.css) */
.gp-vs-field__grid { display: grid; gap: 28px; }
.gp-vs-field__media { position: sticky; z-index: 2; top: calc(var(--header-total, 72px) + 12px); height: 32vh; border-radius: 24px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.gp-vs-field__frame { position: absolute; inset: 0; margin: 0; }
.gp-vs-field__frame img { width: 100%; height: 100%; object-fit: cover; }
.gp-vs-motion .gp-vs-field__frame { opacity: 0; transition: opacity .9s var(--ease-out); }
.gp-vs-motion .gp-vs-field__frame img { scale: 1.1; transition: scale 7s cubic-bezier(.2, .7, .2, 1); }
.gp-vs-motion .gp-vs-field__frame.is-on { opacity: 1; }
.gp-vs-motion .gp-vs-field__frame.is-on img { scale: 1; }
html:not(.gp-js) .gp-vs-field__frame:not(:first-child), .gp-vs:not(.gp-vs-motion) .gp-vs-field__frame:not(.is-on) { display: none; }
.gp-vs-field__frame .gp-vs-tag { bottom: 28px; }
.gp-vs-field__bar { position: absolute; z-index: 4; right: 16px; bottom: 14px; left: 16px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.gp-vs-field__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--vs-p, 0)); transform-origin: left; }
.gp-vs-steps { margin: 0; padding: 0; list-style: none; }
.gp-vs-step { display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.gp-vs-motion .gp-vs-step { min-height: 42vh; }
.gp-vs-motion .gp-vs-step { opacity: .25; transition: opacity .5s ease; }
.gp-vs-motion .gp-vs-step.is-on { opacity: 1; }
.gp-vs-step__mark { margin: 0 0 .35em; color: var(--accent-ink); font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 4vw, 5.2rem); font-weight: 800; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.gp-vs-step__text { max-width: 36ch; margin: 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }
.gp-vs-step__text a { color: var(--accent-ink); font-weight: 700; text-underline-offset: .2em; }
@media (min-width: 900px) {
	.gp-vs-field__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
	.gp-vs-field__media { height: min(78vh, 760px); border-radius: 28px; }
	.gp-vs-field__head { padding-top: 4vh; }
	.gp-vs-motion .gp-vs-step { min-height: 54vh; }
	.gp-vs-motion .gp-vs-step:last-child { min-height: 44vh; }
	.gp-vs-vision__grid { grid-template-columns: 1.25fr .75fr; }
}

/* ---------- 03 Prévention: the picture opens to full bleed ---------- */
.gp-vs-care { position: relative; display: flex; align-items: flex-end; min-height: 86vh; margin-block: clamp(16px, 3vw, 40px); overflow: hidden; color: #f4f4f0; --vs-o: 1; }
.gp-vs-motion .gp-vs-care { --vs-o: 0; }
.gp-vs-care__media { position: absolute; inset: 0; clip-path: inset(calc(7% * (1 - var(--vs-o))) calc(5% * (1 - var(--vs-o))) round calc(36px * (1 - var(--vs-o)))); }
.gp-vs-care__media img { width: 100%; height: 100%; object-fit: cover; scale: calc(1.14 - .14 * var(--vs-o)); }
@media (max-width: 899.98px) {
	.gp-vs-care__media img { object-position: 87% 50%; } /* both technicians and their bags on a phone screen */
}
.gp-vs-care__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 13, .94), rgba(10, 11, 13, .45) 52%, rgba(10, 11, 13, .12)); }
.gp-vs-care .gp-vs-tag { top: calc(8% + 10px); right: calc(5% + 10px); bottom: auto; }
.gp-vs-care__inner { position: relative; z-index: 2; padding-block: clamp(70px, 10vw, 140px); }
.gp-vs-care__title { margin: .3rem 0 1rem; color: rgba(244, 244, 240, .78); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gp-vs-care__quote { max-width: 15ch; margin: 0; font-size: clamp(2.3rem, 1.1rem + 5vw, 5.8rem); }
.gp-vs-care__inner p:not([class]) { max-width: 52ch; margin-top: 1.2rem; color: rgba(244, 244, 240, .82); }

/* ---------- Engagement cards ---------- */
.gp-vs-cards { padding-block: clamp(36px, 5vw, 80px); }
.gp-vs-cards__head { margin-bottom: clamp(26px, 4vw, 46px); }
.gp-vs-cards__grid { display: grid; gap: 14px; }
.gp-vs-card { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #f4f4f0; }
.gp-vs-card__media { position: absolute; z-index: -1; inset: 0; }
.gp-vs-card__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; translate: var(--px, 0) var(--py, 0); transition: scale 1.2s var(--ease-out), translate .8s var(--ease-out); }
.gp-vs-card:hover .gp-vs-card__media img { scale: 1.12; }
.gp-vs-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 13, .95) 10%, rgba(10, 11, 13, .55) 48%, rgba(10, 11, 13, .05)); }
.gp-vs-card__body { padding: clamp(20px, 2.4vw, 30px); }
.gp-vs-card__n { color: var(--gp-lime, #d4ff3a); font-size: .8rem; font-weight: 700; letter-spacing: .14em; }
[data-gp-world="b2b"] .gp-vs-card__n { color: var(--gp-pro, #fefee2); } /* on the dark photo gradient */
.gp-vs-card__title { margin: .35rem 0 .65rem; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.gp-vs-card__body p { max-width: 40ch; margin: 0; color: rgba(244, 244, 240, .84); }
@media (min-width: 900px) {
	.gp-vs-cards__grid { grid-template-columns: repeat(3, 1fr); }
	.gp-vs-card { min-height: 520px; }
}

/* ---------- Motion that needs no scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Both settle within five seconds and stop: the photo eases in, the scroll cue nudges twice. */
	.gp-vs-motion .gp-vs-hero__img { animation: gp-vs-push 4.8s var(--ease-out) both; }
	.gp-vs-motion .gp-vs-cue span { animation: gp-vs-cue 1.8s ease-in-out .8s 2 both; }
}
@keyframes gp-vs-push { from { scale: 1.14; } to { scale: 1; } }
@keyframes gp-vs-cue { 0%, 100% { opacity: 1; translate: 0 0; } 45% { opacity: 0; translate: 0 14px; } 46% { opacity: 0; translate: 0 0; } } /* from the resting dot to the resting dot: it slides down and fades, comes back faded in at the top, so nothing pops before, between or after the nudges */

/* ---------- Interlude: the real bag turns a full circle as you scroll ---------- */
.gp-vs-spin { position: relative; }
.gp-vs-spin__sticky { position: relative; overflow: hidden; padding-block: clamp(24px, 4vw, 48px); }
.gp-vs-motion .gp-vs-spin { height: 230vh; }
.gp-vs-motion .gp-vs-spin__sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; padding: 0; }
.gp-vs-spin__ghost { position: absolute; top: 50%; left: 0; margin: 0; color: transparent; font-family: var(--font-display); font-size: clamp(4.5rem, 15vw, 14rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 20%, transparent); translate: 0 -50%; transform: translateX(calc(6% - 52% * var(--vs-s, 0))); pointer-events: none; }
.gp-vs-spin__grid { position: relative; display: grid; gap: 18px; align-items: center; width: 100%; }
.gp-vs-spin__stage { position: relative; width: min(74vw, 520px); aspect-ratio: 1; margin-inline: auto; }
.gp-vs-spin__halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 36%, transparent), transparent 68%); filter: blur(22px); }
.gp-vs-spin__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.gp-vs-spin__frame.is-on { opacity: 1; }
.gp-vs-spin__notes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gp-vs-spin__note { display: flex; align-items: baseline; gap: .8em; font-family: var(--font-display); font-size: clamp(1.25rem, .95rem + 1.6vw, 2.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.015em; text-transform: uppercase; }
.gp-vs-spin__note span { flex: none; color: var(--accent-ink); font-size: .42em; letter-spacing: .14em; }
.gp-vs-motion .gp-vs-spin__note { opacity: .22; translate: 0 6px; transition: opacity .5s ease, translate .6s var(--ease-out); }
.gp-vs-motion .gp-vs-spin__note.is-on { opacity: 1; translate: none; }
.gp-vs-spin__bar { position: absolute; right: var(--gutter, 24px); bottom: 26px; left: var(--gutter, 24px); display: none; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.gp-vs-motion .gp-vs-spin__bar { display: block; }
.gp-vs-spin__bar i { display: block; height: 100%; background: var(--accent-line); transform: scaleX(var(--vs-s, 0)); transform-origin: left; } /* a stroke: lime or cream on dark, olive on light */
@media (min-width: 900px) {
	.gp-vs-spin__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); }
}
@media (max-width: 899.98px) {
	.gp-vs-spin__stage { width: min(70vw, 340px); }
}

/* Hero: the text rises and fades, the photo sinks slowly as you leave it. */
.gp-vs-motion .gp-vs-hero__inner { opacity: calc(1 - var(--vs-h, 0) * 1.3); translate: 0 calc(var(--vs-h, 0) * -70px); }
.gp-vs-motion .gp-vs-hero__img { translate: 0 calc(var(--vs-h, 0) * 14%); }

/* Closing band. */
.gp-vs-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; padding-block: clamp(20px, 3vw, 40px) calc(var(--space-section, clamp(70px, 9vw, 130px)) + 4px); } /* the section room before the footer or the Pro band, plus the raised edge under the buttons (main.css) */
.gp-vs-end .gp-h2 { margin: .3rem 0 0; }
