/* ==========================================================================
   Giant Vision — M4.18: Living Service Pages — the story stage in "How we work".
   Paint and motion grammar come from gv-living-services.css (M4.17); this file
   only places the stage and drives its chapters.
   ========================================================================== */
.lsp {
	--ls-ink: rgba(244, 236, 224, .64); --ls-ink2: rgba(244, 236, 224, .26); --ls-fill: rgba(244, 236, 224, .05);
	--ls-bg: #0B0B0A; --ls-oa: rgba(232, 117, 26, .24); --ls-ease: cubic-bezier(.22, .7, .18, 1);
	position: relative; inline-size: 100%; max-inline-size: 860px; margin: -18px auto 46px;
}
html[data-theme="light"] .lsp { --ls-ink: rgba(52, 36, 20, .7); --ls-ink2: rgba(52, 36, 20, .28); --ls-fill: rgba(52, 36, 20, .05); --ls-oa: rgba(217, 104, 16, .22); --ls-bg: #FBF8F3; }
.lsp[hidden] { display: none; }
/* a projection screen laid over the section's photograph: opaque enough for fine lines, never a black box */
.lsp-frame {
	position: relative; aspect-ratio: 640 / 240; border-radius: var(--gv-radius, 14px); overflow: hidden;
	border: 1px solid var(--border);
	background: radial-gradient(70% 90% at 50% 0%, rgba(232, 117, 26, .07), transparent 70%), color-mix(in srgb, var(--ls-bg) 88%, transparent);
}
.lsp-frame::before {
	content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none; border: 1px solid var(--ls-ink2);
	-webkit-mask: conic-gradient(at 14px 14px, #0000 75%, #000 0) 0 0 / calc(100% - 14px) calc(100% - 14px);
	        mask: conic-gradient(at 14px 14px, #0000 75%, #000 0) 0 0 / calc(100% - 14px) calc(100% - 14px);
}
.lsp-frame svg { display: block; inline-size: 100%; block-size: 100%; }
.lsp-cap { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-block-start: 14px; min-block-size: 1.6em; font-size: .9rem; line-height: 1.5; text-align: center; }
.lsp-n { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--brand-text); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.lsp-t { color: var(--fg); font-weight: 600; }

/* chapters: what is still to come is hidden, what came before steps back, the current one leads */
.lsp .bt { transition: opacity .5s ease, visibility 0s; }
.lsp .bt.is-future { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.lsp .bt.is-past { opacity: .42; }
.lsp .is-gone { opacity: 0 !important; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.lsp.ls-still :is(.bt, .is-gone) { transition: none; }
.lsp.gv-off *, .lsp.ls-paused * { animation-play-state: paused !important; }
html[dir="rtl"] .lsp .ls-scene.ls-flip .ls-art { transform-origin: 320px 120px; }   /* the stage is 640 x 240 (M4.17's mirror origin is for 320 x 200) */

/* the step being told */
html[data-theme] .s-flow-node.lsp-now .s-flow-icon { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 26px -6px var(--brand); }
html[data-theme] .s-flow-node.lsp-now .s-flow-n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
html[data-theme] .s-flow-node.lsp-now h4 { color: var(--brand-text); }

/* service sections clip their photograph with overflow:hidden, which also turns them into a scroll
   container and stops a sticky stage; clip trims the same way without becoming one */
html[data-theme] .s-section:has(.lsp) { overflow: clip; }
/* phones and tablets (the steps become a vertical timeline): the stage stays above them */
@media (max-width: 900px) {
	.lsp {
		position: sticky; inset-block-start: calc(var(--nav-h) + 6px); z-index: 3; margin: -22px 0 24px; padding-block: 8px 6px;
		background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	}
	.lsp-cap { margin-block-start: 8px; font-size: .84rem; gap: 10px; }
}
@media (max-width: 900px) and (max-height: 560px) { .lsp { position: relative; inset-block-start: auto; } }
