:root {
	--page-bg: #05070d;
	--panel: rgba(17, 20, 31, 0.78);
	--panel-strong: rgba(20, 24, 37, 0.94);
	--line: rgba(160, 150, 210, 0.18);
	--text: #f8f7ff;
	--muted: #b6b4c5;
	--accent: #8b5cf6;
	--accent-2: #c4b5fd;
	--shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(circle at 74% 9%, rgba(96, 43, 214, 0.32), transparent 26rem),
		radial-gradient(circle at 7% 51%, rgba(60, 120, 190, 0.12), transparent 30rem),
		var(--page-bg);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header,
.section-pad,
.about-card,
.testimonial,
.site-footer,
.case-layout {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 28px;
	padding: 24px 0 18px;
	backdrop-filter: blur(18px);
}

.brand {
	color: var(--accent-2);
	font-size: 42px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
}

.site-nav { justify-self: center; }
.site-nav ul {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--text);
	font-size: 14px;
	transition: color .2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--accent-2); }

.cv-button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
}

.cv-button {
	border: 1px solid var(--accent-2);
	color: var(--text);
}

.language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, .035);
}

.language-switcher a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
}

.language-switcher a.is-active {
	background: var(--accent);
	color: #fff;
}

.cv-button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nav-toggle { display: none; }

.hero {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
	min-height: 610px;
	padding-top: 24px;
}

.eyebrow,
.section-kicker {
	margin: 0 0 16px;
	color: var(--accent-2);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.eyebrow { text-transform: none; font-size: 19px; letter-spacing: 0; }

.hero h1 {
	margin: 0;
	font-size: clamp(56px, 8vw, 82px);
	line-height: .95;
	letter-spacing: 0;
	background: linear-gradient(90deg, var(--accent-2), #fff 58%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero h2,
.work-section h2,
.skills-section h2,
.contact-strip h2,
.archive-page h1,
.project-page h2 {
	margin: 16px 0 10px;
	font-size: 28px;
	line-height: 1.25;
}

.hero p,
.about-card p,
.testimonial p,
.contact-strip p,
.project-intro p,
.case-study p,
.project-info p,
.feature-card p,
.archive-page p {
	color: var(--muted);
}

.hero-copy > p:last-of-type { max-width: 460px; font-size: 18px; }

.hero-actions { display: flex; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.button-primary { background: linear-gradient(135deg, #a78bfa, #6d45e8); color: #fff; box-shadow: 0 16px 40px rgba(109, 69, 232, .25); }
.button-ghost { border: 1px solid var(--accent-2); color: var(--text); background: rgba(255, 255, 255, .02); }

.socials { display: flex; gap: 28px; margin-top: 32px; color: rgba(255, 255, 255, .64); font-size: 24px; font-weight: 800; }

.hero-visual {
	position: relative;
	min-height: 520px;
	overflow: hidden;
}

.portrait-orbit {
	position: absolute;
	inset: 88px 0 0 84px;
	width: 520px;
	height: 420px;
	border-radius: 999px 999px 70px 70px;
	background: radial-gradient(circle at 35% 30%, #8d6cff, #34205f 58%, transparent 59%);
	filter: drop-shadow(0 30px 80px rgba(65, 39, 160, .45));
}

.hero-visual img {
	position: absolute;
	right: 28px;
	top: 34px;
	width: 430px;
	height: 520px;
	max-width: none;
	border-radius: 18px;
	opacity: .96;
	object-fit: cover;
	object-position: center top;
	box-shadow: 0 32px 90px rgba(0, 0, 0, .42);
}

.hand-note {
	position: absolute;
	right: 8px;
	top: 180px;
	color: var(--accent-2);
	font-family: "Bradley Hand", "Segoe Print", cursive;
	font-size: 19px;
	transform: rotate(-8deg);
}

.glass {
	border: 1px solid var(--line);
	background: linear-gradient(145deg, rgba(20, 24, 38, .86), rgba(9, 12, 20, .76));
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
	border-radius: 8px;
}

.about-card {
	display: grid;
	grid-template-columns: 1.1fr .8fr 1fr;
	gap: 42px;
	padding: 40px 34px;
}

.about-main h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.35; }
.profile-list { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 34px; }
.profile-list p { margin: 0 0 20px; }
.profile-list span { display: block; color: #fff; font-weight: 800; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-grid div { display: grid; place-items: center; gap: 4px; min-height: 105px; text-align: center; border-bottom: 1px solid var(--line); }
.stats-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.stats-grid strong { color: var(--accent); font-size: 38px; line-height: 1; }
.stats-grid span { color: var(--muted); font-size: 14px; }

.work-section,
.skills-section,
.portfolio-pdfs,
.resume-section,
.contact-strip,
.archive-page,
.features,
.gallery,
.results { padding-top: 42px; }

.section-heading,
.contact-strip {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 24px;
}

.section-heading a { color: var(--accent-2); font-weight: 700; }

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

.project-card { overflow: hidden; position: relative; }
.project-shot { display: block; aspect-ratio: 1.7 / 1; overflow: hidden; margin: 8px 8px 0; border-radius: 7px; background: #151322; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.project-card-body { position: relative; padding: 18px 56px 18px 18px; }
.project-card h3,
.project-card h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-row span { padding: 7px 14px; color: var(--muted); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; font-size: 12px; }
.card-arrow { position: absolute; right: 18px; bottom: 24px; font-size: 28px; }

.skills-grid { display: grid; grid-template-columns: repeat(10, minmax(82px, 1fr)); gap: 18px; }
.skill-tile { min-height: 98px; display: grid; place-items: center; padding: 14px 8px 12px; text-align: center; }
.skill-tile span { color: var(--accent); font-size: 26px; font-weight: 900; }
.skill-tile p { margin: 4px 0 0; color: #fff; font-size: 13px; }

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

.resume-card {
	padding: 24px;
}

.resume-card h3 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
}

.resume-card span {
	display: block;
	margin-bottom: 12px;
	color: var(--accent-2);
	font-size: 13px;
	font-weight: 800;
}

.resume-card p {
	margin: 0;
	color: var(--muted);
}

.language-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
	padding: 20px 24px;
}

.language-strip strong {
	margin-right: 8px;
}

.language-strip span {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--muted);
}

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

.pdf-card {
	display: grid;
	gap: 10px;
	min-height: 160px;
	padding: 24px;
	transition: transform .2s ease, border-color .2s ease;
}

.pdf-card:hover {
	transform: translateY(-3px);
	border-color: rgba(196, 181, 253, .5);
}

.pdf-card span {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	background: rgba(139, 92, 246, .15);
	color: var(--accent-2);
	font-weight: 900;
}

.pdf-card strong {
	font-size: 17px;
	line-height: 1.3;
}

.pdf-card small {
	color: var(--muted);
}

.testimonial { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 24px 34px; margin-top: 36px; }
.quote-mark { color: var(--accent); font-size: 72px; line-height: .8; font-weight: 900; }
.client { display: grid; grid-template-columns: 48px auto; column-gap: 12px; align-items: center; min-width: 230px; }
.avatar { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #e5c2ad, #6b463b); }
.client span { color: var(--muted); font-size: 13px; }
.dots { display: flex; gap: 14px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dots span:first-child { background: var(--accent); }

.contact-strip { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 32px; color: var(--muted); font-size: 14px; }
.scroll-top { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; }

.project-hero { display: grid; grid-template-columns: .42fr .58fr; gap: 48px; align-items: center; padding-top: 44px; }
.back-link,
.project-links a { color: var(--accent-2); font-weight: 700; }
.project-intro h1 { margin: 40px 0 8px; font-size: clamp(46px, 7vw, 76px); line-height: .95; letter-spacing: 0; }
.project-intro h1::first-letter { color: #fff; }
.project-links { display: flex; gap: 38px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.project-hero-shot { overflow: hidden; border-radius: 8px 28px 8px 8px; background: linear-gradient(135deg, rgba(80,50,190,.45), rgba(10,12,20,.9)); }
.project-hero-shot img { width: 100%; height: 430px; object-fit: cover; object-position: center 0; }

.case-layout { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.case-study { padding: 36px 30px; }
.challenge { display: grid; grid-template-columns: 130px 1fr; gap: 36px; }
.target-icon { display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); font-size: 74px; }
.process { margin-top: 46px; }
.process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.process-row div { position: relative; }
.process-row span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; border: 1px solid var(--line); background: rgba(139, 92, 246, .13); color: var(--accent-2); font-weight: 900; }
.process-row strong { display: block; }
.process-row p { margin: 6px 0 0; font-size: 12px; }
.project-info { padding: 34px 26px; }
.project-info div { margin: 0 0 22px; }
.project-info span { display: block; color: #fff; font-weight: 800; font-size: 13px; }
.project-info .button { width: 100%; margin-top: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature-card { padding: 22px; min-height: 120px; }
.feature-card strong { display: block; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 13px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-grid img { aspect-ratio: 1.9 / 1; width: 100%; object-fit: cover; object-position: center top; border-radius: 7px; border: 1px solid var(--line); }
.gallery a { display: inline-block; margin-top: 18px; color: var(--accent-2); }

.results-grid { display: grid; grid-template-columns: repeat(4, 1fr) 2.3fr; gap: 12px; }
.results-grid > div { padding: 26px 18px; text-align: center; }
.results-grid strong { display: block; color: var(--accent); font-size: 30px; }
.results-grid span { color: var(--muted); font-size: 13px; }
.result-quote { text-align: left !important; }
.result-quote p { margin-top: 0; }
.content-page { padding: 36px; }

@media (max-width: 980px) {
	.site-header { grid-template-columns: auto auto; }
	.nav-toggle { display: inline-grid; gap: 5px; width: 44px; height: 44px; place-content: center; justify-self: end; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
	.nav-toggle span { width: 20px; height: 2px; background: #fff; }
	.site-nav { display: none; grid-column: 1 / -1; justify-self: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-strong); }
	.site-nav.is-open { display: block; }
	.site-nav ul { display: grid; gap: 14px; }
	.cv-button { display: none; }
	.language-switcher { justify-self: end; }
	.hero,
	.about-card,
	.project-hero,
	.case-layout { grid-template-columns: 1fr; }
	.hero { min-height: 0; }
	.hero-visual { min-height: 360px; }
	.hero-visual img { right: 50%; transform: translateX(50%); width: min(420px, 86vw); height: 340px; }
	.portrait-orbit { left: 50px; width: 430px; height: 330px; }
	.profile-list { border: 0; padding: 0; }
	.project-grid,
	.skills-grid,
	.pdf-grid,
	.resume-grid,
	.feature-grid,
	.gallery-grid,
	.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.testimonial { grid-template-columns: 1fr; }
	.process-row { grid-template-columns: repeat(3, 1fr); }
	.result-quote { grid-column: span 2; }
}

@media (max-width: 640px) {
	.site-header,
	.section-pad,
	.about-card,
	.testimonial,
	.site-footer,
	.case-layout { width: min(100% - 28px, 1120px); }
	.hero h1,
	.project-intro h1 { font-size: 48px; }
	.hero-actions,
	.section-heading,
	.contact-strip,
	.project-links { align-items: stretch; flex-direction: column; }
	.button { width: 100%; }
	.hero-visual { display: none; }
	.about-card { padding: 28px 20px; }
	.stats-grid,
	.project-grid,
	.skills-grid,
	.pdf-grid,
	.resume-grid,
	.feature-grid,
	.gallery-grid,
	.results-grid,
	.process-row,
	.challenge { grid-template-columns: 1fr; }
	.result-quote { grid-column: auto; }
	.project-hero-shot img { height: 260px; }
	.site-footer { align-items: flex-start; gap: 16px; }
}
