.page-profile {
	background: var(--color-bg);
	color: var(--color-text);
	overflow-x: clip;
}

.profile-shell {
	width: min(100% - 3rem, var(--container));
	max-width: var(--container);
	margin-inline: auto;
}

.profile-kicker {
	display: inline-block;
	font: 800 0.66rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

.profile-hero {
	padding-top: clamp(4rem, 8vw, 7rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.profile-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.2rem, 3vw, 2.5rem);
	align-items: end;
}

.profile-portrait-wrap {
	position: relative;
	max-width: 460px;
}

.profile-portrait {
	aspect-ratio: 4 / 5;
	background: var(--color-surface-low);
	overflow: hidden;
}

.profile-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	animation: profile-color-reveal 6.4s ease forwards;
}

@keyframes profile-color-reveal {
	0% {
		filter: grayscale(1);
	}
	100% {
		filter: grayscale(0);
	}
}

.profile-badge {
	position: absolute;
	right: -0.5rem;
	bottom: -0.5rem;
	background: var(--color-primary);
	color: #fff;
	font: 900 0.72rem/1 "Inter", sans-serif;
	letter-spacing: 0.1em;
	padding: 0.9rem 1rem;
	text-transform: uppercase;
}

.profile-hero-copy h1 {
	font-size: clamp(2.2rem, 11vw, 7.2rem);
	line-height: 0.86;
	text-transform: uppercase;
	letter-spacing: -0.05em;
	margin-bottom: 1rem;
}

.profile-subtitle {
	font: 700 0.85rem/1.4 "Epilogue", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text-muted);
	margin-bottom: 0.9rem;
}

.profile-hero-copy p {
	max-width: 34ch;
	font: 600 clamp(1rem, 2.4vw, 1.42rem)/1.6 "Inter", sans-serif;
	color: color-mix(in srgb, var(--color-text-muted) 86%, var(--color-text));
}

.profile-bio {
	background: var(--color-surface-low);
	padding-block: clamp(3rem, 7vw, 5.8rem);
}

.profile-bio-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.profile-narrative h2 {
	font-size: clamp(1.7rem, 4vw, 3rem);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.profile-narrative h2 span {
	width: 3rem;
	height: 0.2rem;
	background: var(--color-primary);
	display: inline-block;
}

.profile-bio-stack {
	display: grid;
	gap: 1rem;
	margin-top: 1.2rem;
}

.profile-bio-stack p {
	font-size: clamp(0.96rem, 1.9vw, 1.16rem);
	line-height: 1.8;
	color: color-mix(in srgb, var(--color-text-muted) 85%, var(--color-text));
}

.profile-stat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
	margin-top: 1.5rem;
}

.profile-stat {
	border-left: 2px solid var(--color-primary);
	padding: 0.45rem 0.6rem;
}

.profile-stat strong {
	display: block;
	font: 900 1.5rem/1 "Epilogue", sans-serif;
}

.profile-stat span {
	font: 700 0.58rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-text-muted);
}

.profile-skill-panel {
	background: var(--color-surface);
	padding: clamp(1rem, 3vw, 2rem);
}

.profile-skill-panel h3 {
	font: 800 0.7rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-primary);
	margin-bottom: 1.4rem;
}

.skill-list {
	display: grid;
	gap: 1rem;
}

.skill-row {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.45rem;
}

.skill-row span:first-child {
	font: 800 0.72rem/1 "Epilogue", sans-serif;
	text-transform: uppercase;
}

.skill-row span:last-child {
	font: 700 0.62rem/1 "Inter", sans-serif;
	color: var(--color-text-muted);
}

.skill-bar {
	height: 0.4rem;
	background: var(--color-surface-lowest);
	overflow: hidden;
}

.skill-bar-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(45deg, var(--color-primary), var(--color-primary-strong));
	transition: width 0.8s ease;
}

.skill-tags {
	margin-top: 1.2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.skill-tags span {
	font: 700 0.54rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	padding: 0.45rem 0.5rem;
	background: var(--color-surface-lowest);
	color: var(--color-text-muted);
}

.profile-connect {
	padding-block: clamp(3rem, 6vw, 5rem);
	border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 22%, transparent);
}

.profile-credentials {
	padding-block: clamp(3rem, 6vw, 5.5rem);
	background: var(--color-surface-low);
}

.credentials-head {
	display: grid;
	gap: 0.6rem;
	margin-bottom: 1.6rem;
}

.credentials-head h2 {
	font-size: clamp(2rem, 7vw, 4.4rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.credentials-head p {
	font: 700 0.58rem/1.6 "Inter", sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.credentials-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

.credentials-card {
	background: var(--color-surface);
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
	padding: clamp(1rem, 2vw, 1.6rem);
}

.credentials-card h3 {
	font: 800 0.7rem/1 "Inter", sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 0.9rem;
}

.credentials-card ul {
	margin: 0;
	padding-left: 1.1rem;
	display: grid;
	gap: 0.5rem;
}

.credentials-card li {
	font-size: 0.92rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--color-text-muted) 78%, var(--color-text));
}

.profile-gallery {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.gallery-head {
	display: grid;
	gap: 0.6rem;
	margin-bottom: 1.4rem;
}

.gallery-head h2 {
	font-size: clamp(2rem, 8vw, 4.8rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.gallery-head p {
	font: 700 0.58rem/1.6 "Inter", sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.gallery-track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.2rem;
}

.gallery-frame {
	position: relative;
	aspect-ratio: 2 / 3;
	background: var(--color-surface-low);
	overflow: hidden;
}

.gallery-frame--wide {
	aspect-ratio: 16 / 9;
}

.gallery-frame--square {
	aspect-ratio: 1 / 1;
}

.gallery-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: none;
	transition: transform 0.8s ease;
}

.gallery-frame:hover img {
	transform: scale(1.05);
}

.gallery-frame-button {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: left;
}

.gallery-lightbox {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.gallery-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.gallery-lightbox-content {
	position: relative;
	width: min(95vw, 1200px);
	max-height: min(95vh, 1000px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.gallery-lightbox-caption {
	margin-top: 1rem;
	color: #fff;
	font: 700 0.95rem/1.4 "Inter", sans-serif;
	text-align: center;
	max-width: 95%;
}

.gallery-lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 0;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 0.35rem;
	cursor: pointer;
}

.gallery-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 50%;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.2s ease;
}

.gallery-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.gallery-lightbox-prev {
	left: 1rem;
}

.gallery-lightbox-next {
	right: 1rem;
}

.gallery-frame figcaption {
	position: absolute;
	left: 0.8rem;
	bottom: 0.8rem;
	background: color-mix(in srgb, var(--color-bg) 65%, transparent);
	color: #fff;
	font: 700 0.56rem/1 "Inter", sans-serif;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 0.4rem 0.6rem;
}

.connect-head h2 {
	font: 900 0.65rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

.connect-head h3 {
	font-size: clamp(1.8rem, 5vw, 3.2rem);
	text-transform: uppercase;
	margin-bottom: 1.3rem;
}

.connect-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.2rem;
}

.connect-grid > div > span {
	display: block;
	font: 700 0.56rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-text-muted);
	margin-bottom: 0.6rem;
}

.connect-links {
	display: grid;
	gap: 0.25rem;
}

.connect-links a {
	font: 800 1rem/1.4 "Epilogue", sans-serif;
	text-decoration: none;
}

.connect-links a:hover,
.connect-socials a:hover {
	color: var(--color-primary);
}

.connect-socials {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.connect-socials a {
	display: grid;
	justify-items: center;
	gap: 0.2rem;
	text-decoration: none;
}

.connect-social-icon {
	width: 1.4rem;
	height: 1.4rem;
	display: block;
	filter: none;
}

html[data-theme="dark"] .connect-social-icon {
	filter: invert(1) brightness(1.2);
}

.connect-socials small {
	font: 700 0.5rem/1 "Inter", sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.profile-brands {
	padding-block: clamp(2rem, 6vw, 5rem);
}

.brand-head {
	display: grid;
	gap: 0.55rem;
	margin-bottom: 1.4rem;
}

.brand-head h2 {
	font-size: clamp(2rem, 8vw, 4.5rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.brand-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	align-items: center;
}

.brand-card {
	display: grid;
	place-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--color-surface-low);
	border: 1px solid transparent;
	border-radius: 1rem;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	min-height: 9rem;
	text-align: center;
}

.brand-card:hover {
	transform: translateY(-0.25rem);
	border-color: rgba(255,255,255,0.1);
	box-shadow: 0 1rem 1.75rem rgba(0,0,0,0.06);
}

.brand-card img {
	max-width: 100%;
	max-height: 4.2rem;
	object-fit: contain;
}

.brand-card span {
	font: 700 0.78rem/1.4 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-muted);
}

.profile-projects {
	display: grid;
	gap: 0.6rem;
	margin-bottom: 1.6rem;
}

.project-head h2 {
	font-size: clamp(2rem, 8vw, 5rem);
	line-height: 0.9;
	text-transform: uppercase;
}

.project-head p {
	font: 700 0.58rem/1.6 "Inter", sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.project-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

.project-image-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--color-surface-low);
}

.project-image-wrap img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	filter: none;
	transition: transform 0.9s ease;
}

.project-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--color-bg) 72%, transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-client-logo {
	position: absolute;
	top: 1rem;
	left: 1rem;
	width: 4.5rem;
	height: 4.5rem;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 0.85rem;
	display: grid;
	place-items: center;
	box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
	padding: 0.65rem;
	z-index: 2;
}

.project-client-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.project-image-link {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	appearance: none;
}

.project-image-link:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 4px;
}

.project-overlay span {
	font-size: 3rem;
	color: #fff;
}

.project-card:hover .project-image-wrap img {
	transform: scale(1.08);
}

.project-card:hover .project-overlay {
	opacity: 1;
}

.project-copy {
	padding-top: 0.7rem;
}

.project-title-row {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.project-title-row h4 {
	font-size: 1.34rem;
	text-transform: uppercase;
}

.project-title-row span {
	font: 700 0.56rem/1 "Inter", sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.26rem 0.4rem;
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 30%, transparent);
	color: var(--color-text-muted);
}

.project-copy p {
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.project-video-lightbox {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.project-video-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.project-video-lightbox-content {
	position: relative;
	width: min(95vw, 1200px);
	max-height: min(95vh, 1000px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	gap: 1rem;
}

.project-video-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.project-video-frame iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

.project-video-caption {
	color: #fff;
	font: 700 0.95rem/1.4 "Inter", sans-serif;
	text-align: center;
	max-width: 95%;
}

.project-video-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	border: 0;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 0.35rem;
	cursor: pointer;
}

.profile-cta {
	background: #f6f6f6;
	color: #231f20;
	padding-block: clamp(3rem, 8vw, 6rem);
}

.profile-cta-inner {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 1rem;
}

.profile-cta-inner h2 {
	font-size: clamp(2rem, 8vw, 5rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.profile-cta-inner p {
	font: 700 0.7rem/1.7 "Inter", sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #585858;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem;
}

.profile-btn-ghost {
	background: transparent;
	color: #231f20;
	border: 1px solid rgba(35, 31, 32, 0.2);
}

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 900px) {
	.profile-hero-grid {
		grid-template-columns: minmax(280px, 420px) 1fr;
	}

	.profile-bio-grid {
		grid-template-columns: 2fr 1fr;
	}

	.connect-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
	}

	.credentials-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gallery-track {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}
