:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--text: #111111;
	--muted: #6a6a6a;
	--border: #e7e7e7;
	--border-strong: #d2d2d2;
	--container: 1120px;
	--shadow: 0 12px 32px rgba(17, 17, 17, 0.04);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	line-height: 1.6;
}

.section-hero {
  	padding: 80px 20px;
}

.container-hero-grid {
	display: flex;
	align-items: center;
	gap: 40px;
	max-width: 900px;
	margin: auto;
}

.profile-img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
}

.hero-text h1 {
	font-size: 50px;
	margin-bottom: 8px;
}

.hero-text h2 {
	font-weight: 400;
	color: #555;
	margin-bottom: 12px;
}

body.nav-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul {
	margin: 0;
}

ul {
	padding: 0;
}

::selection {
	background: #111111;
	color: #ffffff;
}

.skip-link {
	position: absolute;
	left: 1.5rem;
	top: -3rem;
	z-index: 30;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	background: #111111;
	color: #ffffff;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: min(var(--container), calc(100% - 2.5rem));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.brand {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav a {
	position: relative;
	padding: 0.25rem 0;
	color: var(--muted);
	font-size: 0.95rem;
	transition: color 0.2s ease;
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.35rem;
	width: 100%;
	height: 1px;
	background: var(--text);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
	color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #ffffff;
	cursor: pointer;
}

.nav-toggle span {
	width: 16px;
	height: 1.5px;
	background: var(--text);
	transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
	transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
	transform: translateY(-3.25px) rotate(-45deg);
}

main {
	padding-bottom: 5rem;
}

.section {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	border-bottom: 1px solid var(--border);
	scroll-margin-top: 84px;
}

.hero {
	padding-top: clamp(4rem, 10vw, 7.5rem);
}

.hero-grid,
.about-layout,
.resume-grid,
.detail-grid {
	display: grid;
	gap: 1.25rem;
}

.hero-grid {
	grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
	gap: 2.5rem;
	align-items: start;
}

.eyebrow,
.label {
	margin-bottom: 1rem;
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

h1,
.page-title {
	font-size: clamp(3rem, 9vw, 5.75rem);
	line-height: 0.93;
	letter-spacing: -0.06em;
}

h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

h3 {
	font-size: 1.3rem;
	letter-spacing: -0.03em;
}

.hero-copy h1 {
	max-width: 10ch;
}

.hero-role {
	margin-top: 1rem;
	font-size: 1.1rem;
}

.hero-intro,
.section-copy,
.page-lead,
.project-card p,
.skill-card ul,
.detail-list,
.clean-list span,
.footer p {
	color: var(--muted);
}

.hero-intro,
.page-lead {
	margin-top: 1.5rem;
	max-width: 36rem;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-heading {
	max-width: 42rem;
	margin-bottom: 2rem;
}

.section-copy {
	margin-top: 1rem;
	max-width: 36rem;
}

.hero-actions,
.project-links,
.contact-links,
.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.hero-actions,
.page-actions {
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 1.15rem;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
	transform: translateY(-1px);
}

.button-primary {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.button-secondary {
	background: #ffffff;
	color: #111111;
}

.card,
.hero-panel,
.project-card,
.skill-card,
.contact-card,
.page-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

.hero-panel,
.about-card,
.project-card,
.skill-card,
.contact-card,
.page-card {
	padding: 1.5rem;
}

.hero-panel-row + .hero-panel-row,
.resume-section + .resume-section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.hero-panel-row span,
.detail-list strong,
.clean-list strong {
	display: block;
}

.hero-panel-row span {
	margin-bottom: 0.4rem;
}

.projects-grid,
.skills-grid {
	display: grid;
	gap: 1.25rem;
}

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

.project-card {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tag-list,
.clean-list,
.skill-card ul,
.detail-list {
	list-style: none;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.tag-list li {
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.9rem;
}

.project-links {
	margin-top: auto;
}

.text-link,
.back-link {
	border-bottom: 1px solid var(--border-strong);
}

.about-layout {
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	align-items: start;
}

.about-copy {
	max-width: 40rem;
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	line-height: 1.7;
}

.clean-list {
	display: grid;
	gap: 0.85rem;
}

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

.skill-card h3 {
	margin-bottom: 1rem;
	font-size: 1rem;
}

.skill-card ul {
	display: grid;
	gap: 0.65rem;
}

.contact-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: end;
}

.footer {
	padding: 1.5rem 0 3rem;
}

.subpage-main {
	padding: clamp(3rem, 6vw, 5rem) 0 5rem;
}

.page-shell {
	display: grid;
	gap: 1.25rem;
}

.back-link {
	display: inline-flex;
	margin-bottom: 1rem;
	color: var(--muted);
}

.page-card .tag-list {
	margin-top: 1.5rem;
}

.resume-grid {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

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

.detail-list {
	display: grid;
	gap: 0.75rem;
}

.detail-list strong,
.clean-list strong {
	margin-bottom: 0.15rem;
	color: var(--text);
}

@media (max-width: 960px) {
	.hero-grid,
	.about-layout,
	.contact-card,
	.resume-grid,
	.detail-grid {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 720px) {
	.container {
		width: min(var(--container), calc(100% - 1.5rem));
	}

	.nav-toggle {
		display: flex;
	}

	.site-nav {
		position: absolute;
		top: calc(100% + 0.8rem);
		left: 0.75rem;
		right: 0.75rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding: 1rem 1.2rem;
		border: 1px solid var(--border);
		border-radius: 20px;
		background: #ffffff;
		box-shadow: var(--shadow);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.site-nav[data-open="true"] {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.section {
		padding: 4rem 0;
	}

	.projects-grid,
	.skills-grid {
		grid-template-columns: 1fr;
	}
}

/* @media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}

	font-weight: 600;
} */

.section {
	margin-top: 2.1rem;
}

.section-head {
	margin-bottom: 0.95rem;
}

.section-head h2 {
	max-width: 23ch;
}

.about-grid,
.projects-grid,
.skills-grid {
	display: grid;
	gap: 1rem;
}

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

.card,
.skill-card,
.project-card,
.contact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 1rem;
	box-shadow: var(--shadow);
}

.card,
.contact-card {
	padding: 1.1rem;
}

.card p + p {
	margin-top: 0.7rem;
}

.checklist h3 {
	margin-bottom: 0.5rem;
}

.checklist ul {
	margin-left: 1.1rem;
	display: grid;
	gap: 0.35rem;
	color: var(--muted);
}

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

.skill-card {
	padding: 1.05rem;
	transition: transform 0.22s ease;
}

.skill-card p {
	margin-top: 0.45rem;
	color: var(--muted);
}

.skill-card:hover {
	transform: translateY(-4px);
}

.lifecycle {
	margin-top: 1rem;
}

.lifecycle h3 {
	margin-bottom: 0.6rem;
}

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

.lifecycle-grid p {
	padding: 0.7rem 0.6rem;
	border-radius: 0.7rem;
	background: color-mix(in srgb, var(--accent) 10%, white);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
	font-weight: 600;
	font-size: 0.9rem;
}

.timeline {
	display: grid;
	gap: 0.85rem;
	position: relative;
	padding-left: 1rem;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 0.25rem;
	bottom: 0.25rem;
	left: 0.1rem;
	width: 2px;
	background: linear-gradient(var(--accent), var(--warm));
}

.timeline-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0.95rem;
	padding: 1rem;
	box-shadow: var(--shadow);
	position: relative;
}

.timeline-item::before {
	content: "";
	position: absolute;
	top: 1rem;
	left: -0.95rem;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: var(--warm);
	border: 2px solid var(--bg);
}

.timeline-item p {
	margin-top: 0.45rem;
	color: var(--muted);
}

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

.project-card {
	padding: 1.05rem;
	transition: transform 0.22s ease;
}

.project-card p {
	margin-top: 0.45rem;
	color: var(--muted);
}

.project-card:hover {
	transform: translateY(-4px);
}

.tag {
	display: inline-block;
	margin-top: 0.7rem;
	font-size: 0.82rem;
	border-radius: 999px;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	padding: 0.34rem 0.65rem;
	color: #344d5e;
	font-weight: 700;
}

.contact-card h2 {
	margin-bottom: 0.5rem;
}

.contact-card p {
	max-width: 56ch;
	color: var(--muted);
}

.footer {
	border-top: 1px solid rgba(215, 207, 192, 0.8);
	background: rgba(244, 239, 230, 0.8);
}

.footer p {
	text-align: center;
	font-size: 0.95rem;
	padding: 1.15rem 0;
	color: var(--muted);
}

/* Staggered entrance for section blocks */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	animation: rise-in 0.72s ease forwards;
}

main .reveal:nth-of-type(1) {
	animation-delay: 0.08s;
}

main .reveal:nth-of-type(2) {
	animation-delay: 0.16s;
}

main .reveal:nth-of-type(3) {
	animation-delay: 0.24s;
}

main .reveal:nth-of-type(4) {
	animation-delay: 0.32s;
}

main .reveal:nth-of-type(5) {
	animation-delay: 0.4s;
}

main .reveal:nth-of-type(6) {
	animation-delay: 0.48s;
}

@keyframes rise-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1000px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.about-grid {
		grid-template-columns: 1fr;
	}

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

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

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

@media (max-width: 680px) {
	.topbar-content {
		min-height: 64px;
		flex-direction: column;
		justify-content: center;
		padding: 0.5rem 0;
	}

	.nav-links {
		justify-content: center;
		gap: 0.35rem;
	}

	main {
		padding-top: 2rem;
	}

	.skills-grid,
	.projects-grid,
	.lifecycle-grid {
		grid-template-columns: 1fr;
	}

	.hero-actions {
		width: 100%;
	}

	.btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

