/* ════════════════════════════════════════════════════════════
   Pointech od środka — scena 3D
   Ładowana WEWNĄTRZ Shadow DOM (#pt-od-host): style motywu
   i Elementora tu nie sięgają, a te nie wyciekają na stronę.
   Tokeny marki (--pt-*, --font-*) dziedziczą się z :root motywu;
   krzywe i czasy ruchu sceny są zdefiniowane tu, na :host.
   @property dla --lit/--lamp rejestruje JS (w Shadow DOM nie działa).
   Źródło: pointech/marketing/od-srodka (demo).
   ════════════════════════════════════════════════════════════ */
:host {
	--ease-out:    cubic-bezier(.23,1,.32,1);
	--ease-in-out: cubic-bezier(.77,0,.175,1);
	--dur-press: 140ms;
	--dur-hover: 200ms;
	--dur-ui:    240ms;
	font-family: var(--font-body, 'Montserrat', system-ui, sans-serif);
	line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pt-blue-400); outline-offset: 3px; }

/* przycisk powrotu — kopia .btn motywu (style motywu nie sięgają do Shadow DOM) */
.btn {
	font-weight: 500; font-size: 16px; letter-spacing: .02em;
	padding: 14px 22px; border-radius: 4px; border: 1px solid transparent;
	display: inline-flex; align-items: center; gap: 8px;
	scale: var(--press, 1);
	transition: background var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out),
	            color var(--dur-press) var(--ease-out), scale var(--dur-press) var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}
.btn:active { --press: .97; }
.btn-sm { font-size: 13px; padding: 10px 14px; }
.btn-on-blue-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
@media (hover: hover) and (pointer: fine) {
	.btn-on-blue-secondary:hover { border-color: rgba(255,255,255,.7); }
}

/* ════════════════════════════════════════════════════════════
   BIURO — świat CSS 3D pod stroną
   Nocne open space w kolorach marki. Ciepłe lampy nad biurkami,
   zimne światło monitorów: kontrast ciepło-zimno z wytycznych
   fotografii Pointech, przeniesiony do 3D.
   ════════════════════════════════════════════════════════════ */

.world {
	position: fixed; inset: 0; z-index: 100000; color: #fff;
	background: radial-gradient(ellipse 110% 80% at 50% 26%, #121648 0%, #0A0C24 44%, var(--pt-ink-1000) 80%);
	-webkit-font-smoothing: antialiased;
}
.world[hidden] { display: none; }
.stage3d {
	position: absolute; inset: 0; overflow: hidden;
	/* kotwica sceny = punkt zbiegu: cel kamery zostaje na środku ekranu
	   przy każdym dystansie, zbliżenie nie „ucieka" w dół */
	perspective: 1100px; perspective-origin: 50% 50%;
	touch-action: none; outline: none;
}
@media (hover: hover) and (pointer: fine) {
	.stage3d { cursor: grab; }
	.stage3d.is-dragging { cursor: grabbing; }
	.st { cursor: pointer; }
}
.stage3d:focus-visible::after {
	content: ""; position: absolute; inset: 12px; pointer-events: none;
	border: 1px solid rgba(94,113,249,.35);
}
.w-vignette {
	position: absolute; inset: 0; z-index: 5; pointer-events: none;
	background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 52%, rgba(4,5,16,.82) 100%);
}
/* Scena celowo bez will-change: gdy kamera stoi, Chrome rasteryzuje
   ją od nowa w docelowej skali — kod na monitorach jest ostry po zbliżeniu. */
.scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.n3 { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.pl { position: absolute; transform-origin: 50% 100%; }
.pl.flat { transform-origin: 50% 50%; }

/* ── klocki: sześć ścian generuje JS ── */
.box {
	position: absolute; left: 0; top: 0;
	width: var(--w); height: var(--h);
	transform-style: preserve-3d;
	transform: translate3d(calc(var(--x, 0px) - var(--w) / 2), calc(var(--y, 0px) - var(--h)), var(--z, 0px));
}
.f {
	position: absolute; left: 0; top: 0; width: var(--w); height: var(--h);
	background-color: var(--c, #1A1E3D);
	background-image: linear-gradient(var(--sh), var(--sh));
	box-shadow: inset 0 0 0 1px rgba(138,152,251,.12);
	backface-visibility: hidden;
}
.f.fr { --sh: rgba(255,255,255,.03); transform: translateZ(calc(var(--d) / 2)); }
.f.bk { --sh: rgba(0,0,0,.46); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.f.rt { --sh: rgba(0,0,0,.20); width: var(--d); left: calc((var(--w) - var(--d)) / 2); transform: rotateY(90deg)  translateZ(calc(var(--w) / 2)); }
.f.lf { --sh: rgba(0,0,0,.32); width: var(--d); left: calc((var(--w) - var(--d)) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.f.tp { --sh: rgba(255,255,255,.12); height: var(--d); top: calc((var(--h) - var(--d)) / 2); transform: rotateX(90deg)  translateZ(calc(var(--h) / 2)); }
.f.bt { --sh: rgba(0,0,0,.52); height: var(--d); top: calc((var(--h) - var(--d)) / 2); transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

/* ── pomieszczenie ── */
.floor {
	background-color: #080A1F;
	background-image:
		linear-gradient(rgba(94,113,249,.10) 1px, transparent 1px),
		linear-gradient(90deg, rgba(94,113,249,.10) 1px, transparent 1px);
	background-size: 40px 40px; background-position: 20px 20px;
	mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 34%, transparent 76%);
	-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 34%, transparent 76%);
}
.wall {
	background-color: #0A0C22;
	background-image:
		linear-gradient(rgba(94,113,249,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(94,113,249,.06) 1px, transparent 1px),
		linear-gradient(180deg, #0E1132, #080A1E 78%);
	background-size: 40px 40px, 40px 40px, 100% 100%;
	mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.window {
	overflow: hidden;
	background: linear-gradient(180deg, #0B1180 0%, #151A5A 34%, #1B1B4A 60%, #120F2A 100%);
	box-shadow: inset 0 0 0 12px #090B1D, inset 0 0 0 14px rgba(138,152,251,.22);
	transition: opacity 900ms var(--ease-out);
}
.window::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, transparent calc(50% - 6px), #090B1D calc(50% - 6px) calc(50% + 6px), transparent calc(50% + 6px)),
		linear-gradient(180deg, transparent calc(36% - 6px), #090B1D calc(36% - 6px) calc(36% + 6px), transparent calc(36% + 6px)),
		linear-gradient(118deg, rgba(255,255,255,.06), transparent 36%);
}
.skyline { position: absolute; inset: 0; }
.bld { position: absolute; bottom: 0; display: block; background: #070919; }
.bld b { position: absolute; left: 0; top: 0; width: 5px; height: 6px; display: block; }

.sign { display: flex; align-items: center; justify-content: center; gap: 30px; transition: opacity 900ms var(--ease-out); }
.sign .g { width: 96px; height: 96px; background: var(--pt-blue-700); display: grid; place-items: center; box-shadow: 0 0 70px rgba(27,40,198,.85); }
.sign .g i { width: 36px; height: 36px; background: var(--pt-blue-400); display: block; }
.sign b { font: 800 72px/1 var(--font-display); letter-spacing: .08em; color: #fff; text-shadow: 0 0 34px rgba(94,113,249,.75); }

/* ── tablica wdrożeń: tu lądują commity ze stanowisk ── */
.board {
	display: flex; flex-direction: column;
	padding: 36px 48px;
	background: #05071A;
	box-shadow: inset 0 0 0 2px rgba(138,152,251,.3), 0 0 120px rgba(27,40,198,.45);
	font-family: var(--font-mono); color: #C9CEF0;
	transition: opacity 900ms var(--ease-out);
}
.board-head {
	display: flex; justify-content: space-between; align-items: baseline;
	font-size: 26px; line-height: 1; letter-spacing: .18em; text-transform: uppercase;
	color: var(--pt-blue-300);
	padding-bottom: 22px; border-bottom: 2px solid rgba(138,152,251,.22);
}
.board-head b { color: #fff; font-weight: 600; }
.brow {
	display: grid; grid-template-columns: 150px 1fr 190px 260px 140px; gap: 16px; align-items: center;
	font-size: 30px; line-height: 1.2; padding: 22px 12px;
	border-bottom: 1px solid rgba(138,152,251,.12);
	transition: background 500ms var(--ease-out);
}
.brow .bc { color: #fff; font-weight: 600; }
.brow .br { color: var(--pt-blue-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bn, .brow .bt { font-variant-numeric: tabular-nums; }
.brow .bt { text-align: right; color: rgba(148,153,181,.8); }
.brow .bs { display: flex; align-items: center; gap: 12px; }
.brow .bs i { width: 12px; height: 12px; background: var(--pt-scan); box-shadow: 0 0 14px rgba(0,194,168,.8); display: block; flex: none; }
.brow.is-building { background: rgba(217,119,6,.10); }
.brow.is-building .bs { color: #F5B26B; }
.brow.is-building .bs i { background: var(--pt-warn); box-shadow: 0 0 14px rgba(217,119,6,.9); animation: blink .5s steps(1) infinite; }
.brow.is-done { background: rgba(0,194,168,.12); }
.brow.is-done .bs { color: var(--pt-scan); }
.world.is-dark .board, .world.is-dark .sign, .world.is-dark .window { opacity: .16; }

/* ── stanowisko ── */
.st { --lit: 1; --lamp: 1; transition: --lit 700ms var(--ease-out), --lamp 520ms var(--ease-out); }
.st.is-off { --lit: .22; --lamp: 0; }
.st.is-dim { --lit: .42; }
.st .f, .st .pl { filter: brightness(var(--lit)); }

.desk { --c: #1D2140; }
.desk .f.tp {
	background-image:
		radial-gradient(ellipse 55% 70% at 58% 55%, rgba(255,196,130,calc(.22 * var(--lamp))), transparent 72%),
		linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05));
}
.leg { --c: #12152E; }
.kbd { --c: #161A33; }
.kbd .f.tp {
	background-image:
		repeating-linear-gradient(90deg, rgba(138,152,251,.2) 0 1px, transparent 1px 7px),
		repeating-linear-gradient(0deg, rgba(138,152,251,.16) 0 1px, transparent 1px 7px);
}
.mouse { --c: #161A33; }
.mug { --c: #D9D7E4; }
.mug .f.tp { background: #2A1A12; box-shadow: inset 0 0 0 3px #D9D7E4; }
.stand { --c: #0E1128; }
.cseat { --c: #171A31; }
.cback { --c: #11142A; }
.cback .f.fr, .cback .f.bk {
	background-image:
		repeating-linear-gradient(45deg, rgba(138,152,251,.09) 0 1px, transparent 1px 5px),
		repeating-linear-gradient(-45deg, rgba(138,152,251,.09) 0 1px, transparent 1px 5px),
		linear-gradient(var(--sh), var(--sh));
}
.cstem, .cbase { --c: #0E1024; }

/* lampa wisząca: kabel, klosz ze świecącym spodem, stożek światła */
.cable { background: linear-gradient(rgba(148,153,181,0), rgba(148,153,181,.45)); }
.shade { --c: #1B1E35; }
.shade .f.bt {
	background: rgba(255,226,184,var(--lamp));
	box-shadow: 0 0 calc(40px * var(--lamp)) calc(16px * var(--lamp)) rgba(255,190,120,calc(.55 * var(--lamp)));
}
.cone {
	pointer-events: none; opacity: var(--lamp);
	background: linear-gradient(180deg, rgba(255,204,150,.17), rgba(255,204,150,.05) 62%, transparent 96%);
	clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
}
.pool {
	pointer-events: none; opacity: var(--lamp);
	background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,190,120,.11), rgba(94,113,249,.07) 45%, transparent 72%);
}

/* ── monitory ── */
.mbody { --c: #0B0D1E; }
.mbody .f.fr {
	background: #04050E;
	box-shadow:
		inset 0 0 0 1px rgba(138,152,251,.22),
		0 0 calc(64px * var(--lamp)) rgba(138,152,251,calc(.3 * var(--lamp)));
}
.scr { position: absolute; inset: 5px; overflow: hidden; background: #0B0E22; opacity: var(--lamp); }
.scr::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(118deg, rgba(255,255,255,.08), transparent 38%);
}
.scr img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 0 0;
	opacity: 0; transition: opacity 900ms var(--ease-in-out);
}
.scr img.on { opacity: 1; }
/* CRM: kadr ekranu z banera realizacji (region 735–1455 × 270–790 px) */
.scr--crop { background-repeat: no-repeat; background-size: 266.67% auto; background-position: 61.25% 39.7%; }
/* IDMAG: podgląd etykiety, którą właśnie opisuje kod ZPL obok */
.scr--label { background: #1C2038; display: flex; flex-direction: column; }
.lbl-bar {
	display: flex; justify-content: space-between; flex: none;
	padding: 3px 7px; font: 500 7px/1.4 var(--font-mono); color: rgba(188,196,253,.75);
	background: #11142C; border-bottom: 1px solid rgba(138,152,251,.2);
}
.lbl-desk { flex: 1; display: grid; place-items: center; overflow: hidden; }
.paper { width: 76%; aspect-ratio: 812 / 609; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.paper svg { width: 100%; height: 100%; display: block; }

/* edytor: kod pisany na żywo */
.code {
	position: absolute; inset: 5px; overflow: hidden; opacity: var(--lamp);
	background: #0A0C1D; color: #C7CCEA;
	font-family: var(--font-mono); font-size: 8.6px; line-height: 1.55;
}
.code .bar {
	display: flex; align-items: center; gap: 10px; height: 17px; padding: 0 8px;
	background: #070818; border-bottom: 1px solid rgba(138,152,251,.18);
	font-size: 7.4px; color: rgba(148,153,181,.7); white-space: nowrap;
}
.code .bar .on { color: #fff; box-shadow: inset 0 -1px 0 var(--pt-blue-400); padding: 4px 0; }
.code .bar .git { margin-left: auto; color: var(--pt-scan); }
.code .lines { padding: 6px 8px 0 2px; }
.cln { display: flex; white-space: pre; height: 1.55em; }
.cln .no { flex: none; width: 3ch; margin-right: 1.4ch; text-align: right; color: rgba(148,153,181,.4); }
.cln .tx { display: inline-block; flex: none; overflow: hidden; }
.cln.typing .tx { width: calc(var(--c, 0) * 1ch); }
.cln .k { color: var(--pt-blue-300); }
.cln .s { color: #57D9C3; }
.cln .c { color: #6B7090; font-style: italic; }
.cln .n { color: #F2B880; }
.cln .t { color: #BCC4FD; }
.cln .z { color: #8A98FB; font-weight: 600; }
.cur {
	display: inline-block; flex: none; width: .62ch; height: 1.2em; margin-top: .18em;
	background: var(--pt-scan); animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── ludzie ─────────────────────────────────────────────────
   Domyślnie: sylwetka od tyłu, podświetlona konturem przez
   monitory i od góry przez lampę. Gdy w people/manifest.js jest
   zdjęcie zespołu (wycięte, z alfą), zastępuje sylwetkę 1:1. */
.who { pointer-events: none; }
.who svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.who .hair { fill: #090A17; }
.who .hp { fill: #1A1E38; }
.who .hpb { fill: none; stroke: #1A1E38; }
.who .led { fill: var(--pt-scan); }
.who .tie { fill: var(--pt-blue-400); }
.who .photo {
	position: absolute; inset: 0; width: 100%; height: 100%; display: none;
	object-fit: contain; object-position: 50% 100%;
	filter: brightness(.8) contrast(1.06) saturate(.9) drop-shadow(0 0 6px var(--rim));
}
.who.has-photo .photo { display: block; }
.who.has-photo svg { display: none; }

/* figura 3D (WebGL): płótno zawsze twarzą do kamery; krzesło jest
   w shaderze razem z postacią, więc klocki krzesła i sylwetka znikają */
.imp { position: absolute; pointer-events: none; transform-origin: 50% 50%; }
.st .imp { filter: brightness(var(--lit)); }
.st.has-3d .who, .st.has-3d .cseat, .st.has-3d .cback, .st.has-3d .cstem, .st.has-3d .cbase { display: none; }

/* ── etykieta stanowiska ── */
.tag {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
	pointer-events: none; transition: opacity var(--dur-ui) var(--ease-out);
}
/* w zbliżeniu etykieta wisiałaby przed kamerą — te dane są na karcie */
.st.is-on .tag { opacity: 0; }
.tag-in {
	display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px;
	font: 500 26px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
	color: var(--pt-blue-200); white-space: nowrap;
	background: rgba(8,10,28,.8); box-shadow: inset 0 0 0 2px rgba(138,152,251,.32);
	transition: box-shadow 200ms var(--ease-out), color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.tag-in i { width: 12px; height: 12px; flex: none; background: var(--pt-scan); box-shadow: 0 0 14px rgba(0,194,168,.8); }
.tag-in b { color: #fff; font-weight: 600; }
.tag-in em { font-style: normal; text-transform: none; letter-spacing: .02em; color: rgba(148,153,181,.85); }
.st.is-hover .tag-in { box-shadow: inset 0 0 0 2px var(--pt-blue-300); color: #fff; }
.st.is-on .tag-in { box-shadow: inset 0 0 0 2px var(--pt-scan); background: rgba(0,194,168,.14); }
.tag-push {
	font: 600 22px/1 var(--font-mono); letter-spacing: .06em; color: var(--pt-scan); white-space: nowrap;
	opacity: 0; translate: 0 12px;
	transition: opacity 240ms var(--ease-out), translate 240ms var(--ease-out);
}
.st.is-push .tag-push { opacity: 1; translate: 0 0; }

/* pakiet commita: kwadrat marki, leci ze stanowiska na tablicę */
.pkt {
	position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; display: block;
	background: #fff; box-shadow: 0 0 18px 4px rgba(0,194,168,.85); pointer-events: none;
}

/* ════════ HUD ════════ */
.hud {
	position: absolute; z-index: 10; pointer-events: none;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
	color: var(--pt-ink-400); text-transform: uppercase;
}
.hud > * { pointer-events: auto; }
.hud--tl { top: 28px; left: 32px; }
.hud--tr { top: 28px; right: 32px; text-align: right; }
.hud--bl { bottom: 28px; left: 32px; }
.hud--br { bottom: 28px; right: 32px; text-align: right; display: grid; gap: 14px; justify-items: end; }
/* przycisk powrotu na pełnym tle — scena pod nim (tablica, szyld) nie prześwituje */
.world .btn-on-blue-secondary { background: rgba(8,10,28,.88); }
@media (hover: hover) and (pointer: fine) {
	.world .btn-on-blue-secondary:hover { background: rgba(27,40,198,.55); }
}

.mark { display: flex; align-items: center; gap: 10px; }
.mark__glyph { width: 22px; height: 22px; background: var(--pt-blue-700); display: grid; place-items: center; flex: none; }
.mark__point { width: 8px; height: 8px; background: var(--pt-blue-400); }
.mark__name { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: none; color: #fff; }
.w-eyebrow { margin-top: 22px; color: var(--pt-blue-300); }
.w-title {
	margin-top: 8px; font-family: var(--font-display); font-weight: 900;
	font-size: clamp(22px, 3.4vmin, 34px); line-height: 1.05; letter-spacing: -.02em;
	text-transform: none; color: #fff; max-width: 13ch;
}
.w-lead {
	margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: 13px;
	line-height: 1.5; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.6); max-width: 34ch;
}
.w-lead b { color: #fff; font-weight: 500; }

.meta { display: grid; gap: 6px; }
.meta__row { display: flex; gap: 10px; justify-content: flex-end; align-items: baseline; }
.meta__k { color: rgba(148,153,181,.62); }
.meta__v { color: var(--pt-blue-300); font-weight: 500; min-width: 4ch; font-variant-numeric: tabular-nums; }
.meta__v--live { color: var(--pt-scan); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 9px 12px 9px 9px; border: 1px solid rgba(94,113,249,.4);
	font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em;
	color: var(--pt-blue-200); background: rgba(27,40,198,.14);
	scale: var(--press, 1);
	transition: background var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out),
	            color var(--dur-hover) var(--ease-out), scale var(--dur-press) var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}
.chip:active { --press: .96; }
.chip .key { min-width: 18px; height: 18px; display: grid; place-items: center; background: rgba(94,113,249,.22); font-size: 10px; color: #fff; }
.chip.is-on { background: var(--pt-blue-400); border-color: var(--pt-blue-400); color: #fff; }
.chip.is-on .key { background: rgba(255,255,255,.22); }
@media (hover: hover) and (pointer: fine) {
	.chip:not(.is-on):hover { border-color: var(--pt-blue-300); color: #fff; background: rgba(27,40,198,.3); }
}
.hints { display: grid; gap: 7px; margin-top: 16px; }
.hint { display: flex; align-items: center; gap: 9px; }
.hint .k { display: inline-block; padding: 3px 7px 2px; border: 1px solid rgba(94,113,249,.34); color: var(--pt-blue-300); font-size: 10px; letter-spacing: .08em; background: rgba(27,40,198,.14); }
.hint .t { color: rgba(148,153,181,.86); letter-spacing: .04em; }

.state { display: inline-flex; align-items: center; gap: 8px; color: rgba(148,153,181,.86); }
.state__dot { width: 6px; height: 6px; flex: none; background: var(--pt-scan); box-shadow: 0 0 10px rgba(0,194,168,.9); }

/* karta zespołu — po prawej, nad przyciskiem powrotu */
.card {
	position: absolute; right: 32px; bottom: 112px; z-index: 12;
	width: min(400px, calc(100vw - 64px));
	background: rgba(15,18,48,.9);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1px rgba(138,152,251,.28), 0 24px 60px rgba(0,0,0,.45);
	padding: 20px 22px 22px;
	transform-origin: bottom right;
	opacity: 0; translate: 0 10px; scale: .98; visibility: hidden;
	transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out),
	            scale var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui);
}
.card.is-open { opacity: 1; translate: 0 0; scale: 1; visibility: visible; transition-delay: 0s; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pt-scan); padding-top: 6px; }
.card-close {
	width: 28px; height: 28px; display: grid; place-items: center; flex: none;
	color: var(--pt-ink-400); border: 1px solid rgba(138,152,251,.25); font-size: 16px; line-height: 1;
	scale: var(--press, 1); transition: color 160ms linear, border-color 160ms linear, scale var(--dur-press) var(--ease-out);
}
.card-close:active { --press: .94; }
@media (hover: hover) and (pointer: fine) { .card-close:hover { color: #fff; border-color: var(--pt-blue-300); } }
.card-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 8px; color: #fff; }
.card-desc { margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.66); text-wrap: pretty; }
.card-now {
	margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--pt-scan);
}
.card-now i { width: 6px; height: 6px; flex: none; background: var(--pt-scan); animation: blink 1.05s steps(1) infinite; }
.card-now .cf { color: rgba(255,255,255,.5); }
.card-metrics {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
	margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(138,152,251,.2);
}
.m-val { font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: var(--pt-blue-200); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.m-val small { font-size: 12px; color: rgba(255,255,255,.5); margin-right: 1px; }
.m-key { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(148,153,181,.7); margin-top: 4px; line-height: 1.35; }
.card-link {
	margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px;
	transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card-link:hover { color: var(--pt-scan); border-color: var(--pt-scan); } }

@media (max-width: 720px) {
	.hud--tl { top: 16px; left: 16px; }
	.hud--tr { display: none; }
	.hud--bl { bottom: 16px; left: 16px; right: 16px; }
	.hud--br { bottom: auto; top: 16px; right: 16px; gap: 10px; }
	.w-lead, .hints { display: none; }
	.w-title { font-size: 20px; max-width: 9ch; }
	.w-eyebrow { line-height: 1.6; }
	.w-eyebrow span { display: block; }
	.w-eyebrow .sep { display: none; }
	.card { right: 16px; bottom: 76px; width: calc(100vw - 32px); padding: 16px 16px 18px; }
	.card-name { font-size: 18px; }
	.card-metrics { gap: 10px; }
	.m-val { font-size: 16px; }
}

/* ════════ OGRANICZONY RUCH: mniej i łagodniej, nie „zero" ════════ */
@media (prefers-reduced-motion: reduce) {
	.cur, .card-now i { animation: none; }
	.brow.is-building .bs i { animation: none; }
	.scr img { transition-duration: 250ms; }
	.card { transition-duration: 120ms; translate: 0 0; scale: 1; }
}
