/* ==========================================================================
   kaveh8.ir — site stylesheet
   A small, self-contained design system for the personal academic site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	--ink: #0f1c2e;
	--text: #2f3b4a;
	--muted: #66727f;
	--faint: #98a2ad;
	--line: #e4e9ef;
	--line-strong: #cfd7e0;

	--bg: #ffffff;
	--bg-alt: #f5f7fa;
	--bg-card: #ffffff;

	--accent: #1a5fb4;
	--accent-ink: #144a8c;
	--accent-soft: #e9f0fa;
	--accent-ring: rgba(26, 95, 180, 0.22);

	--hero-a: #0b1526;
	--hero-b: #12233d;

	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.05), 0 1px 1px rgba(15, 28, 46, 0.03);
	--shadow-md: 0 8px 24px rgba(15, 28, 46, 0.08), 0 2px 6px rgba(15, 28, 46, 0.04);

	--container: 1120px;
	--gutter: 24px;
	--section-y: 96px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	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 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--ink);
	line-height: 1.2;
	font-weight: 600;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: 72px;
	display: flex;
	align-items: center;
	color: #fff;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, height 0.3s ease;
}

.site-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: inherit;
	white-space: nowrap;
}
.brand:hover { color: inherit; opacity: 0.85; }

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-links a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 500;
	color: inherit;
	opacity: 0.85;
}
.nav-links a:hover,
.nav-links a.is-active {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
}

.nav-toggle {
	display: none;
	width: 40px; height: 40px;
	border-radius: 10px;
	align-items: center;
	justify-content: center;
	color: inherit;
	font-size: 1.15rem;
}

.site-nav.is-scrolled {
	height: 64px;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15, 28, 46, 0.05);
}
.site-nav.is-scrolled .nav-links a:hover,
.site-nav.is-scrolled .nav-links a.is-active {
	background: var(--accent-soft);
	color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background: var(--hero-a) url("../images/intro-bg.jpg") center / cover no-repeat;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1200px 600px at 50% 110%, rgba(26, 95, 180, 0.28), transparent 60%),
		linear-gradient(180deg, rgba(11, 21, 38, 0.86) 0%, rgba(11, 21, 38, 0.92) 60%, rgba(11, 21, 38, 0.97) 100%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
	pointer-events: none;
}

.hero .container {
	position: relative;
	z-index: 1;
	padding-top: 120px;
	padding-bottom: 120px;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 28px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
	content: "";
	width: 28px; height: 1px;
	background: rgba(255, 255, 255, 0.35);
}

.hero h1 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: clamp(2.6rem, 6.5vw, 4.75rem);
	letter-spacing: -0.015em;
	line-height: 1.05;
	color: #fff;
	margin-bottom: 20px;
}

.hero-role {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 14px;
}
.hero-role .sep {
	color: rgba(255, 255, 255, 0.38);
	padding: 0 10px;
}

.hero-lead {
	max-width: 640px;
	margin: 0 auto 40px;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: 48px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 0.9em; }

.btn-primary {
	background: #fff;
	color: var(--ink);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover { color: var(--ink); background: #f3f6fa; }

.btn-ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.1);
}

.social-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.social-row a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.social-row a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-2px);
}

.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 1;
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.1rem;
	animation: cue 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: #fff; }
@keyframes cue {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

/* --------------------------------------------------------------------------
   5. Sections & headers
   -------------------------------------------------------------------------- */
.section {
	padding: var(--section-y) 0;
}
.section-alt { background: var(--bg-alt); }

.section-header {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}
.eyebrow i { font-size: 0.95em; }

.section-header h2 {
	font-family: var(--font-serif);
	font-size: clamp(1.9rem, 3.4vw, 2.5rem);
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.section-header p {
	margin-top: 14px;
	color: var(--muted);
	font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   6. Shared components
   -------------------------------------------------------------------------- */
.card {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--line-strong);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text);
	background: var(--bg-alt);
	border: 1px solid var(--line);
	line-height: 1.3;
	white-space: nowrap;
}
.chip i { color: var(--accent); font-size: 0.85em; }
.chip-accent {
	color: var(--accent-ink);
	background: var(--accent-soft);
	border-color: transparent;
}

.logo-badge {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	padding: 6px;
	overflow: hidden;
}
.logo-badge img {
	width: 100%; height: 100%;
	object-fit: contain;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 0.88rem;
	color: var(--muted);
}
.meta > span,
.meta > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.meta i { color: var(--accent); font-size: 0.9em; }
.meta a { color: var(--text); font-weight: 500; }
.meta a:hover { color: var(--accent); }

.link-underline {
	color: var(--accent);
	font-weight: 500;
	border-bottom: 1px solid var(--accent-ring);
}
.link-underline:hover { border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */
.about-grid {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.profile-card {
	padding: 32px 28px 28px;
	text-align: center;
	position: sticky;
	top: 96px;
}
.profile-card:hover { transform: none; }

.profile-photo {
	width: 152px; height: 152px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 20px;
	border: 4px solid #fff;
	box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(15, 28, 46, 0.12);
}

.profile-card h3 {
	font-family: var(--font-serif);
	font-size: 1.45rem;
	margin-bottom: 4px;
}
.profile-card .profile-role {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 22px;
}

.facts {
	text-align: left;
	border-top: 1px solid var(--line);
	padding-top: 6px;
	margin-bottom: 22px;
}
.facts > div {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 0 12px;
	align-items: start;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts i {
	grid-row: 1 / span 2;
	width: 34px; height: 34px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 0.85rem;
	margin-top: 2px;
}
.facts dt,
.facts dd { grid-column: 2; }
.facts dt {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
	margin: 0;
}
.facts dd {
	margin: 2px 0 0;
	font-size: 0.93rem;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.profile-social {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}
.profile-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	color: var(--muted);
	border: 1px solid var(--line);
	font-size: 1rem;
}
.profile-social a:hover {
	color: var(--accent-ink);
	background: var(--accent-soft);
	border-color: transparent;
}

.about-body h3 {
	font-family: var(--font-serif);
	font-size: 1.7rem;
	letter-spacing: -0.01em;
	margin-bottom: 18px;
}
.about-body .lead {
	font-size: 1.08rem;
	line-height: 1.75;
	color: var(--text);
}
.about-body .lead p { margin-bottom: 1.1em; }

.about-block {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.about-block h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 16px;
}
.about-block h4 i { color: var(--accent); }

.skill-groups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 32px;
}
.skill-group h5 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 10px;
}

.beyond {
	color: var(--muted);
	font-size: 0.95rem;
}
.beyond span + span::before {
	content: "·";
	margin: 0 10px;
	color: var(--faint);
}

/* --------------------------------------------------------------------------
   8. Education
   -------------------------------------------------------------------------- */
.edu-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.edu-card {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.edu-card .edu-top {
	display: flex;
	align-items: center;
	gap: 16px;
}
.edu-card .edu-date {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 4px;
}
.edu-card h3 {
	font-size: 1.15rem;
	line-height: 1.3;
}
.edu-card .edu-inst {
	color: var(--muted);
	font-size: 0.95rem;
}
.edu-card .edu-inst a { color: var(--text); font-weight: 500; }
.edu-card .edu-inst a:hover { color: var(--accent); }
.edu-card .chips { margin-top: 2px; }
.edu-card .edu-foot {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 8px;
}
.edu-card .edu-foot i { color: var(--accent); }
.edu-card .edu-foot strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Experience timeline
   -------------------------------------------------------------------------- */
.timeline {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 150px;
	top: 8px; bottom: 8px;
	width: 1px;
	background: var(--line-strong);
}

.tl-item {
	position: relative;
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 0 60px;
	padding-bottom: 28px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
	content: "";
	position: absolute;
	left: 150px;
	top: 30px;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--accent);
	transform: translateX(-50%);
	box-shadow: 0 0 0 4px var(--bg);
	z-index: 1;
}
.tl-item.is-current::before {
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--accent-ring);
}

.tl-date {
	text-align: right;
	padding-top: 26px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
}
.tl-date .now {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tl-card {
	padding: 24px 26px;
}
.tl-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}
.tl-head .logo-badge { width: 48px; height: 48px; border-radius: 10px; }
.tl-head h3 { font-size: 1.12rem; line-height: 1.3; }
.tl-head .tl-org {
	font-size: 0.93rem;
	color: var(--muted);
	margin-top: 2px;
}
.tl-head .tl-org a { color: var(--text); font-weight: 500; }
.tl-head .tl-org a:hover { color: var(--accent); }
.tl-card p {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   10. Certificates
   -------------------------------------------------------------------------- */
.cert-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.cert-card {
	display: flex;
	flex-direction: column;
	padding: 24px;
}
.cert-card:hover { transform: none; }

.cert-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.cert-top .logo-badge { width: 46px; height: 46px; border-radius: 10px; }
.cert-issuer {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
}
.cert-date {
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 1px;
}

.cert-card h3 {
	font-size: 1.08rem;
	line-height: 1.35;
	margin-bottom: 10px;
}
.cert-cred {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 16px;
}
.cert-cred a { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }

.cert-card details {
	margin-top: auto;
	border-top: 1px solid var(--line);
	padding-top: 12px;
}
.cert-card summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--accent);
	padding: 4px 0;
	user-select: none;
}
.cert-card summary::-webkit-details-marker { display: none; }
.cert-card summary i { transition: transform 0.25s var(--ease); font-size: 0.8em; }
.cert-card details[open] summary i { transform: rotate(180deg); }
.cert-card summary .label-open { display: none; }
.cert-card details[open] summary .label-closed { display: none; }
.cert-card details[open] summary .label-open { display: inline; }

.module-list {
	margin-top: 10px;
	padding: 4px 0 0;
}
.module-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 0.86rem;
	color: var(--text);
}
.module-list li:last-child { border-bottom: 0; }
.module-list li span {
	flex-shrink: 0;
	font-size: 0.76rem;
	color: var(--faint);
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. Recent activities
   -------------------------------------------------------------------------- */
.news-list {
	max-width: 920px;
	margin: 0 auto;
}

.news-item {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 0 32px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }

.news-date {
	text-align: right;
	padding-top: 3px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
}
.news-date--ongoing {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}
.news-ongoing-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
}

.news-content {
	min-width: 0;
	padding-left: 24px;
	border-left: 2px solid var(--line);
	transition: border-color 0.25s ease;
}
.news-item:hover .news-content { border-left-color: var(--accent); }

.news-content h4 {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 1.05rem;
	line-height: 1.35;
	margin-bottom: 6px;
}
.news-content h4 i {
	color: var(--accent);
	font-size: 0.85em;
	transform: translateY(-1px);
	flex-shrink: 0;
}
.news-kind {
	color: var(--ink);
}
.news-kind::after {
	content: "·";
	margin: 0 6px 0 8px;
	color: var(--faint);
	font-weight: 400;
}

.news-em {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 500;
	color: var(--accent-ink);
}
.news-work-title {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--text);
	margin: 0 0 8px;
}
.news-work-title--inline {
	display: inline;
	font-size: inherit;
	margin: 0;
}
.news-content p {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 8px;
}
.news-content p .news-em { color: var(--text); }
.news-meta { margin-top: 4px; }
.news-meta a { border-bottom: 1px solid var(--accent-ring); color: var(--accent); }
.news-meta a:hover { border-bottom-color: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--hero-a);
	color: rgba(255, 255, 255, 0.7);
	padding: 56px 0 40px;
}
.footer-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand { color: #fff; font-size: 1.3rem; }
.footer-brand p {
	margin: 8px 0 0;
	font-size: 0.92rem;
	max-width: 420px;
	color: rgba(255, 255, 255, 0.6);
}
.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	font-size: 0.9rem;
}
.footer-nav a { color: rgba(255, 255, 255, 0.72); }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 24px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: #fff; }
.footer-social {
	display: flex;
	gap: 4px;
}
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 9px;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.7);
}
.footer-social a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	width: 44px; height: 44px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ink);
	color: #fff;
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; background: var(--accent-ink); }

/* --------------------------------------------------------------------------
   13. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.scroll-cue { animation: none; }
	.card, .btn, .social-row a { transition: none; }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	:root { --section-y: 72px; }

	.about-grid { grid-template-columns: 1fr; gap: 28px; }
	.profile-card { position: static; }

	.timeline::before { left: 20px; }
	.tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 52px; }
	.tl-item::before { left: 20px; top: 26px; }
	.tl-date { text-align: left; padding-top: 0; margin-bottom: 8px; }
	.tl-date br { display: none; }
	.tl-date .now { margin: 0 0 0 10px; vertical-align: 1px; }
}

@media (max-width: 760px) {
	.nav-toggle { display: inline-flex; }
	.nav-links {
		position: absolute;
		top: calc(100% + 8px);
		left: var(--gutter);
		right: var(--gutter);
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 8px;
		background: #fff;
		color: var(--ink);
		border: 1px solid var(--line);
		border-radius: 14px;
		box-shadow: var(--shadow-md);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
	}
	.nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-links a { padding: 11px 14px; border-radius: 10px; opacity: 1; }
	.nav-links a:hover, .nav-links a.is-active { background: var(--accent-soft); color: var(--accent-ink); }

	.hero .container { padding-top: 110px; padding-bottom: 110px; }

	.skill-groups { grid-template-columns: 1fr; }
	.edu-grid, .cert-grid { grid-template-columns: 1fr; }

	.news-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
	.news-date { text-align: left; padding-top: 0; }
	.news-date--ongoing { flex-direction: row; align-items: center; gap: 10px; }
	.news-content { padding-left: 0; border-left: 0; }

	.footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
	.hero-role .sep { display: block; height: 6px; padding: 0; overflow: hidden; }
	.btn { width: 100%; justify-content: center; }
	.hero-actions { flex-direction: column; align-items: stretch; }
}
/* --------------------------------------------------------------------------
   15. Preloader
   -------------------------------------------------------------------------- */
#preloader {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hero-a);
	transition: opacity 0.45s ease, visibility 0.45s ease;
}
#preloader.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
#loader {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.12);
	border-top-color: #fff;
	border-right-color: var(--accent);
	animation: spin 0.85s linear infinite;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	#loader { animation: none; border-top-color: var(--accent); }
}
