.portfolio-page {
	--project-primary: #138dff;
	--project-secondary: #9844ff;
	position: relative;
	overflow: hidden;
	padding-top: var(--header-height);
	background:
		radial-gradient(circle at 76% 8%, color-mix(in srgb, var(--project-primary) 13%, transparent), transparent 25rem),
		radial-gradient(circle at 25% 55%, color-mix(in srgb, var(--project-secondary) 7%, transparent), transparent 30rem);
}

.portfolio-page::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(50, 95, 180, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(50, 95, 180, .025) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	pointer-events: none;
	mask-image: linear-gradient(#000, transparent 88%);
}

.portfolio-shell {
	position: relative;
	z-index: 2;
	width: min(calc(100% - 48px), 1280px);
	margin-inline: auto;
}

.portfolio-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	color: var(--project-primary);
	font-size: .7rem;
	font-weight: 650;
	letter-spacing: .065em;
	text-transform: uppercase;
}

.portfolio-kicker::before {
	width: 17px;
	height: 1px;
	background: currentColor;
	content: "";
}

.portfolio-hero {
	min-height: 535px;
	border-bottom: 1px solid rgba(76, 111, 174, .1);
}

.portfolio-hero-grid {
	display: grid;
	min-height: 535px;
	grid-template-columns: .88fr 1.12fr;
	align-items: center;
	gap: 55px;
	padding-block: 50px 42px;
}

.portfolio-hero-copy {
	padding-left: 35px;
}

.portfolio-hero h1 {
	margin-bottom: 22px;
	font-size: clamp(2.65rem, 4.7vw, 4.35rem);
	font-weight: 540;
	line-height: 1.08;
}

.portfolio-hero h1 span {
	background: linear-gradient(95deg, var(--project-primary), var(--project-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.portfolio-intro {
	max-width: 560px;
	margin-bottom: 25px;
	font-size: .9rem;
	line-height: 1.75;
}

.portfolio-actions {
	display: flex;
	gap: 12px;
	margin-bottom: 30px;
}

.portfolio-details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 7px;
}

.portfolio-details > div {
	display: flex;
	min-height: 70px;
	align-items: center;
	gap: 12px;
	padding: 13px;
	border: 1px solid rgba(55, 105, 190, .3);
	border-radius: 7px;
	background: linear-gradient(145deg, rgba(8, 18, 37, .9), rgba(3, 8, 18, .96));
}

.portfolio-details .icon {
	width: 27px;
	height: 27px;
	color: var(--project-primary);
}

.portfolio-details span {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.portfolio-details small {
	color: #768299;
	font-size: .5rem;
	text-transform: uppercase;
}

.portfolio-details strong {
	overflow: hidden;
	font-size: .63rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portfolio-hero-visual {
	position: relative;
	height: 420px;
}

.project-company-badge {
	position: absolute;
	z-index: 4;
	top: 14px;
	left: 0;
	display: flex;
	min-width: 155px;
	flex-direction: column;
	padding: 12px 16px;
	border: 1px dashed rgba(191, 206, 231, .5);
	border-radius: 7px;
	background: rgba(3, 8, 19, .9);
	text-align: center;
}

.project-company-badge strong {
	font-size: .76rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.project-company-badge img {
	display: block;
	width: auto;
	max-width: 185px;
	height: 52px;
	object-fit: contain;
	object-position: left center;
}

.project-company-badge span {
	color: #9da9bf;
	font-size: .56rem;
}

.project-laptop {
	position: absolute;
	top: 50px;
	right: 35px;
	width: 560px;
	filter: drop-shadow(0 25px 35px color-mix(in srgb, var(--project-secondary) 23%, transparent));
}

.project-browser {
	height: 310px;
	overflow: hidden;
	border: 3px solid #233968;
	border-radius: 13px 13px 4px 4px;
	background: #071023;
}

.project-browser-bar {
	display: flex;
	height: 24px;
	align-items: center;
	gap: 4px;
	padding: 0 10px;
	background: #0e1930;
}

.project-browser-bar i {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #4c5d7c;
}

.project-browser-bar span {
	width: 45%;
	height: 5px;
	margin-left: 8px;
	border-radius: 4px;
	background: #1b2a48;
}

.project-browser img {
	width: 100%;
	height: calc(100% - 24px);
	object-fit: cover;
	object-position: top;
}

.project-laptop-base {
	width: 620px;
	height: 28px;
	margin-left: -30px;
	border: 1px solid #324d8a;
	border-radius: 2px 2px 50% 50%;
	background: linear-gradient(#14234b, #050b1c);
	transform: perspective(180px) rotateX(42deg);
}

.project-phone {
	position: absolute;
	z-index: 3;
	right: 5px;
	bottom: 12px;
	width: 150px;
	height: 290px;
	overflow: hidden;
	padding: 9px 7px;
	border: 4px solid #151d35;
	border-radius: 25px;
	background: #040713;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 24px color-mix(in srgb, var(--project-primary) 18%, transparent);
}

.project-phone img {
	width: 100%;
	height: 100%;
	border-radius: 17px;
	object-fit: cover;
	object-position: top;
}

.project-phone-speaker {
	position: absolute;
	z-index: 2;
	top: 9px;
	left: 50%;
	width: 45px;
	height: 5px;
	border-radius: 5px;
	background: #080c17;
	transform: translateX(-50%);
}

.portfolio-panel {
	position: relative;
	z-index: 2;
	margin-top: 12px;
}

.portfolio-panel > .portfolio-shell {
	padding: 24px 30px 28px;
	border: 1px solid rgba(60, 108, 196, .24);
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(7, 15, 31, .88), rgba(2, 7, 16, .94));
}

.portfolio-metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.portfolio-metrics > div {
	display: grid;
	min-height: 85px;
	grid-template-columns: 50px 1fr;
	align-content: center;
	padding: 0 25px;
	border-right: 1px dashed rgba(50, 124, 255, .55);
}

.portfolio-metrics > div:last-child {
	border: 0;
}

.portfolio-metrics .icon {
	width: 38px;
	height: 38px;
	align-self: center;
	color: var(--project-primary);
	grid-row: 1 / span 2;
}

.portfolio-metrics > div:nth-child(2n) .icon {
	color: var(--project-secondary);
}

.portfolio-metrics strong {
	font-size: 1.55rem;
	font-weight: 500;
}

.portfolio-metrics span {
	color: #b1bbcd;
	font-size: .65rem;
}

.portfolio-design-grid {
	display: grid;
	grid-template-columns: .8fr 1.7fr;
	align-items: center;
	gap: 35px;
}

.portfolio-design h2,
.portfolio-seo h2 {
	margin-bottom: 18px;
	font-size: 1.75rem;
}

.portfolio-checklist {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portfolio-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #bdc6d7;
	font-size: .76rem;
}

.portfolio-checklist .icon {
	width: 18px;
	height: 18px;
	padding: 3px;
	border: 1px solid var(--project-primary);
	border-radius: 50%;
	color: var(--project-primary);
}

.portfolio-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 13px;
}

.portfolio-gallery figure {
	position: relative;
	height: 225px;
	overflow: hidden;
	margin: 0;
	border: 1px solid rgba(56, 105, 193, .38);
	border-radius: 8px;
	background: #061027;
}

.portfolio-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 450ms ease;
}

.portfolio-gallery figure:hover img {
	transform: scale(1.04);
}

.portfolio-gallery figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 9px;
	background: linear-gradient(transparent, rgba(3, 7, 17, .95));
	color: #cbd5e7;
	font-size: .58rem;
	text-transform: uppercase;
}

.portfolio-gallery-dots {
	display: none;
}

.portfolio-seo-grid {
	display: grid;
	grid-template-columns: .85fr 1.4fr .62fr;
	align-items: center;
	gap: 20px;
}

.portfolio-seo-grid > div:first-child > p {
	font-size: .71rem;
	line-height: 1.65;
}

.portfolio-checklist.compact {
	gap: 8px;
}

.portfolio-checklist.compact li {
	font-size: .65rem;
}

.portfolio-chart-card,
.portfolio-keyword-card {
	min-height: 270px;
	padding: 20px;
	border: 1px solid rgba(67, 111, 204, .32);
	border-radius: 9px;
	background: linear-gradient(145deg, rgba(8, 20, 43, .92), rgba(6, 9, 25, .96));
}

.portfolio-chart-card > div:first-child {
	display: flex;
	justify-content: space-between;
	color: #8fc4ff;
	font-size: .65rem;
	text-transform: uppercase;
}

.portfolio-chart-card small {
	padding: 5px 9px;
	border-radius: 5px;
	background: #101c38;
	color: #aeb9cd;
}

.portfolio-chart-card svg {
	width: 100%;
	height: 190px;
}

.portfolio-chart-labels {
	display: flex;
	justify-content: space-around;
	color: #77839a;
	font-size: .52rem;
}

.portfolio-keyword-card {
	display: flex;
	align-items: center;
	flex-direction: column;
	text-align: center;
}

.portfolio-keyword-card > span {
	align-self: stretch;
	color: #8fc4ff;
	font-size: .65rem;
	text-align: left;
	text-transform: uppercase;
}

.portfolio-score {
	display: grid;
	width: 145px;
	height: 115px;
	margin: 22px 0 16px;
	border-top: 14px solid var(--project-primary);
	border-right: 14px solid var(--project-secondary);
	border-radius: 50%;
	place-items: center;
}

.portfolio-score strong {
	align-self: end;
	font-size: 2.1rem;
	font-weight: 500;
}

.portfolio-score small {
	align-self: start;
	color: #a8b3c6;
	font-size: .65rem;
}

.portfolio-keyword-card b {
	color: #34e0ae;
	font-weight: 500;
}

.portfolio-keyword-card p {
	font-size: .62rem;
}

.portfolio-tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 8px;
}

.portfolio-tech-grid > div {
	display: flex;
	min-height: 60px;
	align-items: center;
	gap: 10px;
	padding: 10px 13px;
	border: 1px solid rgba(58, 105, 190, .32);
	border-radius: 7px;
	background: rgba(6, 14, 29, .85);
}

.portfolio-tech-grid span {
	display: grid;
	width: 31px;
	height: 31px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--project-primary) 22%, #0a1225);
	color: #9ed8ff;
	font-size: .58rem;
	font-weight: 700;
	place-items: center;
}

.portfolio-tech-grid span .icon {
	width: 18px;
	height: 18px;
}

.portfolio-tech-wordpress span { color: #49a7e8; }
.portfolio-tech-woocommerce span { color: #a970ff; }
.portfolio-tech-html5 span { color: #ff7448; }
.portfolio-tech-css3 span { color: #43a5ff; }
.portfolio-tech-javascript span { color: #f5d54b; }
.portfolio-tech-php span { color: #9e9dff; }
.portfolio-tech-mysql span { color: #55b9e9; }
.portfolio-tech-litespeed span { color: #70e0b0; }

.portfolio-tech-grid strong {
	font-size: .68rem;
	font-weight: 500;
}

.portfolio-feedback-grid {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 40px;
}

.portfolio-feedback blockquote {
	max-width: 780px;
	margin: 0;
	color: #c5cede;
	font-size: .84rem;
	line-height: 1.7;
}

.portfolio-client {
	display: flex;
	min-width: 225px;
	align-items: center;
	gap: 12px;
}

.portfolio-client > span {
	display: grid;
	width: 53px;
	height: 53px;
	border: 1px solid #8d7fff;
	border-radius: 50%;
	background: #172340;
	font-size: 1.2rem;
	place-items: center;
}

.portfolio-client div {
	display: flex;
	flex-direction: column;
}

.portfolio-client strong {
	font-size: .72rem;
}

.portfolio-client small {
	color: #8f9aaf;
	font-size: .58rem;
}

.portfolio-cta {
	position: relative;
	z-index: 2;
	padding: 14px 0 24px;
}

.portfolio-cta-card {
	display: grid;
	min-height: 115px;
	grid-template-columns: 65px 1fr auto;
	align-items: center;
	gap: 25px;
	padding: 22px 28px;
	border: 1px solid transparent;
	border-radius: 9px;
	background:
		linear-gradient(105deg, rgba(10, 24, 65, .96), rgba(40, 12, 81, .94)) padding-box,
		linear-gradient(100deg, var(--project-primary), var(--project-secondary)) border-box;
}

.portfolio-cta-icon {
	display: grid;
	width: 58px;
	height: 58px;
	border: 1px solid var(--project-secondary);
	border-radius: 10px;
	color: var(--project-primary);
	place-items: center;
}

.portfolio-cta-icon .icon {
	width: 33px;
	height: 33px;
}

.portfolio-cta-card p {
	margin: 0 0 3px;
	color: #c2ccdc;
	font-size: .78rem;
}

.portfolio-cta-card h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 500;
}

.portfolio-cta-card .button {
	min-width: 225px;
}

.single-portfolios .site-navigation a[href*="case-studies"] {
	color: #fff;
}

.single-portfolios .site-navigation a[href*="case-studies"]::after {
	right: 0;
	left: 0;
}

@media (max-width: 1000px) {
	.portfolio-hero-grid {
		grid-template-columns: 1fr;
	}

	.portfolio-hero-visual {
		width: 100%;
		max-width: 720px;
		margin-inline: auto;
	}

	.portfolio-design-grid,
	.portfolio-seo-grid {
		grid-template-columns: 1fr;
	}

	.portfolio-metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.portfolio-metrics > div:nth-child(2) {
		border-right: 0;
	}

	.portfolio-metrics > div:nth-child(-n + 2) {
		border-bottom: 1px dashed rgba(50, 124, 255, .4);
	}
}

@media (max-width: 680px) {
	.portfolio-shell {
		width: min(calc(100% - 28px), 470px);
	}

	.portfolio-hero {
		min-height: 0;
	}

	.portfolio-hero-grid {
		min-height: 0;
		gap: 22px;
		padding: 28px 0 25px;
	}

	.portfolio-hero-copy {
		padding: 0;
	}

	.portfolio-hero h1 {
		font-size: clamp(2.1rem, 10vw, 3rem);
	}

	.portfolio-intro {
		font-size: .78rem;
	}

	.portfolio-actions {
		display: grid;
	}

	.portfolio-actions .button {
		width: 100%;
	}

	.portfolio-details {
		grid-template-columns: 1fr;
	}

	.portfolio-details > div {
		min-height: 60px;
	}

	.portfolio-hero-visual {
		height: 300px;
	}

	.project-company-badge {
		position: relative;
		top: 0;
		width: 100%;
		margin-bottom: 12px;
	}

	.project-laptop {
		top: 78px;
		right: -16px;
		width: 350px;
	}

	.project-browser {
		height: 200px;
	}

	.project-laptop-base {
		width: 390px;
		margin-left: -20px;
	}

	.project-phone {
		right: 2px;
		bottom: 0;
		width: 92px;
		height: 180px;
		border-width: 3px;
		border-radius: 16px;
	}

	.portfolio-panel > .portfolio-shell {
		width: min(calc(100% - 18px), 500px);
		padding: 22px 10px 25px;
	}

	.portfolio-impact .portfolio-kicker {
		padding-left: 8px;
	}

	.portfolio-metrics {
		gap: 7px;
	}

	.portfolio-metrics > div {
		display: flex;
		min-height: 120px;
		align-items: center;
		flex-direction: column;
		justify-content: center;
		padding: 12px 5px;
		border: 1px solid rgba(58, 105, 190, .32) !important;
		border-radius: 8px;
		text-align: center;
	}

	.portfolio-metrics .icon {
		width: 31px;
		height: 31px;
	}

	.portfolio-metrics strong {
		font-size: 1.35rem;
	}

	.portfolio-metrics span {
		font-size: .58rem;
	}

	.portfolio-design-grid {
		gap: 25px;
		padding-inline: 18px !important;
	}

	.portfolio-design h2,
	.portfolio-seo h2 {
		font-size: 1.4rem;
	}

	.portfolio-checklist {
		gap: 11px;
	}

	.portfolio-checklist li {
		font-size: .68rem;
	}

	.portfolio-gallery {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.portfolio-gallery figure {
		min-width: 88%;
		height: 205px;
		scroll-snap-align: center;
	}

	.portfolio-gallery-dots {
		display: flex;
		min-width: 100%;
		justify-content: center;
		gap: 6px;
	}

	.portfolio-gallery-dots i {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: #46516a;
	}

	.portfolio-gallery-dots i:first-child {
		background: var(--project-secondary);
	}

	.portfolio-seo-grid {
		padding-inline: 18px !important;
	}

	.portfolio-chart-card,
	.portfolio-keyword-card {
		min-height: 250px;
	}

	.portfolio-tech > .portfolio-shell {
		padding-inline: 10px;
	}

	.portfolio-tech-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.portfolio-feedback-grid {
		grid-template-columns: 1fr;
		padding-inline: 18px !important;
	}

	.portfolio-feedback blockquote {
		font-size: .76rem;
	}

	.portfolio-cta {
		padding-top: 10px;
	}

	.portfolio-cta-card {
		display: block;
		padding: 24px 20px;
		text-align: center;
	}

	.portfolio-cta-icon {
		margin: 0 auto 17px;
	}

	.portfolio-cta-card h2 {
		margin-bottom: 18px;
		font-size: 1.42rem;
	}

	.portfolio-cta-card .button {
		width: 100%;
		min-width: 0;
	}
}
