﻿.hp-projects-showcase {
	padding: 0 0 58px;
	overflow: visible;
}

.hp-projects-showcase .hp-wrap {
	overflow: visible;
}

.hp-projects-showcase__hero {
	padding-bottom: 0;
}

/* ── Projects hero (/projekty/) ── */

.hp-projects-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: max(25.2rem, calc((88vh - 70px) * 0.7));
	margin-block-end: 0;
	padding: clamp(3.5rem, 9.8vh, 5.95rem) clamp(1rem, 4vw, 2.5rem);
	color: #fff;
	text-align: center;
	overflow: hidden;
}

.hp-projects-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		#000 16%,
		#000 40%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		#000 16%,
		#000 40%,
		transparent 100%
	);
}

.hp-projects-hero__bg-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
}

.hp-projects-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		#000 0%,
		rgba(0, 0, 0, 0.88) 10%,
		transparent 32%
	);
}

.hp-projects-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: rgba(0, 0, 0, 0.5);
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		#000 16%,
		#000 40%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		#000 16%,
		#000 40%,
		transparent 100%
	);
}

.hp-projects-hero__inner {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: min(42rem, 92vw);
	margin-inline: auto;
	--hp-projects-hero-desc-size: clamp(0.95rem, 1.9vw, 1.08rem);
	--hp-projects-hero-desc-leading: 1.65;
	--hp-projects-hero-desc-line-gap: calc(var(--hp-projects-hero-desc-size) * var(--hp-projects-hero-desc-leading));
}

.hp-projects-hero__title {
	margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.06em;
	background: linear-gradient(
		90deg,
		var(--hp-brand-element-guru) 0%,
		var(--hp-brand-flow-light) 34%,
		var(--hp-brand-kot) 68%,
		var(--hp-brand-element-guru) 100%
	);
	background-size: 280% 100%;
	background-position: 0% 50%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.55));
	animation: hpProjectsHeroTitleGradient 14s ease-in-out infinite;
}

@keyframes hpProjectsHeroTitleGradient {
	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

.hp-projects-hero__lead {
	margin: 0 0 clamp(1rem, 2.4vw, 1.35rem);
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	line-height: 1.45;
	color: #fff;
	text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

.hp-projects-hero__lead strong {
	font-weight: 700;
}

.hp-projects-hero__desc {
	margin: 0 auto;
	max-width: 36rem;
	font-size: var(--hp-projects-hero-desc-size);
	line-height: var(--hp-projects-hero-desc-leading);
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 0 14px rgba(0, 0, 0, 0.85);
}

.hp-projects-hero-divider .hp-projects-tri-divider {
	margin-top: clamp(1rem, 2.5vw, 1.75rem);
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.hp-kula-divider--fixed-cols {
	width: fit-content;
	max-width: none;
	margin-inline: auto;
}

/* ── Projects brand cards ── */

.hp-project-cards {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
	overflow: visible;
}

.hp-project-cards .hp-wrap {
	max-width: min(96vw, 1420px);
	padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.hp-project-cards__stage {
	position: relative;
	isolation: isolate;
	overflow: visible;
}

.hp-project-cards__trail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.hp-project-cards__orb {
	--orb-color: #4ecdb4;
	position: absolute;
	left: 0;
	top: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	background: color-mix(in srgb, var(--orb-color) 82%, #ffffff 18%);
	box-shadow:
		0 0 4px color-mix(in srgb, var(--orb-color) 90%, #ffffff),
		0 0 12px var(--orb-color),
		0 0 24px var(--orb-color),
		0 0 44px color-mix(in srgb, var(--orb-color) 72%, transparent),
		0 0 64px color-mix(in srgb, var(--orb-color) 42%, transparent);
	transition: opacity 0.25s ease;
}

.hp-project-cards__orb::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		color-mix(in srgb, var(--orb-color) 52%, transparent) 0%,
		color-mix(in srgb, var(--orb-color) 22%, transparent) 42%,
		transparent 72%
	);
	z-index: -1;
	pointer-events: none;
}

.hp-project-cards__orb.is-visible {
	opacity: 1;
}

.hp-project-cards__orb.is-flying {
	z-index: 3;
}

.hp-project-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.85rem, 2vw, 1.5rem);
	align-items: stretch;
	position: relative;
	z-index: 4;
}

.hp-project-cards__item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.hp-project-cards__item:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--project-color) 72%, white 28%);
	outline-offset: 6px;
}

.hp-project-cards .hp-witcher-card {
	display: block;
	width: min(100%, 300px);
	margin-inline: auto;
	background-color: #000;
	--wc-bg-dark: #000;
	--wc-bg-light: #000;
	position: relative;
	z-index: 0;
	isolation: isolate;
}

.hp-project-cards__item--element-guru .hp-witcher-card::after {
	animation-delay: 0.15s;
}

.hp-project-cards__item--flow .hp-witcher-card::after {
	animation-delay: 0.45s;
}

.hp-project-cards__item--kot .hp-witcher-card::after {
	animation-delay: 0.75s;
}

.hp-project-cards__item:is(:hover, :focus-visible, .hp-project-cards__item--centered) .hp-witcher-card {
	box-shadow:
		0 1.5em 3em rgba(0, 0, 0, 0.9),
		0 0 1.5em color-mix(in srgb, var(--project-color) 24%, transparent);
	border-color: var(--wc-gold);
}

.hp-project-cards__item:is(:hover, :focus-visible, .hp-project-cards__item--centered) .hp-witcher-card::before {
	opacity: 1;
}

.hp-project-cards__item:is(:hover, :focus-visible, .hp-project-cards__item--centered) .hp-witcher-card__corner {
	width: 90%;
	height: 90%;
	opacity: 1;
	border-color: color-mix(in srgb, var(--wc-gold) 48%, transparent);
}

.hp-project-cards__item:is(:hover, :focus-visible, .hp-project-cards__item--centered) .hp-witcher-card__icon {
	transform: scale(1.1);
	animation: hpWitcherHum 0.1s infinite alternate;
}

.hp-project-cards__item.is-klik-active .hp-witcher-card {
	border-color: color-mix(in srgb, var(--project-color) 72%, var(--wc-gold));
	box-shadow:
		0 1.5em 3em rgba(0, 0, 0, 0.9),
		0 0 1.2em color-mix(in srgb, var(--project-color) 42%, transparent),
		0 0 2.4em color-mix(in srgb, var(--project-color) 28%, transparent);
}

.hp-project-cards .hp-witcher-card__content {
	justify-content: flex-start;
	gap: 0;
	padding-bottom: 1.1em;
	min-height: calc(100% - 0.5em);
}

.hp-project-cards .hp-witcher-card__icon {
	margin-bottom: 1.55em;
}

.hp-project-cards .hp-witcher-card__quote {
	flex: 0 0 auto;
}

.hp-project-cards .hp-witcher-card__klik {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	min-height: clamp(3.25rem, 8vw, 4.5rem);
	margin-top: 0;
	padding-top: 0.35em;
	padding-bottom: 0.15em;
	font-size: 0.68em;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: lowercase;
	text-align: center;
	color: #000;
	opacity: 0.92;
	transition:
		text-shadow 0.28s ease,
		opacity 0.28s ease,
		transform 0.28s ease;
}

.hp-project-cards .hp-witcher-card__klik.is-glowing {
	opacity: 1;
	text-shadow:
		0 0 6px var(--klik-glow, var(--project-color)),
		0 0 14px var(--klik-glow, var(--project-color)),
		0 0 28px color-mix(in srgb, var(--klik-glow, var(--project-color)) 88%, transparent),
		0 0 42px color-mix(in srgb, var(--klik-glow, var(--project-color)) 62%, transparent);
}

/* ── Projects brand modal ── */

.hp-project-modal {
	width: min(1120px, 96vw);
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: visible;
}

.hp-project-modal::backdrop {
	background: rgba(0, 0, 0, 0.72);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.hp-project-modal__frame {
	--project-color: var(--hp-brand-holon);
	display: flex;
	flex-direction: column;
	max-height: min(90vh, 880px);
	border-radius: clamp(1rem, 2vw, 1.25rem);
	border: 1px solid color-mix(in srgb, var(--project-color) 32%, transparent);
	background:
		linear-gradient(
			165deg,
			rgba(255, 255, 255, 0.06) 0%,
			rgba(8, 8, 12, 0.92) 42%,
			rgba(2, 2, 4, 0.96) 100%
		);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow:
		0 28px 64px rgba(0, 0, 0, 0.82),
		0 0 0 1px rgba(255, 255, 255, 0.06),
		0 0 32px color-mix(in srgb, var(--project-color) 28%, transparent),
		0 0 64px color-mix(in srgb, var(--project-color) 14%, transparent);
	overflow: hidden;
}

.hp-project-modal__top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(0.65rem, 2vw, 1rem);
	padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.4vw, 1.35rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-project-modal__title {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: #fff;
}

.hp-project-modal__nav,
.hp-project-modal__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.35rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(0.78rem, 1.35vw, 0.86rem);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition:
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		color 0.22s ease,
		background 0.22s ease;
}

.hp-project-modal__nav:hover,
.hp-project-modal__nav:focus-visible,
.hp-project-modal__back:hover,
.hp-project-modal__back:focus-visible {
	border-color: color-mix(in srgb, var(--project-color) 55%, transparent);
	box-shadow: 0 0 16px color-mix(in srgb, var(--project-color) 28%, transparent);
	color: #fff;
	outline: none;
}

.hp-project-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0;
	overflow: auto;
}

.hp-project-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(0.85rem, 2vw, 1.35rem);
	align-items: stretch;
	min-height: min(52vh, 420px);
}

.hp-project-modal__aside {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.35rem, 3.2vw, 2rem);
	min-height: 0;
}

.hp-project-modal__copy {
	width: 100%;
	max-width: 26rem;
}

.hp-project-modal__logo {
	display: block;
	width: clamp(4.5rem, 14vw, 6rem);
	height: auto;
	max-height: 6rem;
	margin: 0 auto clamp(1rem, 3vw, 1.35rem);
	object-fit: contain;
}

.hp-project-modal__copy[hidden] {
	display: none;
}

.hp-project-modal__desc {
	margin: 0 auto;
	font-size: clamp(0.84rem, 1.5vw, 0.96rem);
	line-height: 1.75;
	text-align: center;
	color: rgba(255, 255, 255, 0.78);
}

.hp-project-modal__desc-line {
	display: block;
	margin-bottom: 0.28em;
}

.hp-project-modal__desc-line:last-child {
	margin-bottom: 0;
}

.hp-project-modal__desc-line--gap {
	height: 0.95em;
	margin-bottom: 0;
}

.hp-project-modal__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.35rem, 3.2vw, 2rem);
	min-height: 0;
}

.hp-project-modal__screenshot {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: clamp(0.55rem, 1.2vw, 0.75rem);
	box-shadow:
		0 12px 32px rgba(0, 0, 0, 0.65),
		0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hp-project-modal__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(0.65rem, 2vw, 0.85rem);
	padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.4vw, 1.35rem);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-project-modal__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.58rem 1.35rem;
	border: 1px solid var(--hp-brand-flow-light, #f2ea1d);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.42);
	color: var(--hp-brand-flow-light, #f2ea1d);
	font-size: clamp(0.82rem, 1.45vw, 0.9rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-decoration: none;
	transition:
		background 0.25s ease,
		box-shadow 0.25s ease,
		color 0.25s ease;
}

.hp-project-modal__go:hover,
.hp-project-modal__go:focus-visible {
	background: color-mix(in srgb, var(--hp-brand-flow-light, #f2ea1d) 12%, transparent);
	box-shadow:
		0 0 12px color-mix(in srgb, var(--hp-brand-flow-light, #f2ea1d) 45%, transparent),
		0 0 24px color-mix(in srgb, var(--hp-brand-flow-light, #f2ea1d) 22%, transparent);
	color: #fff;
	outline: none;
}

body.is-project-modal-open {
	overflow: hidden;
}

/* ── Projects tri-color divider ── */

.hp-projects-tri-divider {
	width: 100%;
	height: 1px;
	margin-block: clamp(2.5rem, 6vw, 4rem);
	background: linear-gradient(
		90deg,
		transparent 0%,
		color-mix(in srgb, var(--hp-brand-element-guru) 38%, transparent) 12%,
		color-mix(in srgb, var(--hp-brand-element-guru) 62%, transparent) 22%,
		color-mix(in srgb, var(--hp-brand-flow-light) 58%, transparent) 42%,
		color-mix(in srgb, var(--hp-brand-flow-light) 72%, transparent) 50%,
		color-mix(in srgb, var(--hp-brand-kot) 58%, transparent) 72%,
		color-mix(in srgb, var(--hp-brand-kot) 38%, transparent) 82%,
		transparent 100%
	);
	box-shadow:
		0 0 6px color-mix(in srgb, var(--hp-brand-element-guru) 22%, transparent),
		0 0 10px color-mix(in srgb, var(--hp-brand-flow-light) 18%, transparent),
		0 0 6px color-mix(in srgb, var(--hp-brand-kot) 22%, transparent);
}

.hp-projects-tri-divider-stage {
	position: relative;
	width: 100%;
	margin-block: clamp(2.5rem, 6vw, 4rem);
	min-height: 66px;
	overflow: visible;
}

.hp-projects-tri-divider-stage .hp-projects-tri-divider {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	z-index: 1;
}

.hp-projects-tri-divider-stage .hp-loader--divider-rail {
	position: absolute;
	left: 50%;
	bottom: 2px;
	z-index: 2;
	width: min(220px, 72%);
	margin: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

/* ── Projects sectors closing ── */

.hp-projects-sectors-band {
	--hp-sectors-band-h: clamp(17rem, 42vh, 30rem);
	position: relative;
}

.hp-projects-sectors-band__divider--top .hp-projects-tri-divider {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: 0;
}

.hp-projects-sectors-band__divider--bottom .hp-projects-tri-divider-stage {
	margin-top: 0;
	margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hp-projects-sectors-band__stage {
	position: relative;
	min-height: var(--hp-sectors-band-h);
	overflow: hidden;
}

.hp-projects-sectors-marquee {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.hp-projects-sectors-marquee::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.64);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	pointer-events: none;
}

.hp-projects-sectors-marquee__track {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0%,
		transparent 18%,
		#000 40%,
		#000 60%,
		transparent 82%,
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0%,
		transparent 18%,
		#000 40%,
		#000 60%,
		transparent 82%,
		transparent 100%
	);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.hp-projects-sectors-marquee__track::after {
	content: none;
}

.hp-projects-sectors-marquee__inner {
	display: flex;
	width: fit-content;
	height: 100%;
	align-items: center;
	transform: translate3d(var(--hp-sectors-marquee-start, -6%), 0, 0);
	animation: hpProjectsSectorsMarquee 220s linear infinite;
	will-change: transform;
}

.hp-projects-sectors-marquee__word {
	position: relative;
	flex-shrink: 0;
	padding-inline: 0;
	margin: 0;
	font-size: calc(var(--hp-sectors-band-h) / 0.86);
	font-weight: 900;
	line-height: 0.86;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background: transparent;
	-webkit-text-stroke-width: 6px;
	-webkit-text-stroke-color: color-mix(in srgb, var(--hp-sectors-marquee-color) 42%, white 10%);
	text-shadow: none;
	filter:
		drop-shadow(0 0 4px color-mix(in srgb, var(--hp-sectors-marquee-color) 22%, transparent))
		drop-shadow(0 0 10px color-mix(in srgb, var(--hp-sectors-marquee-color) 12%, transparent))
		drop-shadow(0 0 20px color-mix(in srgb, var(--hp-sectors-marquee-color) 6%, transparent));
}

@keyframes hpProjectsSectorsMarquee {
	from {
		transform: translate3d(var(--hp-sectors-marquee-start, -6%), 0, 0);
	}
	to {
		transform: translate3d(var(--hp-sectors-marquee-end, -39%), 0, 0);
	}
}

.hp-projects-sectors {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	min-height: var(--hp-sectors-band-h);
	padding: 0 clamp(1rem, 3vw, 1.5rem);
	color: #fff;
	text-align: center;
}

.hp-projects-sectors__inner {
	position: relative;
	z-index: 1;
	max-width: min(42rem, 92vw);
	margin-inline: auto;
}

.hp-projects-sectors__title {
	margin: 0 0 clamp(1rem, 2.4vw, 1.35rem);
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.9);
}

.hp-projects-sectors__title-line {
	display: block;
}

.hp-projects-sectors__title-gradient {
	background: linear-gradient(
		90deg,
		var(--hp-brand-element-guru) 0%,
		var(--hp-brand-flow-light) 50%,
		var(--hp-brand-kot) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hp-projects-sectors__desc {
	margin: 0 auto;
	max-width: 36rem;
	font-size: clamp(0.95rem, 1.9vw, 1.08rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

.hp-projects-sectors__desc-line {
	display: block;
}

@media (max-width: 900px) {
	.hp-project-cards__grid {
		grid-template-columns: 1fr;
	}

	.hp-project-modal__layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hp-project-modal__aside {
		padding-inline: clamp(1.25rem, 4vw, 1.75rem);
		padding-block-end: 0;
		min-height: auto;
	}

	.hp-project-modal__media {
		padding-block-start: 0;
		padding-inline: clamp(1.25rem, 4vw, 1.75rem);
	}

	.hp-project-modal__top {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"title title"
			"prev next";
	}

	.hp-project-modal__title {
		grid-area: title;
	}

	.hp-project-modal__nav:first-of-type {
		grid-area: prev;
		justify-self: start;
	}

	.hp-project-modal__nav:last-of-type {
		grid-area: next;
		justify-self: end;
	}

	.hp-project-modal__bottom {
		flex-direction: column;
		align-items: stretch;
	}

	.hp-project-modal__go,
	.hp-project-modal__back {
		width: 100%;
		justify-content: center;
	}

	.hp-projects-tri-divider-stage .hp-loader--divider-rail {
		width: min(200px, 88%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-projects-hero__title {
		animation: none;
		background-position: 50% 50%;
	}

	.hp-project-cards__orb,
	.hp-project-cards__trail {
		display: none;
	}

	.hp-project-cards .hp-witcher-card__klik.is-glowing {
		text-shadow: none;
	}

	.hp-project-cards__item.is-klik-active .hp-witcher-card {
		box-shadow:
			0 1em 2em rgba(0, 0, 0, 0.5),
			inset 0 0 1.2em rgba(0, 0, 0, 0.5);
	}

	.hp-project-cards__item:is(:hover, :focus-visible, .hp-project-cards__item--centered) .hp-witcher-card__icon {
		animation: none;
	}

	.hp-projects-sectors-marquee__inner {
		animation: none;
		transform: translate3d(var(--hp-sectors-marquee-start, -8%), 0, 0);
	}

	.hp-project-cards__item--centered .hp-witcher-card__corner {
		width: 90%;
		height: 90%;
		opacity: 1;
	}

	.hp-project-modal__nav,
	.hp-project-modal__back,
	.hp-project-modal__go {
		transition: none;
	}

	.hp-projects-tri-divider-stage .hp-loader-circle,
	.hp-projects-tri-divider-stage .hp-loader-shadow {
		animation: none !important;
	}
}

.hp-projects-row {
	--card-size: clamp(168px, 26vw, 264px);
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: clamp(16px, 3.2vw, 46px);
	margin-top: clamp(22px, 4vw, 42px);
	position: relative;
	z-index: 2;
	isolation: isolate;
}

.hp-project-card {
	--hp-border-spin-duration: 5.8s;
	--hp-border-spin-delay: -0.8s;
	--hp-aura-spin-duration: 8.4s;
	--hp-aura-spin-rev-duration: 11.8s;
	--hp-aura-angle: 0deg;
	--hp-stars-duration: 9.6s;
	--hp-stars-delay: -1.4s;
	--hp-stars-offset-x: 0px;
	--hp-stars-offset-y: 0px;
	width: var(--card-size);
	flex: 0 0 var(--card-size);
	min-width: 0;
	transition: transform 0.45s ease, opacity 0.45s ease;
}

.hp-project-card:nth-child(1) {
	--hp-border-spin-duration: 6.1s;
	--hp-border-spin-delay: -1.1s;
	--hp-aura-spin-duration: 8.8s;
	--hp-aura-spin-rev-duration: 12.6s;
	--hp-aura-angle: 14deg;
	--hp-stars-duration: 10.4s;
	--hp-stars-delay: -2.1s;
	--hp-stars-offset-x: 4px;
	--hp-stars-offset-y: -8px;
}

.hp-project-card:nth-child(2) {
	--hp-border-spin-duration: 5.3s;
	--hp-border-spin-delay: -0.6s;
	--hp-aura-spin-duration: 7.9s;
	--hp-aura-spin-rev-duration: 11.2s;
	--hp-aura-angle: 138deg;
	--hp-stars-duration: 9.1s;
	--hp-stars-delay: -1.2s;
	--hp-stars-offset-x: -10px;
	--hp-stars-offset-y: 6px;
}

.hp-project-card:nth-child(3) {
	--hp-border-spin-duration: 6.6s;
	--hp-border-spin-delay: -1.8s;
	--hp-aura-spin-duration: 9.5s;
	--hp-aura-spin-rev-duration: 13.1s;
	--hp-aura-angle: 256deg;
	--hp-stars-duration: 11.2s;
	--hp-stars-delay: -2.8s;
	--hp-stars-offset-x: 12px;
	--hp-stars-offset-y: 2px;
}

.hp-projects-row:hover > .hp-project-card:not(:hover),
.hp-projects-row:focus-within > .hp-project-card:not(:focus-within) {
	transform: scale(0.9);
	opacity: 0.58;
}

.hp-projects-row:hover > .hp-project-card:not(:hover) .hp-project-card__inner,
.hp-projects-row:focus-within > .hp-project-card:not(:focus-within) .hp-project-card__inner {
	filter: blur(5px);
}

.hp-projects-row:hover > .hp-project-card:not(:hover) .hp-project-card__aura,
.hp-projects-row:focus-within > .hp-project-card:not(:focus-within) .hp-project-card__aura {
	opacity: 0.1;
}

.hp-project-card__link {
	position: relative;
	display: block;
	color: inherit;
	text-decoration: none;
}

.hp-project-card__aura {
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(var(--card-size) + 6px);
	height: calc(var(--card-size) + 6px);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 0;
	filter: blur(9px) saturate(1.08);
	opacity: 0.28;
	mix-blend-mode: screen;
	transition: opacity 0.28s ease, transform 0.28s ease;
	will-change: opacity, transform;
	backface-visibility: hidden;
}

.hp-project-card__aura::before,
.hp-project-card__aura::after {
	content: "";
	position: absolute;
	inset: -15%;
	border-radius: 50%;
	background:
		conic-gradient(
			from var(--hp-aura-angle),
			transparent 0%,
			color-mix(in srgb, var(--project-color) 86%, white 14%) 18%,
			transparent 36%,
			color-mix(in srgb, var(--project-color) 74%, white 8%) 56%,
			transparent 78%,
			color-mix(in srgb, var(--project-color) 92%, white 8%) 92%,
			transparent 100%
		);
	-webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.2) 72%, transparent 84%);
	mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.2) 72%, transparent 84%);
	transition: opacity 0.28s ease;
}

.hp-project-card__aura::before {
	opacity: 0.7;
	animation: hpProjectAuraSpin var(--hp-aura-spin-duration) linear infinite;
	animation-delay: var(--hp-border-spin-delay);
}

.hp-project-card__aura::after {
	inset: -7%;
	filter: blur(4px);
	opacity: 0.34;
	animation: hpProjectAuraSpinReverse var(--hp-aura-spin-rev-duration) linear infinite;
	animation-delay: calc(var(--hp-border-spin-delay) * 0.7);
	-webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0.62) 64%, rgba(0, 0, 0, 0.22) 76%, transparent 88%);
	mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0.62) 64%, rgba(0, 0, 0, 0.22) 76%, transparent 88%);
}

.hp-project-card__orb {
	position: relative;
	width: var(--card-size);
	height: var(--card-size);
	margin: 0 auto;
	padding: 3px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.9);
	transition: transform 0.45s ease, filter 0.45s ease;
}

.hp-project-card__orb::before {
	content: "";
	position: absolute;
	inset: -24%;
	border-radius: 50%;
	background:
		linear-gradient(
			90deg,
			transparent 0%,
			color-mix(in srgb, var(--project-color) 46%, transparent) 22%,
			color-mix(in srgb, var(--project-color) 92%, white 8%) 50%,
			color-mix(in srgb, var(--project-color) 46%, transparent) 78%,
			transparent 100%
		);
	animation: hpProjectBorderSpin var(--hp-border-spin-duration) linear infinite;
	animation-delay: var(--hp-border-spin-delay);
}

.hp-project-card__orb::after {
	content: "";
	position: absolute;
	inset: 14%;
	border-radius: 50%;
	background: color-mix(in srgb, var(--project-color) 68%, transparent);
	filter: blur(22px);
	opacity: 0.22;
	mix-blend-mode: screen;
	transition: opacity 0.45s ease, filter 0.45s ease;
}

.hp-project-card__inner {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.9);
	display: grid;
	place-items: center;
	isolation: isolate;
	transition: filter 0.45s ease;
}

.hp-project-card__logo {
	position: absolute;
	left: 50%;
	top: 50%;
	width: auto;
	max-width: 78%;
	max-height: 74%;
	object-fit: contain;
	transform: translate(-50%, -50%);
	z-index: 2;
	transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.hp-project-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	padding: clamp(14px, 6%, 22px);
	background:
		radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--project-color) 24%, transparent) 0%, rgba(0, 0, 0, 0.85) 60%),
		rgba(0, 0, 0, 0.7);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.hp-project-card__overlay h3 {
	margin: 0;
	font-size: clamp(1.15rem, 2.6vw, 1.55rem);
	color: #ffffff;
}

.hp-project-card__overlay p {
	margin: 0;
	font-size: clamp(0.82rem, 1.45vw, 1rem);
	color: rgba(255, 255, 255, 0.82);
	max-width: 22ch;
	line-height: 1.4;
}

.hp-project-card__stars {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.hp-project-card__star-layer {
	position: absolute;
	inset: -110%;
	background-repeat: repeat;
	background-position: var(--hp-stars-offset-x) var(--hp-stars-offset-y);
	opacity: 0.31;
}

.hp-project-card__star-layer--1 {
	--hp-stars-shift: 34px;
	background-image: radial-gradient(circle, color-mix(in srgb, var(--project-color) 74%, transparent) 0.9px, transparent 1.6px);
	background-size: 34px 34px;
}

.hp-project-card__star-layer--2 {
	--hp-stars-shift: 52px;
	background-image: radial-gradient(circle, color-mix(in srgb, var(--project-color) 68%, transparent) 1.25px, transparent 2.1px);
	background-size: 52px 52px;
}

.hp-project-card__star-layer--3 {
	--hp-stars-shift: 74px;
	background-image: radial-gradient(circle, color-mix(in srgb, var(--project-color) 62%, transparent) 1.8px, transparent 2.9px);
	background-size: 74px 74px;
}

.hp-project-card--dir-left .hp-project-card__star-layer {
	animation: hpProjectStarsLeft var(--hp-stars-duration) linear infinite;
	animation-delay: var(--hp-stars-delay);
}

.hp-project-card--dir-up .hp-project-card__star-layer {
	animation: hpProjectStarsUp var(--hp-stars-duration) linear infinite;
	animation-delay: var(--hp-stars-delay);
}

.hp-project-card--dir-right .hp-project-card__star-layer {
	animation: hpProjectStarsRight var(--hp-stars-duration) linear infinite;
	animation-delay: var(--hp-stars-delay);
}

.hp-project-card__star-layer--2 {
	animation-duration: calc(var(--hp-stars-duration) * 1.65);
	animation-delay: calc(var(--hp-stars-delay) * 0.65);
	background-position: calc(var(--hp-stars-offset-x) * -0.55) calc(var(--hp-stars-offset-y) * 0.75);
	opacity: 0.24;
}

.hp-project-card__star-layer--3 {
	animation-duration: calc(var(--hp-stars-duration) * 2.45);
	animation-delay: calc(var(--hp-stars-delay) * 0.35);
	background-position: calc(var(--hp-stars-offset-x) * 0.85) calc(var(--hp-stars-offset-y) * -0.5);
	opacity: 0.16;
}

.hp-project-card:hover .hp-project-card__orb,
.hp-project-card:focus-within .hp-project-card__orb {
	transform: scale(1.01) rotate(-1deg);
	filter: none;
}

.hp-project-card:hover .hp-project-card__overlay,
.hp-project-card:focus-within .hp-project-card__overlay {
	opacity: 1;
	transform: translateY(0);
}

.hp-project-card:hover .hp-project-card__logo,
.hp-project-card:focus-within .hp-project-card__logo {
	transform: translate(-50%, -50%) scale(1.28);
	filter: none;
	opacity: 1;
}

@keyframes hpProjectBorderSpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes hpProjectAuraSpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes hpProjectAuraSpinReverse {
	from {
		transform: rotate(360deg);
	}
	to {
		transform: rotate(0deg);
	}
}

@keyframes hpProjectStarsUp {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, calc(-1 * var(--hp-stars-shift)), 0);
	}
}

@keyframes hpProjectStarsLeft {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(calc(-1 * var(--hp-stars-shift)), 0, 0);
	}
}

@keyframes hpProjectStarsRight {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(var(--hp-stars-shift), 0, 0);
	}
}

@media (max-width: 900px) {
	.hp-projects-row {
		--card-size: clamp(138px, 30vw, 192px);
		gap: clamp(10px, 2.3vw, 22px);
	}
}

@media (max-width: 620px) {
	.hp-projects-row {
		--card-size: clamp(108px, 29vw, 150px);
		gap: clamp(7px, 2vw, 14px);
	}

	.hp-project-card__overlay p {
		display: none;
	}

	.hp-project-card__overlay h3 {
		font-size: clamp(0.8rem, 3.1vw, 1rem);
	}
}

.hp-kula-divider {
	--hp-kula-size: clamp(8px, 1.05vw, 12px);
	--hp-kula-gap: clamp(5px, 0.7vw, 8px);
	margin: clamp(54px, 8.5vw, 96px) auto 0;
	padding: clamp(10px, 1.6vw, 16px) 0;
	max-width: min(980px, 100%);
}

.hp-kula-divider__grid {
	display: grid;
	grid-template-columns: repeat(var(--hp-kula-cols, 28), minmax(0, 1fr));
	grid-template-rows: repeat(var(--hp-kula-rows, 1), var(--hp-kula-size));
	gap: var(--hp-kula-gap);
	justify-items: center;
	align-items: center;
	contain: layout style;
}

.hp-kula-divider--single {
	--hp-kula-size: clamp(9px, 1.15vw, 13px);
	margin-top: clamp(36px, 5.8vw, 64px);
}

.hp-kula-divider--v0 {
	--hp-kula-duration: 7.2s;
}

.hp-kula-divider--v1 {
	--hp-kula-duration: 9.4s;
}

.hp-kula-divider--v2 {
	--hp-kula-duration: 11.1s;
}

.hp-kula-divider--v3 {
	--hp-kula-duration: 8.3s;
}

.hp-kula-divider.is-offscreen .hp-kula-divider__pixel {
	animation-play-state: paused;
}

.hp-kula-divider__pixel {
	position: relative;
	width: var(--hp-kula-size);
	height: var(--hp-kula-size);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	opacity: 0.22;
	transform: scale(0.86);
	animation: hpKulaPulse 8.2s linear infinite;
	animation-duration: var(--hp-kula-duration, 8.2s);
	animation-delay: var(--hp-delay, 0s);
}

.hp-kula-divider__pixel::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 220%;
	height: 220%;
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.72);
	background: radial-gradient(
		circle,
		color-mix(in srgb, var(--hp-kula-glow, rgba(255, 255, 255, 0.2)) 42%, transparent) 0%,
		transparent 68%
	);
	animation: hpKulaGlow 8.2s linear infinite;
	animation-duration: var(--hp-kula-duration, 8.2s);
	animation-delay: var(--hp-delay, 0s);
}

@keyframes hpKulaPulse {
	0%,
	100% {
		--hp-kula-glow: rgba(255, 255, 255, 0.16);
		opacity: 0.22;
		transform: scale(0.86);
		background: rgba(255, 255, 255, 0.08);
		box-shadow: none;
	}
	24% {
		--hp-kula-glow: var(--hp-brand-element-guru);
		opacity: 1;
		transform: scale(1);
		background: var(--hp-brand-element-guru);
		box-shadow: 0 0 5px color-mix(in srgb, var(--hp-brand-element-guru) 38%, transparent);
	}
	52% {
		--hp-kula-glow: var(--hp-brand-flow);
		opacity: 1;
		transform: scale(1.1);
		background: var(--hp-brand-flow);
		box-shadow: 0 0 6px color-mix(in srgb, var(--hp-brand-flow) 40%, transparent);
	}
	80% {
		--hp-kula-glow: var(--hp-brand-kot);
		opacity: 1;
		transform: scale(1.05);
		background: var(--hp-brand-kot);
		box-shadow: 0 0 6px color-mix(in srgb, var(--hp-brand-kot) 42%, transparent);
	}
}

@keyframes hpKulaGlow {
	0%,
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.68);
	}
	20%,
	86% {
		opacity: 0.38;
		transform: translate(-50%, -50%) scale(1);
	}
}

.hp-page-projekty .hp-project-card__star-layer--2,
.hp-page-projekty .hp-project-card__star-layer--3,
.hp-lab-section--projects .hp-project-card__star-layer--2,
.hp-lab-section--projects .hp-project-card__star-layer--3 {
	display: none;
}

.hp-page-projekty .hp-profile-beam-section,
.hp-lab-section--projects .hp-profile-beam-section {
	content-visibility: auto;
	contain-intrinsic-size: auto 420px;
}

@media (prefers-reduced-motion: reduce) {
	.hp-kula-divider__pixel,
	.hp-project-card__star-layer,
	.hp-uiverse-wide-card__spinner-disk {
		animation: none !important;
	}

	.hp-uiverse-wide-card__marquee-inner {
		animation: none !important;
		transform: translate3d(var(--hp-marquee-offset), 0, 0);
	}

	.hp-uiverse-wide-card__cta::before {
		animation: none !important;
		opacity: 0.62;
	}

	.hp-witcher-card::after {
		animation: none !important;
		opacity: 0 !important;
	}
}

.hp-project-features {
	display: grid;
	gap: clamp(28px, 4.2vw, 48px);
	margin-top: clamp(38px, 5vw, 56px);
}

.hp-project-feature-row {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
	gap: clamp(12px, 2vw, 24px);
	align-items: stretch;
}

.hp-project-feature-row.is-reverse {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
}

.hp-kula-divider--after-orbs {
	margin-top: clamp(54px, 8.5vw, 96px);
}

.hp-kula-divider--after-hero.hp-kula-divider--single {
	--hp-kula-gap: clamp(1rem, 2.6vw, 1.85rem);
	margin: var(--hp-projects-hero-desc-line-gap, 1lh) auto 0;
	padding: 0;
}

.hp-kula-divider--after-features {
	margin-top: clamp(64px, 12vw, 140px);
}

@media (max-width: 920px) {
	.hp-project-feature-row,
	.hp-project-feature-row.is-reverse {
		grid-template-columns: 1fr;
	}

	.hp-uiverse-wide-card {
		min-height: clamp(170px, 35vw, 220px);
	}
}

@media (max-width: 620px) {
	.hp-project-features {
		gap: 24px;
	}
}

/* Projects feature cards */
.hp-uiverse-wide-card {
	--hp-uiverse-ring: 8px;
	--hp-uiverse-frost-inset: 2px;
	--hp-spinner-size: clamp(92px, 11vw, 134px);
	position: relative;
	min-height: clamp(196px, 25vw, 250px);
	border: 1px solid color-mix(in srgb, var(--project-color) 52%, rgba(255, 255, 255, 0.34));
	border-radius: 20px;
	overflow: visible;
	background: transparent;
	container-type: size;
}

.hp-uiverse-wide-card::after {
	content: "";
	position: absolute;
	inset: -18% -12%;
	z-index: -1;
	pointer-events: none;
	border-radius: 24px;
	background: radial-gradient(
		ellipse 70% 55% at 50% 50%,
		color-mix(in srgb, var(--project-color) 32%, transparent) 0%,
		transparent 72%
	);
	filter: blur(28px);
	opacity: 0.85;
}

/* 0b/0c — jak Uiverse: p-1 + pełny kolor, w środku w-full h-full #000 */
.hp-uiverse-wide-card__shell {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: var(--hp-uiverse-ring);
	box-sizing: border-box;
	background: var(--project-color);
	border-radius: inherit;
	z-index: 0;
}

.hp-uiverse-wide-card__shell-inner {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	background: #000000;
	overflow: hidden;
}

.hp-uiverse-pane {
	min-width: 0;
	overflow: visible;
}

.hp-uiverse-pane .hp-uiverse-wide-card {
	height: 100%;
	overflow: hidden;
}

/* Zewnętrzne rogi boxa zależą od pozycji przy Witcher, nie od --left/--right w DOM */
.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--left .hp-uiverse-wide-card {
	border-radius: 20px 0 0 20px;
}

.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--right .hp-uiverse-wide-card {
	border-radius: 0 20px 20px 0;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--left .hp-uiverse-wide-card {
	border-radius: 0 20px 20px 0;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card {
	border-radius: 20px 0 0 20px;
}

/* Marquee na czarnym tle (Uiverse StealthWorm — adaptacja) */
.hp-uiverse-wide-card__overlay {
	overflow: hidden;
}

.hp-uiverse-wide-card__marquee {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	--hp-marquee-offset: 0.5rem;
	--hp-marquee-initial: calc(-20% + var(--hp-marquee-offset));
	--hp-marquee-final: calc(-85% + var(--hp-marquee-offset));
	opacity: 0.62;
}

.hp-uiverse-wide-card__marquee::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 38%, transparent 62%, rgba(0, 0, 0, 0.25) 100%);
	pointer-events: none;
}

.hp-uiverse-wide-card__marquee-inner {
	display: flex;
	width: fit-content;
	height: 100%;
	align-items: center;
	transform: translate3d(var(--hp-marquee-initial), 0, 0);
	animation: hpUiverseMarqueeSlide 80s linear infinite;
	will-change: transform;
}

.hp-project-feature-row--element-guru .hp-uiverse-wide-card__marquee-inner {
	animation-duration: 86s;
}

.hp-project-feature-row--kot .hp-uiverse-wide-card__marquee-inner {
	animation-duration: 74s;
}

.hp-project-feature-row--flow .hp-uiverse-wide-card__marquee-inner {
	animation-duration: 92s;
}

.hp-uiverse-wide-card__marquee-text {
	flex-shrink: 0;
	padding-right: 0.35em;
	font-size: clamp(6.5rem, 78cqb, 11.5rem);
	font-weight: 900;
	line-height: 0.82;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke-width: 2px;
	-webkit-text-stroke-color: color-mix(in srgb, var(--project-color) 78%, white 22%);
}

@keyframes hpUiverseMarqueeSlide {
	from {
		transform: translate3d(var(--hp-marquee-initial), 0, 0);
	}
	to {
		transform: translate3d(var(--hp-marquee-final), 0, 0);
	}
}

/* Tło + frost pod kulą: kształt od typu boxa (tytuł / CTA), odbicie przy is-reverse */
.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--left .hp-uiverse-wide-card__shell-inner,
.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--left .hp-uiverse-wide-card__spinner-wrap::before {
	border-radius: 12px 0 0 12px;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--left .hp-uiverse-wide-card__shell-inner,
.hp-project-feature-row.is-reverse .hp-uiverse-pane--left .hp-uiverse-wide-card__spinner-wrap::before {
	border-radius: 0 12px 12px 0;
}

.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--right .hp-uiverse-wide-card__shell-inner,
.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--right .hp-uiverse-wide-card__spinner-wrap::before {
	border-radius: 0 100px 40px 0;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card__shell-inner,
.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card__spinner-wrap::before {
	border-radius: 100px 0 0 40px;
}

/* Wiersz 2: etykieta przy zewnętrznym rogu fizycznie lewego boxa (pane--right) */
.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card__section-anchor {
	right: auto;
	left: 6px;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card__section {
	transform: rotate(-45deg);
}

.hp-uiverse-wide-card__spinner-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.hp-uiverse-wide-card__spinner-wrap::before {
	content: "";
	position: absolute;
	inset: var(--hp-uiverse-frost-inset);
	z-index: 0;
	pointer-events: none;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.hp-uiverse-wide-card__spinner-slot {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	overflow: hidden;
	pointer-events: none;
}

/* Kula zawsze w stronę Witcher (wewnętrzna krawędź pane), przecięta na pół */
.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--left .hp-uiverse-wide-card__spinner-slot {
	justify-content: flex-end;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--left .hp-uiverse-wide-card__spinner-slot {
	justify-content: flex-start;
}

.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--right .hp-uiverse-wide-card__spinner-slot {
	justify-content: flex-start;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card__spinner-slot {
	justify-content: flex-end;
}

.hp-uiverse-wide-card__spinner {
	position: relative;
	z-index: 0;
	flex: 0 0 auto;
	width: var(--hp-spinner-size);
	height: var(--hp-spinner-size);
}

.hp-uiverse-wide-card__spinner-disk {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--project-color) 82%, #ffffff),
		color-mix(in srgb, var(--project-color) 48%, #000000)
	);
	box-shadow:
		0 0 28px color-mix(in srgb, var(--project-color) 55%, transparent),
		0 0 48px color-mix(in srgb, var(--project-color) 28%, transparent);
	animation: hpUiverseSpin 12s linear infinite;
}

.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--left .hp-uiverse-wide-card__spinner {
	transform: translateX(50%);
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--left .hp-uiverse-wide-card__spinner {
	transform: translateX(-50%);
}

.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--right .hp-uiverse-wide-card__spinner {
	transform: translateX(-50%);
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--right .hp-uiverse-wide-card__spinner {
	transform: translateX(50%);
}

.hp-uiverse-pane--left .hp-uiverse-wide-card__overlay {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
}

.hp-uiverse-wide-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.hp-uiverse-wide-card__overlay a,
.hp-uiverse-wide-card__overlay button {
	pointer-events: auto;
}

.hp-uiverse-pane--right .hp-uiverse-wide-card__overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
}

.hp-uiverse-wide-card__left {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	width: 100%;
	min-height: 100%;
	height: 100%;
	padding: 12px 12px 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: rgba(249, 250, 251, 0.1);
	color: rgba(229, 231, 235, 0.94);
}

.hp-project-feature-row:not(.is-reverse) .hp-uiverse-pane--left .hp-uiverse-wide-card__left {
	border-radius: 12px 0 0 12px;
}

.hp-project-feature-row.is-reverse .hp-uiverse-pane--left .hp-uiverse-wide-card__left {
	border-radius: 0 12px 12px 0;
}

.hp-uiverse-wide-card__left-title {
	font-size: 1.08rem;
	line-height: 1.16;
	text-align: center;
}

.hp-uiverse-wide-card__right {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.54);
	overflow: visible;
}

.hp-uiverse-wide-card__section-anchor {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	overflow: visible;
	pointer-events: none;
}

.hp-uiverse-wide-card__section {
	margin: 0;
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	color: color-mix(in srgb, var(--project-color) 62%, white 38%);
	transform: rotate(45deg);
	transform-origin: center center;
}

.hp-uiverse-wide-card__cta {
	position: relative;
	z-index: 0;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	transition: transform 0.3s ease;
}

.hp-uiverse-wide-card__cta::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 150%;
	height: 150%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
	background: radial-gradient(
		circle at 50% 50%,
		color-mix(in srgb, var(--project-color) 72%, white 8%) 0%,
		color-mix(in srgb, var(--project-color) 38%, transparent) 42%,
		transparent 70%
	);
	filter: blur(12px) saturate(1.12);
	opacity: 0.68;
	mix-blend-mode: screen;
	animation: hpUiverseCtaAura 5.4s ease-in-out infinite;
}

.hp-uiverse-wide-card__cta:hover,
.hp-uiverse-wide-card__cta:focus-visible {
	transform: scale(1.05);
}

.hp-uiverse-wide-card__cta:hover::before,
.hp-uiverse-wide-card__cta:focus-visible::before {
	opacity: 0.92;
}

.hp-uiverse-wide-card__cta-orb {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 2px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.9);
}

.hp-uiverse-wide-card__cta-orb::before {
	content: "";
	position: absolute;
	inset: -30%;
	border-radius: 50%;
	background:
		linear-gradient(
			90deg,
			transparent 0%,
			color-mix(in srgb, var(--project-color) 48%, transparent) 20%,
			color-mix(in srgb, var(--project-color) 94%, white 6%) 50%,
			color-mix(in srgb, var(--project-color) 48%, transparent) 80%,
			transparent 100%
		);
	animation: hpNavMiniBorderSpin 5.8s linear infinite;
}

.hp-uiverse-wide-card__cta-inner {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.92);
	overflow: hidden;
	transition: none;
}

.hp-uiverse-wide-card__cta-inner svg {
	width: 17px;
	height: 17px;
	fill: color-mix(in srgb, var(--project-color) 80%, white 20%);
	transition: transform 0.28s ease, fill 0.28s ease;
}

.hp-uiverse-wide-card__cta:hover .hp-uiverse-wide-card__cta-inner,
.hp-uiverse-wide-card__cta:focus-visible .hp-uiverse-wide-card__cta-inner {
	transform: none;
}

.hp-uiverse-wide-card__cta:hover .hp-uiverse-wide-card__cta-inner svg,
.hp-uiverse-wide-card__cta:focus-visible .hp-uiverse-wide-card__cta-inner svg {
	transform: scale(1.25);
	fill: color-mix(in srgb, var(--project-color) 92%, white 8%);
}

@keyframes hpUiverseCtaAura {
	0%,
	100% {
		opacity: 0.48;
		transform: translate(-50%, -50%) scale(0.9);
	}
	50% {
		opacity: 0.82;
		transform: translate(-50%, -50%) scale(1.08);
	}
}

.hp-witcher-card {
	--wc-bg-dark: #121214;
	--wc-bg-light: #1e1e21;
	--wc-silver: color-mix(in srgb, var(--project-color) 45%, #b8b8b8);
	--wc-silver-dark: color-mix(in srgb, var(--project-color) 26%, #4a4a4a);
	--wc-gold: color-mix(in srgb, var(--project-color) 72%, #d2b073);
	--wc-eye-glow: color-mix(in srgb, var(--project-color) 88%, #ffffff);
	--wc-magic-aura: color-mix(in srgb, var(--project-color) 28%, transparent);
	position: relative;
	width: min(100%, 300px);
	justify-self: center;
	min-height: clamp(300px, 34vw, 380px);
	background-color: transparent;
	border: 0.2em solid var(--wc-silver-dark);
	color: var(--wc-silver);
	padding: 1.25em;
	overflow: hidden;
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
	background-image: none;
	box-shadow:
		0 1em 2em rgba(0, 0, 0, 0.5),
		inset 0 0 1.2em rgba(0, 0, 0, 0.5);
}

.hp-witcher-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: radial-gradient(circle at 50% 40%, var(--wc-magic-aura) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

/* Jednorazowy przebłysk przy wejściu karty w widok */
.hp-witcher-card::after {
	content: "";
	position: absolute;
	z-index: 0;
	top: -30%;
	left: -30%;
	width: 160%;
	height: 160%;
	pointer-events: none;
	opacity: 0;
	border-radius: 0;
	background: linear-gradient(
		115deg,
		transparent 26%,
		color-mix(in srgb, var(--project-color) 55%, #ffffff) 42%,
		color-mix(in srgb, var(--project-color) 55%, #ffffff) 50%,
		color-mix(in srgb, var(--project-color) 55%, #ffffff) 58%,
		transparent 74%
	);
	filter: blur(26px);
	mix-blend-mode: screen;
	animation: hpWitcherGlowSweep 1.9s ease-in-out 1 forwards;
}

.hp-project-feature-row--element-guru .hp-witcher-card::after {
	animation-delay: 0.15s;
}

.hp-project-feature-row--kot .hp-witcher-card::after {
	animation-delay: 0.45s;
}

.hp-project-feature-row--flow .hp-witcher-card::after {
	animation-delay: 0.75s;
}

@keyframes hpWitcherGlowSweep {
	0% {
		opacity: 0;
		transform: translate(-68%, -68%);
	}
	18% {
		opacity: 0.28;
	}
	58% {
		opacity: 0.22;
		transform: translate(68%, 68%);
	}
	100% {
		opacity: 0;
		transform: translate(82%, 82%);
	}
}

.hp-witcher-card__corner {
	position: absolute;
	z-index: 1;
	width: 2em;
	height: 2em;
	border: 0.15em solid var(--wc-gold);
	transition: all 0.4s ease;
	opacity: 0.6;
}

.hp-witcher-card__corner--top-left {
	top: 0.5em;
	left: 0.5em;
	border-right: none;
	border-bottom: none;
}

.hp-witcher-card__corner--top-right {
	top: 0.5em;
	right: 0.5em;
	border-left: none;
	border-bottom: none;
}

.hp-witcher-card__corner--bottom-left {
	bottom: 0.5em;
	left: 0.5em;
	border-right: none;
	border-top: none;
}

.hp-witcher-card__corner--bottom-right {
	bottom: 0.5em;
	right: 0.5em;
	border-left: none;
	border-top: none;
}

.hp-witcher-card__content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1em;
	padding: 0.5em;
}

.hp-witcher-card__icon {
	width: 7em;
	height: 7em;
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 0.5em 1em rgba(0, 0, 0, 0.8));
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hp-witcher-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 10px color-mix(in srgb, var(--project-color) 44%, transparent));
}

.hp-witcher-card__quote {
	margin: 0;
	padding-top: 0;
	color: var(--wc-silver);
	white-space: pre-line;
	font-style: italic;
	text-align: center;
	font-size: 0.9em;
	letter-spacing: 0.06em;
	line-height: 1.55;
}

.hp-witcher-card:hover,
.hp-witcher-card:focus-visible {
	box-shadow:
		0 1.5em 3em rgba(0, 0, 0, 0.9),
		0 0 1.5em color-mix(in srgb, var(--project-color) 24%, transparent);
	border-color: var(--wc-gold);
}

.hp-witcher-card:hover::before,
.hp-witcher-card:focus-visible::before {
	opacity: 1;
}

.hp-witcher-card:hover .hp-witcher-card__corner,
.hp-witcher-card:focus-visible .hp-witcher-card__corner {
	width: 90%;
	height: 90%;
	opacity: 1;
	border-color: color-mix(in srgb, var(--wc-gold) 48%, transparent);
}

.hp-witcher-card:hover .hp-witcher-card__icon,
.hp-witcher-card:focus-visible .hp-witcher-card__icon {
	transform: scale(1.1);
	animation: hpWitcherHum 0.1s infinite alternate;
}

@keyframes hpUiverseSpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes hpWitcherHum {
	0% {
		transform: scale(1.1) translate(0, 0);
	}
	100% {
		transform: scale(1.1) translate(1px, 1px);
	}
}

@media (max-width: 920px) {
	.hp-uiverse-wide-card__left-text {
		font-size: 0.76rem;
	}
}

@media (max-width: 620px) {
	.hp-uiverse-wide-card {
		min-height: 186px;
	}

	.hp-uiverse-wide-card__left {
		padding: 10px;
	}

	.hp-witcher-card {
		width: min(100%, 260px);
		min-height: 320px;
	}
}

/* Profile beam module */
.hp-profile-beam-section {
	margin-top: clamp(28px, 4.5vw, 52px);
	padding-bottom: clamp(30px, 5vw, 54px);
	overflow: visible;
}

.hp-profile-beam {
	--hp-center-size: clamp(112px, 12vw, 148px);
	--hp-card-stack-gap: clamp(12px, 1.7vw, 18px);
	--hp-card-height: auto;
	--hp-half-beam-gap: clamp(22px, 3.2vw, 34px);
	--hp-white-border: #ffffff;
	position: relative;
	min-height: clamp(320px, 44vw, 500px);
	max-width: 980px;
	margin: 0 auto;
	display: grid;
	place-items: center;
	overflow: visible;
}

.hp-profile-beam__links {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	overflow: visible;
}

.hp-profile-beam__link-base {
	fill: none;
	stroke: rgba(174, 174, 174, 0.34);
	stroke-width: 0.55;
	stroke-linecap: round;
}

.hp-profile-beam__link-base--half {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.hp-profile-beam.has-half-beams .hp-profile-beam__link-base--half {
	opacity: 1;
}

.hp-profile-beam__link-glow {
	fill: none;
	stroke-width: 2.6;
	stroke-linecap: round;
	opacity: 0.34;
	filter: url(#hp-profile-beam-glow);
	mix-blend-mode: screen;
	stroke-dasharray: 10 170;
	animation: hpProfileBeamFlow 7.8s linear infinite;
}

.hp-profile-beam__link-glow--0 {
	stroke: var(--hp-brand-element-guru);
}

.hp-profile-beam__link-glow--1 {
	stroke: var(--hp-brand-kot);
	animation-delay: -1.95s;
}

.hp-profile-beam__link-glow--2 {
	stroke: var(--hp-brand-flow);
	animation-delay: -3.9s;
}

.hp-profile-beam__link-glow--3 {
	stroke: var(--hp-brand-holon);
	animation-delay: -5.85s;
}

.hp-profile-beam__link-glow--white {
	stroke: rgba(255, 255, 255, 0.92);
	opacity: 0;
	filter: url(#hp-profile-beam-glow-white);
	animation-delay: -2.4s;
}

.hp-profile-beam.has-half-beams .hp-profile-beam__link-glow--white {
	opacity: 0.42;
}

.hp-profile-beam__link-flow {
	fill: none;
	stroke-width: 0.9;
	stroke-linecap: round;
	stroke-dasharray: 10 170;
	filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 14px currentColor);
	mix-blend-mode: screen;
	animation: hpProfileBeamFlow 7.8s linear infinite;
}

.hp-profile-beam__link-flow--0 {
	stroke: var(--hp-brand-element-guru);
}

.hp-profile-beam__link-flow--1 {
	stroke: var(--hp-brand-kot);
	animation-delay: -1.95s;
}

.hp-profile-beam__link-flow--2 {
	stroke: var(--hp-brand-flow);
	animation-delay: -3.9s;
}

.hp-profile-beam__link-flow--3 {
	stroke: var(--hp-brand-holon);
	animation-delay: -5.85s;
}

.hp-profile-beam__link-flow--white {
	stroke: rgba(255, 255, 255, 0.96);
	opacity: 0;
	animation-delay: -2.4s;
}

.hp-profile-beam.has-half-beams .hp-profile-beam__link-flow--white {
	opacity: 1;
}

.hp-profile-beam__side {
	--hp-side-size: clamp(64px, 8vw, 86px);
	position: absolute;
	width: var(--hp-side-size);
	height: var(--hp-side-size);
	display: grid;
	place-items: center;
	text-decoration: none;
	z-index: 2;
}

.hp-profile-beam__side--0 {
	left: clamp(6px, 2.4vw, 20px);
	top: 20%;
}

.hp-profile-beam__side--1 {
	left: clamp(6px, 2.4vw, 20px);
	top: 62%;
}

.hp-profile-beam__side--2 {
	right: clamp(6px, 2.4vw, 20px);
	top: 20%;
}

.hp-profile-beam__side--3 {
	right: clamp(6px, 2.4vw, 20px);
	top: 62%;
}

.hp-profile-beam__side-orb {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 3px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0.9;
	transition: transform 0.22s ease;
}

.hp-profile-beam__side-orb::before {
	content: "";
	position: absolute;
	inset: -32%;
	border-radius: 50%;
	background:
		linear-gradient(
			90deg,
			transparent 0%,
			color-mix(in srgb, var(--project-color) 48%, transparent) 20%,
			color-mix(in srgb, var(--project-color) 94%, white 6%) 50%,
			color-mix(in srgb, var(--project-color) 48%, transparent) 80%,
			transparent 100%
		);
	animation: hpNavMiniBorderSpin 5.8s linear infinite;
}

.hp-profile-beam__side-orb--white::before {
	background:
		linear-gradient(
			90deg,
			transparent 0%,
			rgba(255, 255, 255, 0.48) 20%,
			rgba(255, 255, 255, 0.94) 50%,
			rgba(255, 255, 255, 0.48) 80%,
			transparent 100%
		);
}

.hp-profile-beam__center-wrap .hp-profile-beam__side-orb {
	opacity: 1;
}

.hp-profile-beam__center-wrap .hp-profile-beam__side-inner {
	background: #000000;
}

.hp-profile-beam__side-logo--kot {
	max-width: 72%;
	max-height: 72%;
	object-fit: contain;
}

.hp-profile-beam__side-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.9);
	overflow: hidden;
}

.hp-profile-beam__side-logo {
	max-width: 84%;
	max-height: 84%;
	object-fit: contain;
	opacity: 1;
	transition: transform 0.22s ease;
}

.hp-profile-beam__side-text {
	font-size: clamp(0.68rem, 1.4vw, 0.9rem);
	letter-spacing: 0.09em;
	color: color-mix(in srgb, var(--project-color) 72%, white 28%);
}

.hp-profile-beam__center-wrap .hp-profile-beam__side-text {
	font-size: clamp(1.06rem, 2.2vw, 1.42rem);
}

.hp-profile-beam__side:hover .hp-profile-beam__side-orb,
.hp-profile-beam__side:focus-visible .hp-profile-beam__side-orb {
	transform: scale(1.06);
}

.hp-profile-beam__side:hover .hp-profile-beam__side-logo,
.hp-profile-beam__side:focus-visible .hp-profile-beam__side-logo {
	transform: scale(1.22);
}

.hp-profile-beam__center-wrap {
	position: relative;
	z-index: 5;
	width: var(--hp-center-size);
	height: var(--hp-center-size);
	display: grid;
	place-items: center;
	transition: width 0.38s ease, height 0.38s ease;
	overflow: visible;
}

.hp-profile-beam__center-wrap .hp-profile-beam__side-orb {
	overflow: hidden;
	isolation: isolate;
}

.hp-profile-beam__center,
.hp-profile-beam__center-trigger {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hp-profile-beam__center .hp-profile-beam__side-orb,
.hp-profile-beam__center-trigger .hp-profile-beam__side-orb {
	width: 100%;
	height: 100%;
}

.hp-profile-beam__center-trigger .hp-profile-beam__side-orb::before {
	display: block;
	background:
		linear-gradient(
			90deg,
			transparent 0%,
			rgba(156, 162, 173, 0.42) 18%,
			rgba(232, 234, 239, 0.98) 50%,
			rgba(156, 162, 173, 0.42) 82%,
			transparent 100%
		);
	animation: hpNavMiniBorderSpin 5.8s linear infinite;
}

/* Uiverse Smit-Prajapati contact card — gold shell / dark-gold panel */
.hp-profile-beam {
	--hp-smit-gold-soft: #e8d48a;
	--hp-smit-gold: #c9a227;
	--hp-smit-gold-deep: #9a7b18;
	--hp-smit-gold-dark-soft: #b8942a;
	--hp-smit-gold-dark: #8a6b14;
	--hp-smit-gold-dark-deep: #5c460d;
	--hp-smit-gold-dark-text: #f5ecd4;
	--hp-smit-silver-soft: #f3f4f7;
	--hp-smit-silver: #d5dae3;
	--hp-smit-silver-deep: #a8b0bc;
	--hp-smit-card-size: clamp(280px, min(380px, 58vw), 380px);
}

.hp-profile-beam__center-wrap .hp-profile-smit-card {
	--hp-smit-card-size-local: var(--hp-smit-card-size);
	position: absolute;
	inset: 0;
	margin: auto;
	width: var(--hp-smit-card-size-local);
	height: var(--hp-smit-card-size-local);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 4;
}

.hp-profile-beam.is-card-open .hp-profile-beam__center-wrap {
	width: var(--hp-smit-card-size);
	height: var(--hp-smit-card-size);
	z-index: 8;
}

.hp-profile-beam.is-card-open .hp-profile-beam__center-trigger {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.hp-profile-beam.is-card-open .hp-profile-smit-card {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hp-profile-beam .hp-profile-smit-card.card {
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, var(--hp-smit-gold-soft) 0%, var(--hp-smit-gold) 38%, var(--hp-smit-gold-soft) 62%, var(--hp-smit-gold-deep) 100%);
	border-radius: 32px;
	padding: 4px;
	position: relative;
	box-shadow: rgba(40, 38, 36, 0.28) 0px 70px 30px -50px;
	transition: all 0.5s ease-in-out;
}

.hp-profile-beam .hp-profile-smit-card .mail {
	position: absolute;
	right: 2rem;
	top: 1.4rem;
	background: transparent;
	border: none;
	z-index: 5;
	display: grid;
	place-items: center;
	padding: 0;
	text-decoration: none;
	cursor: pointer;
}

.hp-profile-beam .hp-profile-smit-card .mail svg {
	stroke: var(--hp-smit-gold-dark-deep);
	stroke-width: 3px;
}

.hp-profile-beam .hp-profile-smit-card .mail svg:hover {
	stroke: var(--hp-smit-gold-dark);
}

.hp-profile-beam .hp-profile-smit-card .profile-pic {
	position: absolute;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	top: 4px;
	left: 4px;
	border-radius: 29px;
	z-index: 1;
	border: 0 solid var(--hp-smit-gold-dark-soft);
	overflow: hidden;
	background: #0a0a0a;
	transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s, transform 0.45s ease;
}

.hp-profile-beam .hp-profile-smit-card .profile-pic img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	object-position: center;
	transition: all 0.5s ease-in-out 0s;
}

.hp-profile-beam .hp-profile-smit-card .bottom {
	position: absolute;
	bottom: 4px;
	left: 4px;
	right: 4px;
	background: linear-gradient(135deg, var(--hp-smit-gold-dark-soft) 0%, var(--hp-smit-gold-dark) 48%, var(--hp-smit-gold-dark-deep) 100%);
	top: 80%;
	border-radius: 29px;
	z-index: 2;
	box-shadow: rgba(40, 30, 8, 0.28) 0px 5px 5px 0px inset;
	overflow: hidden;
	transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.hp-profile-beam .hp-profile-smit-card .bottom .content {
	position: absolute;
	bottom: 5.5rem;
	left: 1.75rem;
	right: 1.75rem;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.hp-profile-beam .hp-profile-smit-card .bottom .content .name {
	display: block;
	width: 100%;
	font-size: 1.45rem;
	color: var(--hp-smit-gold-dark-text);
	font-weight: bold;
	text-align: center;
}

.hp-profile-beam .hp-profile-smit-card .bottom .content .about-me {
	display: block;
	width: 100%;
	font-size: 1rem;
	color: color-mix(in srgb, var(--hp-smit-gold-dark-text) 86%, transparent);
	margin-top: 1.35rem;
	line-height: 1.45;
	text-align: center;
	white-space: pre-line;
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom {
	position: absolute;
	left: calc(4px + 1.75rem);
	right: calc(4px + 1.75rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	z-index: 3;
}

/* Otwarta karta — stała pozycja w pasku (nie jedzie z rozwijanym .bottom) */
.hp-profile-beam.is-card-open .hp-profile-smit-card .bottom-bottom {
	bottom: calc(2px + 10% - 26px);
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom .social-links-container {
	display: flex;
	gap: 0.85rem;
	align-items: center;
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom .social-links-container a {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	transition: transform 0.22s ease;
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom .social-links-container a:hover,
.hp-profile-beam .hp-profile-smit-card .bottom-bottom .social-links-container a:focus-visible {
	transform: scale(1.15);
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom .social-links-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 3px;
	filter: drop-shadow(0 4px 4px rgba(40, 30, 10, 0.25));
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom .button {
	background: linear-gradient(135deg, var(--hp-smit-silver) 0%, var(--hp-smit-silver-deep) 55%, #8f98a6 100%);
	color: var(--hp-smit-gold-dark-deep);
	border: none;
	border-radius: 24px;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 0.75rem 1.15rem;
	text-decoration: none;
	box-shadow: rgba(50, 56, 68, 0.22) 0px 5px 5px 0px;
	white-space: nowrap;
	transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.hp-profile-beam .hp-profile-smit-card .bottom-bottom .button:hover,
.hp-profile-beam .hp-profile-smit-card .bottom-bottom .button:focus-visible {
	background: linear-gradient(145deg, var(--hp-smit-gold-soft) 0%, var(--hp-smit-gold) 42%, var(--hp-smit-gold-soft) 68%, var(--hp-smit-gold-deep) 100%);
	color: var(--hp-smit-gold-dark-deep);
	box-shadow: rgba(60, 48, 20, 0.24) 0px 5px 5px 0px;
}

.hp-profile-beam .hp-profile-smit-card:hover {
	border-top-left-radius: 55px;
}

.hp-profile-beam .hp-profile-smit-card:hover .bottom {
	top: 20%;
	border-radius: 80px 29px 29px 29px;
	transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.hp-profile-beam .hp-profile-smit-card:hover .profile-pic {
	width: 128px;
	height: 128px;
	aspect-ratio: 1;
	top: 12px;
	left: 12px;
	border-radius: 50%;
	z-index: 3;
	border: 7px solid var(--hp-smit-gold-dark-soft);
	box-shadow: rgba(40, 30, 8, 0.24) 0px 5px 5px 0px;
	transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.hp-profile-beam .hp-profile-smit-card:hover .profile-pic:hover {
	transform: scale(1.3) translateY(-10px);
	border-radius: 0;
}

.hp-profile-beam .hp-profile-smit-card:hover .profile-pic img {
	transform: scale(2.5);
	object-position: center;
	transition: all 0.5s ease-in-out 0.5s;
}

@media (prefers-reduced-motion: reduce) {
	.hp-profile-beam .hp-profile-smit-card,
	.hp-profile-beam .hp-profile-smit-card .bottom,
	.hp-profile-beam .hp-profile-smit-card .profile-pic,
	.hp-profile-beam .hp-profile-smit-card .profile-pic img {
		transition: none !important;
	}

	.hp-profile-beam .hp-profile-smit-card:hover .bottom {
		top: 20%;
	}
}

@keyframes hpProfileBeamFlow {
	from {
		stroke-dashoffset: 180;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@media (max-width: 860px) {
	.hp-profile-beam {
		min-height: 560px;
	}

	.hp-profile-beam__side--0 {
		left: 16%;
		top: 6%;
	}

	.hp-profile-beam__side--1 {
		left: 16%;
		top: 72%;
	}

	.hp-profile-beam__side--2 {
		right: 16%;
		top: 6%;
	}

	.hp-profile-beam__side--3 {
		right: 16%;
		top: 72%;
	}
}

@media (max-width: 640px) {
	.hp-profile-beam {
		min-height: 620px;
	}

	.hp-profile-beam__side {
		--hp-side-size: 58px;
	}

	.hp-profile-beam {
		--hp-smit-card-size: min(320px, 92vw);
	}
}

