:root {
	--bg: #0a1020;
	--surface: rgba(255, 255, 255, 0.05);
	--card: rgba(255, 255, 255, 0.08);
	--text: #f5f7ff;
	--muted: rgba(245, 247, 255, 0.7);
	--accent: #62ffd4;;
	--accent-strong: #7b61ff;
	--radius: 16px;
	--transition: 180ms ease;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #0a1020;
	color: var(--text);
	font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.page-shell {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 0 2rem;
}

.brand {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.site-nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color var(--transition);
}

.site-nav a:hover {
	color: var(--accent);
}

.ghost-button,
.solid-button,
.text-button {
	border: none;
	cursor: pointer;
	font: inherit;
	transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
	text-decoration: none;
}

.ghost-button {
	padding: 0.65rem 1.2rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.solid-button {
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	background: var(--accent);
	color: #0b0b15;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.text-button {
	background: transparent;
	color: var(--muted);
	padding: 0.2rem 0.4rem;
}

.ghost-button:hover,
.solid-button:hover,
.text-button:hover {
	transform: translateY(-2px);
}

.hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
	padding: 3rem 0;
}

.hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1.12;
	margin: 0.4rem 0 0.8rem;
}

.eyebrow {
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.8rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.4rem;
}

.section-header {
	max-width: 640px;
	margin-bottom: 1.4rem;
}

.projects,
.process,
.about,
.contact-card {
	margin: 3rem 0;
}

.project-filters {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	background: rgba(255, 255, 255, 0.06);
	padding: 0.5rem;
	border-radius: 999px;
}

.filter-button {
	padding: 0.4rem 1.2rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	font-size: 0.9rem;
}

.filter-button.active {
	background: var(--accent);
	color: #0b0b15;
	border-color: transparent;
}

.project-grid,
.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.project-card,
.process-card {
	padding: 1.6rem;
	border-radius: var(--radius);
	background:  rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	min-height: 240px;
	transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover,
.process-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
}

.project-card.collapsed,
.process-card.process-collapsed {
	display: none;
}

/* toggling visibility */
.hidden {
	display: none !important;
}

.card-summary {
	margin: 0;
	color: var(--muted);
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: -0.2rem 0 0.3rem;
}

.chip {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.card-footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.9rem;
}

.card-footer a {
	color: var(--accent);
	text-decoration: none;
}

.toggle-projects {
	margin: 1.4rem auto 0;
	display: block;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font: inherit;
	cursor: pointer;
	transition: transform var(--transition), border var(--transition), background var(--transition);
	text-align: center;
	min-width: 170px;
}

.toggle-projects:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
}

.process {
	margin: 3.2rem 0;
}

.process-card__list {
	margin: 0;
	padding-left: 1rem;
	color: var(--muted);
	line-height: 1.45;
	font-size: 0.95rem;
}

.about-shell {
	background: rgba(255, 255, 255, 0.04);
	border-radius: calc(var(--radius) + 6px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: clamp(1.4rem, 3vw, 2.4rem);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(1.2rem, 3vw, 2rem);
	align-items: center;
}

.about-media img {
	width: min(360px, 100%);
	margin: 0 auto;
	border-radius: calc(var(--radius) + 4px);
	object-fit: cover;
	object-position: center 40%;
	min-height: 240px;
	max-height: 360px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.about-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.about-list li {
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.95rem;
}

.about-list li:last-child {
	border-bottom: none;
}

.about-list span:first-child {
	color: var(--muted);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	font-size: 0.75rem;
}

.about-list span:last-child {
	flex: 1;
	text-align: right;
}

@media (max-width: 640px) {
	.about-list li { flex-direction: column; text-align: left; }
	.about-list span:last-child { text-align: left; }
}

.contact-card {
	margin: 3rem 0 4rem;
	padding: clamp(1.5rem, 3vw, 2.3rem);
	border-radius: calc(var(--radius) + 4px);
	border: 1px dashed rgba(255, 255, 255, 0.3);
	background: rgba(12, 16, 30, 0.85);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.contact-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.contact-card__list a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}

.contact-card__list a:hover { text-decoration: underline; }

.site-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	color: var(--muted);
}

/* Detail pages */

.project-detail-page {
	background: rgba(255, 255, 255, 0.04);
	border-radius: calc(var(--radius) + 6px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: clamp(1.4rem, 3vw, 2.4rem);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
	margin: 2rem 0;
}

.project-detail-header {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.project-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 0.4rem;
}

.project-detail-meta {
	list-style: none;
	padding: 0;
	margin: 1rem 0 1.25rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.project-detail-meta li {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
}

@supports not (grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))) {
	.project-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
	.project-detail-meta li { flex: 1 1 220px; min-width: 200px; }
}

.project-detail-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1.4rem 0;
	justify-items: center;
}

.project-detail-hero figure {
	margin: 0;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	overflow: hidden;
	text-align: center;
	max-width: 520px;
	width: 100%;
}

.project-detail-hero img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 360px;
	object-fit: contain;
}

.project-detail-hero figcaption {
	padding: 0.75rem 1rem 1rem;
	color: var(--muted);
	font-size: 0.95rem;
}

.project-detail-body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.4rem;
	margin-top: 1rem;
}

.project-detail-list {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--muted);
}

.project-detail-nav {
	margin: 1.8rem 0 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.project-detail-nav a { color: var(--accent); text-decoration: none; }

/* Bloom / emoji animation — kept simple for compatibility */

.bloom-emoji {
	position: absolute;
	left: 50%;
	top: 50%;
	font-size: 2.15rem;
	transform: translate(-50%, -50%) translate(var(--emoji-offset-x, 0), var(--emoji-offset-y, -30px));
	animation: bloomFloat 900ms ease-out forwards;
	filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
	will-change: transform, opacity;
}

@keyframes bloomFloat {
	0% { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) scale(0.85); }
	25% { opacity: 1; }
	100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--emoji-offset-x, 0), var(--emoji-offset-y, -30px)) scale(1.15); }
}

@media (max-width: 720px) {
	.site-header { flex-direction: column; align-items: flex-start; }
	.hero { grid-template-columns: 1fr; }
	.project-filters { width: 100%; justify-content: space-between; }
	.contact-card { padding: 1.4rem; }
}
