:root {
	--color-black: #050507;
	--color-ink: #151519;
	--color-paper: #ffffff;
	--color-soft: #f5f5f6;
	--color-muted: #6f6f76;
	--color-line: rgba(255, 255, 255, 0.18);
	--color-red: #c8102e;
	--color-red-bright: #e4003a;
	--color-crimson-deep: #6f0018;
	--color-gray: #d9d9de;
	--color-gray-dark: #2b2b31;
	--color-card: rgba(255, 255, 255, 0.08);
	--font-body: "Inter", Arial, sans-serif;
	--font-display: "Manrope", Arial, sans-serif;
	--header-height: 78px;
	--radius-sm: 12px;
	--radius-md: 18px;
	--radius-lg: 28px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: auto;
}

body {
	margin: 0;
	background: var(--color-black);
	color: var(--color-paper);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
}

body.nav-open {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: var(--color-paper);
	color: var(--color-black);
	clip: auto;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: var(--header-height);
	padding: 0 clamp(1rem, 4vw, 4rem);
	background: rgba(5, 5, 7, 0.78);
	border-bottom: 1px solid rgba(200, 16, 46, 0.28);
	backdrop-filter: blur(18px);
	transition: background 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
	background: rgba(5, 5, 7, 0.96);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--font-display);
	text-decoration: none;
	font-weight: 700;
}

.brand__logo {
	width: auto;
	height: 46px;
	max-width: 170px;
	object-fit: contain;
}

.brand__text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.nav-list {
	position: fixed;
	top: calc(var(--header-height) + 1rem);
	right: clamp(1rem, 4vw, 4rem);
	display: grid;
	gap: 0;
	width: min(320px, calc(100vw - 2rem));
	padding: 0.8rem;
	margin: 0;
	background: rgba(5, 5, 7, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-top: 3px solid var(--color-red);
	border-radius: var(--radius-md);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
	list-style: none;
	font-family: var(--font-display);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-0.75rem) scale(0.98);
	transform-origin: top right;
	transition: opacity 180ms ease, transform 180ms ease;
}

body.nav-open .nav-list {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.nav-list a {
	display: block;
	padding: 0.85rem 0.9rem;
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: rgba(245, 242, 238, 0.74);
	transition: color 160ms ease, background 160ms ease;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a.is-active {
	background: rgba(200, 16, 46, 0.16);
	color: #fff;
}

.nav-list a.is-active {
	color: #fff;
	text-shadow: 0 0 18px rgba(200, 16, 46, 0.58);
}

.nav-toggle {
	display: block;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-sm);
	color: #fff;
}

.nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	background: currentColor;
}

.section {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: calc(var(--header-height) + 3rem) clamp(1rem, 4vw, 4rem) 4rem;
	overflow: hidden;
}

.section::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	content: "";
	background-image: var(--section-image);
	background-size: cover;
	background-position: center;
	opacity: 0.4;
}

.section--hero::before {
	opacity: 1;
}

.section--image::before {
	filter: saturate(1.06) brightness(1.08);
}

.section--image::after,
.section--hero::after {
	position: absolute;
	inset: 0;
	z-index: 0;
	content: "";
	background:
		linear-gradient(135deg, rgba(200, 16, 46, 0.38), transparent 38%),
		linear-gradient(90deg, rgba(5, 5, 7, 0.78), rgba(5, 5, 7, 0.38) 54%, rgba(5, 5, 7, 0.76));
}

.section--light {
	background:
		linear-gradient(135deg, rgba(200, 16, 46, 0.08), transparent 32%),
		var(--color-paper);
	color: var(--color-ink);
}

.section--light::before {
	display: none;
}

.section--compact {
	min-height: auto;
}

.section__inner {
	position: relative;
	z-index: 1;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.hero-grid,
.split,
.skills-grid,
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

.hero-copy {
	max-width: 720px;
}

.eyebrow {
	margin: 0 0 1rem;
	color: var(--color-red-bright);
	font-family: var(--font-display);
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin-top: 0;
}

h1 {
	max-width: 760px;
	margin-bottom: 1.3rem;
	font-family: var(--font-display);
	font-size: clamp(3.6rem, 8vw, 7.4rem);
	line-height: 0.96;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

h2 {
	margin-bottom: 1.5rem;
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 4.7vw, 4rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

h2 span,
.has-first-color {
	color: var(--color-red);
}

.is-dark h2 span,
.is-dark .has-first-color {
	color: var(--color-red-bright);
}

h3 {
	margin-bottom: 0.45rem;
	font-family: var(--font-display);
	font-size: clamp(1.12rem, 1.8vw, 1.42rem);
	line-height: 1.25;
	font-weight: 700;
	text-transform: none;
}

.hero-summary {
	max-width: 650px;
	color: rgba(245, 242, 238, 0.82);
	font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.section-title-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.button,
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.9rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus,
.wpcf7-submit:hover,
.wpcf7-submit:focus {
	transform: translateY(-2px);
}

.button--primary,
.wpcf7-submit {
	background: linear-gradient(135deg, var(--color-crimson-deep), var(--color-red));
	color: #fff;
	box-shadow: 0 18px 36px rgba(200, 16, 46, 0.34);
}

.button--ghost {
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.button--ghost:hover,
.button--ghost:focus {
	border-color: rgba(200, 16, 46, 0.78);
	box-shadow: 0 18px 36px rgba(200, 16, 46, 0.22);
}

.hero-visual {
	position: relative;
	display: grid;
	gap: 1rem;
	opacity: 0;
	transform: translateX(8rem);
}

body.page-ready .hero-visual {
	animation: fly-in-right 920ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

.hero-portrait {
	position: relative;
	margin: 0;
}

.hero-portrait::before {
	position: absolute;
	inset: 10%;
	content: "";
	border: 10px solid rgba(200, 16, 46, 0.82);
	border-radius: var(--radius-lg);
	transform: translate(1rem, 1rem);
}

.hero-portrait img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center;
	border-radius: var(--radius-lg);
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.stats-panel {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.stat {
	padding: 1rem;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius-md);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.stat strong {
	display: block;
	color: #fff;
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 4vw, 3.6rem);
	line-height: 1;
}

.stat span {
	display: block;
	max-width: 10rem;
	color: rgba(245, 242, 238, 0.8);
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
}

.section-heading {
	max-width: 520px;
}

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

.info-card,
.achievement,
.contact-panel {
	background: #fff;
	border: 1px solid rgba(23, 23, 23, 0.07);
	border-radius: var(--radius-lg);
	box-shadow: 0 28px 70px rgba(20, 17, 15, 0.1);
}

.info-card {
	padding: 1.35rem;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 76px rgba(20, 17, 15, 0.16);
}

.meta {
	color: var(--color-muted);
	font-size: 0.92rem;
	font-weight: 700;
}

.section-title-row {
	justify-content: space-between;
	margin-bottom: 2rem;
}

.timeline {
	display: grid;
	gap: 0.8rem;
	background: transparent;
	border: 0;
}

.timeline-item {
	display: grid;
	grid-template-columns: 0.7fr 1.1fr 1.5fr;
	gap: 1.5rem;
	padding: clamp(1rem, 2vw, 1.45rem);
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-lg);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.timeline-item time {
	color: #fff;
	font-weight: 800;
}

.timeline-item p {
	margin-bottom: 0;
	color: rgba(245, 242, 238, 0.82);
}

.profile-frame {
	position: relative;
	margin: 0;
}

.fly-in-left {
	opacity: 0;
	transform: translateX(-8rem);
}

.fly-in-left.is-visible {
	animation: fly-in-left 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-frame::before {
	position: absolute;
	inset: 8%;
	content: "";
	border: 10px solid var(--color-red);
	border-radius: var(--radius-lg);
	transform: translate(-1rem, 1rem);
}

.profile-frame img {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: 0 34px 70px rgba(20, 17, 15, 0.16);
}

.skill-list {
	display: grid;
	gap: 1.45rem;
	margin-top: 2rem;
}

.skill__label {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.55rem;
	font-weight: 800;
}

.skill__track {
	height: 10px;
	background: var(--color-gray);
	border-radius: 999px;
	overflow: hidden;
}

.skill__track span {
	display: block;
	width: var(--skill-value);
	height: 100%;
	background: linear-gradient(90deg, var(--color-crimson-deep), var(--color-red));
	transform-origin: left;
	animation: skill-grow 900ms ease both;
}

.achievement-list {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

.achievement {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	padding: clamp(1rem, 3vw, 1.5rem);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.achievement:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 76px rgba(20, 17, 15, 0.14);
}

.achievement__badge {
	display: grid;
	place-items: center;
}

.achievement__badge img {
	width: 92px;
	height: 92px;
	object-fit: contain;
}

.achievement p:last-child {
	margin-bottom: 0;
}

.contact-grid {
	grid-template-columns: 0.75fr 1fr;
}

.contact-methods {
	display: grid;
	gap: 0.9rem;
	margin-top: 2rem;
}

.contact-methods a {
	width: fit-content;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: color 160ms ease;
}

.contact-methods a:hover,
.contact-methods a:focus {
	color: var(--color-red-bright);
}

.contact-panel {
	padding: clamp(1.2rem, 3vw, 2rem);
	background: rgba(12, 12, 15, 0.86);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 30px 76px rgba(0, 0, 0, 0.32);
}

.contact-panel form,
.wpcf7-form {
	display: grid;
	gap: 1rem;
}

.contact-panel label,
.wpcf7-form label {
	color: rgba(245, 242, 238, 0.8);
	font-size: 0.86rem;
	font-weight: 800;
}

.contact-panel input,
.contact-panel textarea,
.wpcf7-form input,
.wpcf7-form textarea {
	width: 100%;
	padding: 0.95rem 1rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-sm);
	color: #fff;
	font: inherit;
}

.contact-panel input::placeholder,
.contact-panel textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.site-footer {
	padding: 1.2rem clamp(1rem, 4vw, 4rem);
	background: #050507;
	color: rgba(245, 242, 238, 0.68);
	text-align: center;
}

.site-footer p {
	margin: 0;
}

@keyframes skill-grow {
	from {
		transform: scaleX(0);
	}
}

@keyframes fly-in-right {
	0% {
		opacity: 0;
		transform: translateX(8rem) scale(0.96);
	}

	100% {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes fly-in-left {
	0% {
		opacity: 0;
		transform: translateX(-8rem) scale(0.96);
	}

	100% {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@media (max-width: 920px) {
	.nav-list {
		right: 1rem;
	}

	.hero-grid,
	.split,
	.skills-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.hero-visual {
		max-width: 560px;
	}

	.stats-panel {
		grid-template-columns: repeat(3, 1fr);
	}

	.timeline-item {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
}

@media (max-width: 640px) {
	:root {
		--header-height: 68px;
	}

	.site-header {
		padding-inline: 1rem;
	}

	.brand__logo {
		height: 40px;
		max-width: 145px;
	}

	.section {
		min-height: auto;
		padding-block: calc(var(--header-height) + 2.5rem) 3rem;
	}

	h1 {
		font-size: clamp(3rem, 15vw, 4.8rem);
	}

	.stats-panel,
	.card-grid,
	.achievement {
		grid-template-columns: 1fr;
	}

	.section-title-row {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		animation-duration: 1ms !important;
		transition-duration: 1ms !important;
	}

	.hero-visual {
		opacity: 1;
		transform: none;
	}

	.fly-in-left {
		opacity: 1;
		transform: none;
	}
}
