.pyr-portfolio-page,
.pyr-portfolio-detail-page {
	color: #52657a;
	background: #fff;
}

.pyr-portfolio-hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 96px;
	background: linear-gradient(135deg, #f7fbff 0%, #e9f4ff 100%);
}

.pyr-portfolio-hero::after {
	position: absolute;
	top: -220px;
	right: -160px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 180, 216, 0.14), rgba(0, 180, 216, 0) 68%);
	content: "";
	pointer-events: none;
}

.pyr-portfolio-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(430px, 0.88fr);
	gap: clamp(48px, 7vw, 92px);
	align-items: center;
}

.pyr-portfolio-eyebrow {
	display: inline-flex;
	margin-bottom: 16px;
	padding: 7px 12px;
	border: 1px solid rgba(11, 55, 109, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--pyramid-primary);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

.pyr-portfolio-hero-copy h1 {
	max-width: 720px;
	margin: 0 0 22px;
	color: var(--pyramid-primary-dark);
	font-size: clamp(40px, 5vw, 68px);
	font-weight: 800;
	letter-spacing: -2px;
	line-height: 1.06;
}

.pyr-portfolio-hero-copy h1 em {
	font-style: normal;
	color: var(--pyramid-accent-dark);
}

.pyr-portfolio-hero-copy > p {
	max-width: 660px;
	margin: 0;
	color: #586c82;
	font-size: 17px;
	line-height: 1.8;
}

.pyr-portfolio-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 32px;
}

.pyr-portfolio-btn-outline,
.pyr-portfolio-load-more {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 0 27px;
	border: 1.5px solid var(--pyramid-primary);
	border-radius: 8px;
	background: transparent;
	color: var(--pyramid-primary);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.pyr-portfolio-btn-outline:hover,
.pyr-portfolio-load-more:hover {
	background: var(--pyramid-primary);
	color: #fff;
}

.pyr-portfolio-hero-visual {
	position: relative;
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(11, 55, 109, 0.12);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 30px 75px rgba(7, 31, 63, 0.16);
}

.pyr-portfolio-hero-visual > img {
	display: block;
	width: 100%;
	height: 500px;
	border-radius: 20px;
	object-fit: cover;
}

.pyr-portfolio-float {
	position: absolute;
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	padding: 0 18px;
	border: 1px solid rgba(11, 55, 109, 0.1);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(7, 31, 63, 0.14);
	color: var(--pyramid-primary-dark);
	font-size: 13px;
	font-weight: 800;
}

.pyr-portfolio-float-one { top: 50px; left: -30px; }
.pyr-portfolio-float-two { right: -24px; bottom: 54px; }
.pyr-portfolio-float-three { bottom: -20px; left: 44px; background: var(--pyramid-primary); color: #fff; }

.pyr-portfolio-list-section,
.pyr-home-portfolio,
.pyr-portfolio-related-section {
	padding: 84px 0 94px;
	background: #fff;
}

.pyr-home-portfolio,
.pyr-portfolio-related-section {
	background: #f4f8fc;
}

.pyr-portfolio-section-heading,
.pyr-home-portfolio-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
	gap: 48px;
	align-items: end;
	margin-bottom: 36px;
}

.pyr-portfolio-section-heading h2,
.pyr-home-portfolio-heading h2,
.pyr-portfolio-related-section > .container > h2 {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--pyramid-primary-dark);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.16;
}

.pyr-portfolio-section-heading > p,
.pyr-home-portfolio-heading > p {
	margin: 0 0 3px;
	color: #607387;
	font-size: 14.5px;
	line-height: 1.75;
}

.pyr-home-portfolio-heading span {
	color: var(--pyramid-accent-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pyr-portfolio-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: max-content;
	max-width: 100%;
	margin: 0 0 34px;
	padding: 7px;
	border: 1px solid #d9e5f1;
	border-radius: 14px;
	background: #f2f7fc;
}

.pyr-portfolio-tabs button {
	min-height: 43px;
	padding: 0 17px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #52667b;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.pyr-portfolio-tabs button:hover,
.pyr-portfolio-tabs button:focus-visible {
	background: #fff;
	color: var(--pyramid-primary);
}

.pyr-portfolio-tabs button.is-active {
	background: linear-gradient(135deg, var(--pyramid-primary), var(--pyramid-secondary));
	box-shadow: 0 8px 18px rgba(11, 55, 109, 0.2);
	color: #fff;
}

.pyr-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.pyr-portfolio-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dce6ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(7, 31, 63, 0.055);
}

.pyr-portfolio-card[hidden] { display: none; }

.pyr-portfolio-card-cover {
	display: grid;
	aspect-ratio: 4 / 3;
	place-items: center;
	overflow: hidden;
	background: #dfeaf5;
	color: var(--pyramid-primary);
	font-size: 44px;
	font-weight: 800;
}

.pyr-portfolio-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pyr-portfolio-card-body {
	display: flex;
	min-height: 230px;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 25px 26px;
}

.pyr-portfolio-card-category {
	display: inline-flex;
	padding: 6px 10px;
	border: 1px solid #cfe0f2;
	border-radius: 999px;
	background: #edf5fd;
	color: var(--pyramid-primary);
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
}

.pyr-portfolio-card-body h3 {
	margin: 14px 0 10px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.pyr-portfolio-card-body h3 a { color: var(--pyramid-primary-dark); }
.pyr-portfolio-card-body h3 a:hover { color: var(--pyramid-accent-dark); }
.pyr-portfolio-card-body p { margin: auto 0 0; padding-top: 13px; color: #687b8f; font-size: 13px; }

.pyr-portfolio-card-link,
.pyr-home-portfolio-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 17px;
	padding-bottom: 3px;
	border-bottom: 2px solid var(--pyramid-primary);
	color: var(--pyramid-primary);
	font-size: 13px;
	font-weight: 800;
}

.pyr-portfolio-list-action,
.pyr-home-portfolio-action { margin-top: 36px; text-align: center; }
.pyr-portfolio-load-more { min-width: 230px; }
.pyr-portfolio-load-more[hidden] { display: none; }
.pyr-portfolio-empty { padding: 34px 0; color: #63768a; text-align: center; }

@media (max-width: 991px) {
	.pyr-portfolio-hero-grid,
	.pyr-portfolio-section-heading,
	.pyr-home-portfolio-heading { grid-template-columns: 1fr; }
	.pyr-portfolio-hero-visual { max-width: 720px; }
	.pyr-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.pyr-portfolio-hero { padding: 56px 0 68px; }
	.pyr-portfolio-hero-copy h1 { font-size: 38px; letter-spacing: -1px; }
	.pyr-portfolio-hero-copy > p { font-size: 15px; }
	.pyr-portfolio-hero-visual { padding: 9px; border-radius: 19px; }
	.pyr-portfolio-hero-visual > img { height: 340px; border-radius: 14px; }
	.pyr-portfolio-float { display: none; }
	.pyr-portfolio-list-section,
	.pyr-home-portfolio,
	.pyr-portfolio-related-section { padding: 60px 0 68px; }
	.pyr-portfolio-tabs { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pyr-portfolio-tabs button { width: 100%; padding: 0 10px; text-align: left; }
	.pyr-portfolio-grid { grid-template-columns: 1fr; }
	.pyr-portfolio-card-body { min-height: 210px; padding: 22px; }
}
