:root {
	--bg: #0b1021;
	--panel: #0f162c;
	--muted: #7c8da5;
	--text: #e9eef7;
	--accent: #5eead4;
	--accent-strong: #22d3ee;
	--gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 50%, #5eead4 100%);
	--radius: 16px;
	--shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	--font: 'Space Grotesk', 'Segoe UI', sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font);
	background: radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.08), transparent 25%),
				radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.1), transparent 22%),
				var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
	border-radius: calc(var(--radius) - 6px);
}

h1, h2, h3, h4 {
	margin: 0 0 12px;
	line-height: 1.2;
	font-weight: 700;
}

p {
	margin: 0 0 12px;
	color: var(--muted);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 7vw;
	background: rgba(11, 16, 33, 0.9);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 4px 0;
}

.logo img {
	height: 100%;
	width: auto;
	display: block;
}

.nav ul {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.nav a {
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--text);
	transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.active {
	background: rgba(94, 234, 212, 0.12);
	color: var(--accent);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	background: transparent;
	border: none;
	padding: 6px;
	cursor: pointer;
}

.nav-toggle span {
	width: 26px;
	height: 2px;
	background: var(--text);
	display: block;
}

.hero {
	padding: 100px 7vw 60px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
	align-items: center;
}

.hero__content h1 {
	font-size: clamp(32px, 5vw, 56px);
	margin-bottom: 12px;
}

.hero__content .lede {
	max-width: 620px;
}

.hero__actions {
	display: flex;
	gap: 14px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.hero__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.card {
	background: var(--panel);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.card__body {
	padding: 16px;
}

.card:hover {
	transform: translateY(-6px);
	border-color: rgba(94, 234, 212, 0.3);
}

.section {
	padding: 80px 7vw;
}

.section__header {
	max-width: 760px;
	margin-bottom: 32px;
}

.eyebrow {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(94, 234, 212, 0.12);
	color: var(--accent);
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 30px;
	margin-bottom: 10px;
}

.lede {
	color: #c1cbdc;
	max-width: 640px;
}

.about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.about__item {
	background: rgba(15, 22, 44, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
}

.about__item--media {
	padding: 0;
}

.about__photo {
	width: 100%;
	height: 70%;
	object-fit: cover;
	border-radius: var(--radius);
}

.about__layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	align-items: start;
}

.about__stack {
	display: grid;
	gap: 16px;
}

.about__actions {
	margin-top: 12px;
}

.about__item--overview {
	padding: 18px;
}

.about__projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.about__project {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: calc(var(--radius) - 4px);
	padding: 12px 14px;
}

.about__project h4 {
	margin: 0 0 6px;
	font-size: 15px;
}

.about__project-trigger {
	background: transparent;
	border: none;
	color: var(--accent);
	font: inherit;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease, transform 0.2s ease;
}

.about__project-trigger:hover,
.about__project-trigger:focus-visible {
	color: var(--accent-strong);
	transform: translateY(-1px);
}

.about__item .lead {
	color: #d6deed;
}

.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.modal.is-open {
	display: flex;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
}

.modal__dialog {
	position: relative;
	background: #0f162c;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	padding: 20px;
	max-width: 820px;
	width: min(92vw, 820px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	z-index: 1;
	max-height: 85vh;
	overflow: auto;
}

.modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--text);
	border-radius: 10px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	font-size: 18px;
}

.modal__content h3 {
	margin-top: 0;
}

.modal__title {
	margin-bottom: 10px;
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	padding-right: 52px;
}

.modal__body {
	display: grid;
	gap: 10px;
	color: var(--muted);
}

.modal__actions {
	margin-top: 14px;
}

.modal__section {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: calc(var(--radius) - 6px);
	padding: 14px 16px;
	margin-bottom: 14px;
}

.site-block {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: calc(var(--radius) - 6px);
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.02);
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.site-block__header {
	font-weight: 700;
	color: var(--text);
}

.site-block__actions {
	display: flex;
	justify-content: flex-start;
}

.modal__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 12px;
}

.modal__divider {
	margin: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal__list {
	padding-left: 18px;
	margin: 0;
	color: var(--muted);
	display: grid;
	gap: 6px;
}

.link-list {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.link-list__item {
	display: grid;
	gap: 6px;
	padding: 14px 16px;
	border-radius: calc(var(--radius) - 6px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.02);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.link-list__item:hover,
.link-list__item:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(94, 234, 212, 0.3);
	background: rgba(94, 234, 212, 0.05);
}

.link-list__title {
	font-weight: 700;
	color: var(--text);
}

.link-list__meta {
	color: var(--muted);
	font-size: 14px;
}

.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.project {
	background: var(--panel);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.project__body {
	padding: 18px;
}

.project:hover {
	transform: translateY(-6px);
	border-color: rgba(94, 234, 212, 0.25);
}

.project__link {
	color: inherit;
	text-decoration: none;
}

.project__actions {
	margin-top: 10px;
}

.video__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	background: #000;
}

.video__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.contact__content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	align-items: center;
}

.contact__cta {
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(94, 234, 212, 0.2));
	border: 1px solid rgba(94, 234, 212, 0.25);
	padding: 20px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: #dff6ff;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--small {
	padding: 10px 14px;
	font-size: 14px;
}

.button.primary {
	background: var(--gradient);
	color: #04111d;
	box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
}

.button.ghost {
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--text);
	background: transparent;
}

.button:hover {
	transform: translateY(-2px);
}

.site-footer {
	padding: 40px 7vw 50px;
	background: #060913;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	align-items: center;
}

.footer__social {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.footer__icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__icon svg {
	width: 22px;
	height: 22px;
	fill: var(--text);
}

.footer__icon:hover {
	transform: translateY(-2px);
	border-color: rgba(94, 234, 212, 0.25);
	background: rgba(94, 234, 212, 0.08);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: help;
	color: var(--muted);
}

.tooltip__bubble {
	position: absolute;
	bottom: 120%;
	left: 50%;
	transform: translate(-50%, 8px);
	background: rgba(15, 22, 44, 0.95);
	border: 1px solid rgba(94, 234, 212, 0.3);
	color: var(--text);
	padding: 10px 12px;
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	min-width: 240px;
	max-width: 320px;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 5;
}

.tooltip:focus .tooltip__bubble,
.tooltip:hover .tooltip__bubble {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.tooltip__bubble::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: rgba(94, 234, 212, 0.3);
}

.footer__note {
	color: var(--muted);
}

.footer__meta {
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 900px) {
	.nav {
		position: absolute;
		top: 72px;
		right: 7vw;
		background: rgba(11, 16, 33, 0.98);
		border: 1px solid rgba(255, 255, 255, 0.05);
		border-radius: 12px;
		padding: 12px;
		display: none;
	}

	.nav ul {
		flex-direction: column;
		gap: 8px;
	}

	.nav.open {
		display: block;
	}

	.nav-toggle {
		display: flex;
	}

	.eyebrow {
		font-size: 20px;
	}
}

@media (max-width: 640px) {
	.hero {
		padding-top: 80px;
	}

	.eyebrow {
		font-size: 20px;
	}
	
	.modal__title {
		font-size: 17px;
	}
}

@media (min-width: 350px) {
	.modal__title {
		font-size: 15px;
		min-width: 0;
	}
}