/* =========================================================
   Md Faisal Kabir — Academic Portfolio
   Shared stylesheet for every page
   ========================================================= */

:root {
	--bg:            #f6f7f4;
	--bg-alt:        #edf1ec;
	--surface:       #ffffff;
	--surface-soft:  #f2f5f0;
	--text:          #263b36;
	--muted:         #60736c;
	--heading:       #142722;
	--border:        rgba(20, 39, 34, 0.11);
	--accent:        #08796d;
	--accent-bright: #55c5a6;
	--accent-weak:   rgba(8, 121, 109, 0.11);
	--shadow-sm:     0 3px 12px rgba(20, 39, 34, 0.06);
	--shadow-md:     0 16px 38px rgba(20, 39, 34, 0.11);
	--shadow-lg:     0 28px 68px rgba(20, 39, 34, 0.16);
	--radius:        18px;
	--radius-lg:     28px;
	--maxw:          1120px;
	--font-sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif:    "Source Serif 4", Georgia, "Times New Roman", serif;
	--header-h:      68px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg:            #101916;
		--bg-alt:        #141f1b;
		--surface:       #19241f;
		--surface-soft:  #202d27;
		--text:          #e5eee9;
		--muted:         #a1b4aa;
		--heading:       #f2f8f4;
		--border:        rgba(255, 255, 255, 0.10);
		--accent:        #65d7b8;
		--accent-bright: #8be4c8;
		--accent-weak:   rgba(101, 215, 184, 0.14);
		--shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.35);
		--shadow-md:     0 14px 34px rgba(0, 0, 0, 0.45);
		--shadow-lg:     0 24px 60px rgba(0, 0, 0, 0.55);
	}
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: color .18s ease;
}
a:hover { color: var(--accent-bright); }

h1, h2, h3, h4 {
	font-family: var(--font-sans);
	color: var(--heading);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 .7em;
}
h1, h2 {
	font-family: var(--font-serif);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.12;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.005em; }

::selection { background: var(--accent-weak); color: var(--heading); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1rem;
}
.section .eyebrow::before {
	content: "";
	width: 1.6rem;
	height: 1px;
	background: currentColor;
	opacity: .6;
}

.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Skip link ---------- */

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--accent);
	color: #fff;
	padding: .6rem 1rem;
	border-radius: 0 0 8px 0;
	z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / nav ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled {
	border-bottom-color: var(--border);
	box-shadow: var(--shadow-sm);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 1rem;
	height: var(--header-h);
}

.nav-right {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 1rem;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	align-self: center;
	flex-shrink: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
}
.lang-switch a,
.lang-switch span:not(.sep) {
	padding: .34rem .6rem;
	color: var(--muted);
}
.lang-switch a:hover { color: var(--heading); background: var(--surface-soft); }
.lang-switch span[aria-current="true"] { color: #fff; background: #0b8a7c; }
.lang-switch .sep { display: none; }
.lang-switch > *:not(:first-child):not(.sep) { border-left: 1px solid var(--border); }

.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--heading);
	font-size: 1rem;
}
.brand:hover { color: var(--heading); }
.brand .monogram {
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), var(--accent-bright));
	color: #fff;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .02em;
}

.nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: .35rem;
}
.nav-links a {
	display: inline-block;
	padding: .5rem .7rem;
	border-radius: 8px;
	font-size: .82rem;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: none;
	color: var(--muted);
}
.nav-links a:hover { color: var(--heading); background: var(--surface-soft); }
.nav-links li.active a { color: var(--accent); background: var(--accent-weak); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 9px;
	width: 42px; height: 38px;
	cursor: pointer;
	color: var(--heading);
}
.nav-toggle svg { margin: 0 auto; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav-links {
		position: absolute;
		left: 0; right: 0;
		top: var(--header-h);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
		padding: .5rem;
		display: none;
	}
	.nav-links.open { display: flex; }
	.nav-links a { padding: .8rem .9rem; border-radius: 8px; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	color: #eef6fb;
	background:
	radial-gradient(48rem 38rem at 88% 42%, rgba(49, 152, 124, 0.24), transparent 68%),
	radial-gradient(45rem 30rem at 4% 0%, rgba(24, 94, 78, 0.35), transparent 65%),
	linear-gradient(135deg, #102720 0%, #142f29 52%, #18372e 100%);
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 22px 22px;
	pointer-events: none;
	mask-image: linear-gradient(180deg, #000, transparent);
}
.hero.compact { padding: clamp(3rem, 7vw, 4.6rem) 0 clamp(2.6rem, 6vw, 4rem); }
.hero.compact h1 { font-size: clamp(2.1rem, 4.8vw, 3.1rem); margin-bottom: .7rem; max-width: 22ch; }
.hero.compact p.hero-bio { margin-bottom: 0; font-size: 1.04rem; }
.hero::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(145, 221, 192, .45), transparent);
	z-index: 1;
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { color: #91ddc0; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .hero-role {
	font-size: 1.05rem;
	font-weight: 600;
	color: #c4dfd4;
	margin-bottom: 1.3rem;
}
.hero p.hero-bio {
	max-width: 60ch;
	font-size: 1.08rem;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 1.8rem;
}

.hero-avatar {
	width: 96px; height: 96px;
	border-radius: 20px;
	display: grid; place-items: center;
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
	border: 1px solid rgba(255,255,255,0.22);
	margin-bottom: 1.4rem;
	backdrop-filter: blur(4px);
}
img.hero-avatar {
	object-fit: cover;
	object-position: center top;
	box-shadow: var(--shadow-md);
}

.hero-home {
	display: flex;
	align-items: center;
	min-height: min(720px, calc(100svh - var(--header-h)));
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.hero-home .hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
	align-items: center;
	gap: clamp(2.5rem, 7vw, 6rem);
}
.hero-copy { max-width: 660px; }
.hero-home .eyebrow {
	padding: .45rem .8rem;
	border: 1px solid rgba(145, 221, 192, .25);
	border-radius: 999px;
	background: rgba(145, 221, 192, .08);
	font-size: .68rem;
	letter-spacing: .14em;
}
.hero-home h1 {
	max-width: 11ch;
	margin-bottom: 1rem;
	font-size: clamp(3rem, 6.2vw, 5rem);
	line-height: 1.02;
	letter-spacing: -.03em;
}
.hero-home .hero-role {
	max-width: 58ch;
	font-size: .98rem;
	line-height: 1.65;
}
.hero-home p.hero-bio {
	max-width: 59ch;
	font-size: 1rem;
	line-height: 1.8;
}
.hero-visual {
	position: relative;
	width: min(100%, 370px);
	justify-self: end;
}
.hero-visual .hero-avatar {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 24px;
	box-shadow: 0 28px 64px rgba(0, 0, 0, .28);
	object-position: center 22%;
}
.hero-caption {
	position: absolute;
	right: -1rem;
	bottom: 1rem;
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .75rem 1rem;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 999px;
	background: rgba(18, 42, 35, .9);
	box-shadow: var(--shadow-md);
	color: #f4fbf7;
	font-size: .82rem;
	font-weight: 650;
	backdrop-filter: blur(12px);
}
.hero-caption-dot {
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--accent-bright);
	box-shadow: 0 0 0 4px rgba(85, 197, 166, .16);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }

.hero-social { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero-social a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: rgba(255,255,255,0.78);
	font-size: .9rem;
	font-weight: 600;
}
.hero-social a:hover { color: #fff; }
.hero-social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 760px) {
	.hero-home { min-height: 0; }
	.hero-home .hero-layout {
		grid-template-columns: 1fr;
		gap: 2.8rem;
	}
	.hero-visual {
		width: min(76%, 340px);
		justify-self: center;
	}
	.hero-caption { right: -.7rem; }
}

@media (max-width: 480px) {
	.hero-home .hero-layout { gap: 2rem; }
	.hero-home h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
	.hero-visual { width: min(82%, 300px); }
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .72rem 1.25rem;
	border-radius: 999px;
	font-size: .88rem;
	font-weight: 700;
	letter-spacing: .02em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn-primary {
	background: #0b8a7c;
	color: #fff;
	box-shadow: 0 8px 20px rgba(8, 121, 109, 0.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { color: #fff; background: #0a7a6e; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(8, 121, 109, 0.36), inset 0 1px 0 rgba(255,255,255,.18); }
.hero .btn-primary { background: #e9f7f1; color: #0f2a23; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.hero .btn-primary:hover { background: #fff; color: #0f2a23; }
.btn-ghost {
	background: transparent;
	border-color: rgba(255,255,255,0.35);
	color: #fff;
}
.btn-ghost:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-outline {
	background: var(--surface);
	border-color: var(--border);
	color: var(--heading);
}
.btn-outline:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Sections & layout ---------- */

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section.alt {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head .lead { margin-top: .4rem; }

/* ---------- Focus areas (home) ---------- */

.focus-grid { counter-reset: focus; }
.focus-card { position: relative; counter-increment: focus; padding-top: 2rem; }
.focus-card::before {
	content: "0" counter(focus);
	display: block;
	margin-bottom: 1rem;
	font-family: var(--font-serif);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1;
	color: var(--accent);
}
.focus-card::after {
	content: "";
	position: absolute;
	left: 1.7rem; right: 1.7rem; top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-bright));
	opacity: 0;
	transition: opacity .18s ease;
}
.focus-card:hover::after { opacity: 1; }
.focus-card p { font-size: .95rem; margin: 0; }

.grid { display: grid; gap: 1.4rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.split   { grid-template-columns: 1.6fr 1fr; align-items: start; }

@media (max-width: 900px) {
	.grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.split { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.7rem;
	box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 2.2rem; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }

/* ---------- Info / fact list ---------- */

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
	padding: .75rem 0;
	border-bottom: 1px solid var(--border);
	font-size: .95rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list strong { color: var(--heading); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .1rem; }

/* ---------- Bullet lists ---------- */

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: .6rem;
	color: var(--muted);
}
.tick-list li::before {
	content: "";
	position: absolute;
	left: 0; top: .55em;
	width: .5rem; height: .5rem;
	border-radius: 50%;
	background: var(--accent-bright);
}

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
	position: relative;
	padding-left: 1.4rem;
	margin-bottom: 1.1rem;
	border-left: 2px solid var(--accent-weak);
}
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -.42rem; top: .35rem;
	width: .7rem; height: .7rem;
	border-radius: 50%;
	background: var(--accent);
}
.timeline strong { display: block; color: var(--heading); margin-bottom: .1rem; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Tag pills ---------- */

.tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tags span {
	display: inline-block;
	padding: .42rem .85rem;
	border-radius: 999px;
	background: var(--accent-weak);
	color: var(--accent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
}

/* ---------- Project cards ---------- */

.project-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}
.project-card .thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-soft);
}
.project-card .thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-card .body h3 { margin-bottom: .4rem; }
.project-card .body p { flex: 1; }
.project-card .body .btn { align-self: flex-start; margin-top: 1rem; }

/* Single highlighted project laid out side by side */
.project-card.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.project-card.feature .thumb { aspect-ratio: auto; min-height: 240px; }
.project-card.feature .body { padding: 2rem 2.2rem; justify-content: center; }
@media (max-width: 760px) {
	.project-card.feature { grid-template-columns: 1fr; }
	.project-card.feature .thumb { min-height: 0; aspect-ratio: 16 / 7; }
	.project-card.feature .body { padding: 1.5rem; }
}

/* ---------- Publications ---------- */

.pub-list { display: grid; gap: 1.2rem; }
.pub {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.6rem 1.8rem 1.6rem 2.1rem;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.pub::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--accent), var(--accent-bright));
}
.pub:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.pub h3 { margin-bottom: .55rem; font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.pub .meta { color: var(--muted); font-size: .92rem; margin-bottom: .35rem; }
.pub .meta .year {
	display: inline-block;
	background: var(--accent-weak);
	color: var(--accent);
	font-weight: 700;
	font-size: .75rem;
	padding: .15rem .55rem;
	border-radius: 6px;
	margin-right: .5rem;
}
.pub .summary { font-size: .93rem; color: var(--text); margin-top: .55rem; }
.pub .ref { font-size: .86rem; color: var(--muted); margin-top: .6rem; }
.pub .links { margin-top: .8rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.pub .links a { font-size: .85rem; font-weight: 700; }

/* ---------- Contact ---------- */

.contact-item strong {
	display: block;
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--accent);
	margin-bottom: .3rem;
}

/* ---------- Contact form ---------- */

.contact-form label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	color: var(--heading);
	margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	margin-top: .35rem;
	padding: .6rem .75rem;
	font: inherit;
	font-size: .95rem;
	color: var(--text);
	background: var(--surface-soft);
	border: 1px solid var(--border);
	border-radius: 10px;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--accent-bright);
	outline-offset: 1px;
	border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.contact-form input[name="_gotcha"] { display: none; }
.contact-form .btn { margin-top: .3rem; }

/* ---------- Notes / blog ---------- */

.cat-nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.cat-nav a {
	display: inline-block;
	padding: .5rem .95rem;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	font-size: .82rem;
	font-weight: 700;
	color: var(--heading);
}
.cat-nav a:hover { border-color: var(--accent); color: var(--accent); }
.cat-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.formula {
	display: block;
	overflow-x: auto;
	white-space: pre;
	background: var(--surface-soft);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: .85rem 1rem;
	margin: .8rem 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: .95rem;
	line-height: 1.7;
	color: var(--heading);
}

.note-stack { display: flex; flex-direction: column; gap: 1.4rem; }

.mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: .92em;
	background: var(--surface-soft);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: .05em .35em;
}

dl.glossary { margin: 0; }
dl.glossary dt { font-weight: 700; color: var(--heading); margin-top: 1rem; }
dl.glossary dt:first-child { margin-top: 0; }
dl.glossary dd { margin: .2rem 0 0; color: var(--muted); }

.ref-line {
	font-size: .8rem;
	line-height: 1.6;
	color: var(--muted);
	margin: .9rem 0 0;
	padding-top: .6rem;
	border-top: 1px solid var(--border);
}
.ref-line strong { color: var(--heading); font-weight: 700; }
.ref-line a { word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
	background: #0d211b;
	color: rgba(255,255,255,0.68);
	padding: 2.6rem 0;
	font-size: .88rem;
	border-top: 1px solid rgba(145, 221, 192, .14);
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 50%;
	transition: background .18s ease, border-color .18s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.footer-social a svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Back to top ---------- */

.to-top {
	position: fixed;
	right: 1.2rem; bottom: 1.2rem;
	width: 44px; height: 44px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: var(--accent);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: var(--shadow-md);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 90;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-bright); }

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.card-hover:hover, .btn:hover, .project-card:hover .thumb img { transform: none; }
}

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible, .btn:focus-visible {
	outline: 3px solid var(--accent-bright);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- Utilities ---------- */

.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
