.portfolio-page {
	overflow: hidden;
}

.portfolio-hero {
	padding: 72px 0 54px;
	background: var(--color-bg);
}

.portfolio-hero__inner,
.portfolio-gallery__inner,
.portfolio-lead__inner {
	width: min(100% - 40px, var(--container));
	margin: 0 auto;
}

.portfolio-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
	align-items: end;
	gap: 40px;
}

.portfolio-hero__content {
	display: grid;
	gap: 22px;
}

.portfolio-hero__eyebrow {
	color: var(--color-accent);
	font-size: var(--fz-xs);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.portfolio-hero__title {
	max-width: 780px;
	font-size: var(--fz-xxl);
	font-weight: 800;
	line-height: var(--lh-tight);
}

.portfolio-hero__lead {
	max-width: 720px;
	color: var(--color-muted);
	font-size: var(--fz-md);
}

.portfolio-hero__meta {
	display: grid;
	gap: 6px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	padding: 24px;
	box-shadow: var(--shadow-soft);
}

.portfolio-hero__meta-number {
	color: var(--color-accent-dark);
	font-size: var(--fz-xl);
	font-weight: 800;
	line-height: 1;
}

.portfolio-hero__meta-text {
	color: var(--color-muted);
}

.portfolio-hero__links {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.portfolio-hero__link {
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: var(--color-surface);
	color: var(--color-text);
	font-weight: 800;
	text-decoration: none;
	padding: 10px 15px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.portfolio-hero__link:hover {
	border-color: var(--color-accent);
	color: var(--color-accent-dark);
}

.portfolio-gallery {
	padding: 28px 0 76px;
	background: var(--color-bg);
}

.portfolio-gallery__inner {
	display: grid;
	gap: 64px;
}

.portfolio-gallery__section {
	display: grid;
	gap: 24px;
}

.portfolio-gallery__head {
	display: grid;
	gap: 12px;
	max-width: 820px;
}

.portfolio-gallery__title {
	font-size: var(--fz-xl);
	font-weight: 800;
	line-height: var(--lh-tight);
}

.portfolio-gallery__lead {
	color: var(--color-muted);
	font-size: var(--fz-md);
}

.portfolio-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	align-items: stretch;
}

.portfolio-gallery__item {
	aspect-ratio: 1;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface-soft);
	box-shadow: var(--shadow-soft);
}

.portfolio-gallery__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.24s ease;
}

.portfolio-gallery__item:hover .portfolio-gallery__image {
	transform: scale(1.04);
}

.portfolio-gallery__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.portfolio-lead {
	padding: 70px 0;
	background: var(--color-surface-soft);
}

.portfolio-lead__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.68fr);
	gap: 44px;
	align-items: start;
}

.portfolio-lead__content {
	display: grid;
	gap: 22px;
}

.portfolio-lead__text {
	max-width: 560px;
	color: var(--color-muted);
	font-size: var(--fz-md);
}
