/* ============================================================
   Devasena Vangavolu — Portfolio
   ============================================================ */

/* Reset & base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--bg: #0a0d14;
	--bg-2: #0f1320;
	--surface: rgba(255, 255, 255, 0.03);
	--surface-hover: rgba(255, 255, 255, 0.06);
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.16);

	--text: #e6e9ef;
	--text-dim: #9ba3b4;
	--text-muted: #6b7280;

	--accent: #7c9eff;
	--accent-2: #5eead4;
	--accent-3: #c4b5fd;
	--grad: linear-gradient(135deg, #7c9eff 0%, #5eead4 50%, #c4b5fd 100%);

	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
	--shadow-glow: 0 0 40px rgba(124, 158, 255, 0.15);

	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;

	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

	--container: 1180px;

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-size: 16px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	min-height: 100vh;
	position: relative;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

ul {
	list-style: none;
}

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

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

/* Background decoration
   ------------------------------------------------------------ */
.bg-grid {
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	pointer-events: none;
	z-index: 0;
}

.bg-glow {
	position: fixed;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.bg-glow--1 {
	width: 600px;
	height: 600px;
	top: -200px;
	left: -200px;
	background: var(--accent);
}

.bg-glow--2 {
	width: 500px;
	height: 500px;
	top: 30%;
	right: -150px;
	background: var(--accent-2);
	opacity: 0.18;
}

/* Container & layout
   ------------------------------------------------------------ */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

main {
	position: relative;
	z-index: 1;
}

.grad {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Nav
   ------------------------------------------------------------ */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 18px 0;
	transition: all 0.3s var(--ease);
	background: rgba(10, 13, 20, 0);
	backdrop-filter: blur(0px);
}

.nav.is-scrolled {
	padding: 12px 0;
	background: rgba(10, 13, 20, 0.7);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

.nav__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nav__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 15px;
	transition: opacity 0.2s var(--ease);
}

.nav__logo:hover {
	opacity: 0.8;
}

.nav__logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--grad);
	color: #0a0d14;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: -0.5px;
}

.nav__logo-text {
	color: var(--text);
}

.nav__links {
	display: flex;
	gap: 4px;
	align-items: center;
}

.nav__links a {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-dim);
	border-radius: 8px;
	transition: all 0.2s var(--ease);
}

.nav__links a:hover {
	color: var(--text);
	background: var(--surface);
}

.nav__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
}

.nav__toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Buttons
   ------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: all 0.25s var(--ease);
	border: 1px solid transparent;
	white-space: nowrap;
	cursor: pointer;
}

.btn--primary {
	background: var(--grad);
	color: #0a0d14;
	box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 40px rgba(124, 158, 255, 0.35);
}

.btn--ghost {
	border-color: var(--border-strong);
	color: var(--text);
}

.btn--ghost:hover {
	background: var(--surface);
	border-color: var(--accent);
	color: var(--accent);
}

.btn--large {
	padding: 18px 32px;
	font-size: 15px;
}

/* Hero
   ------------------------------------------------------------ */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 120px 0 80px;
	position: relative;
}

.hero__inner {
	max-width: 920px;
}

.hero__greet {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--text-dim);
	margin-bottom: 28px;
	font-family: var(--font-mono);
}

.hero__greet-dot {
	width: 8px;
	height: 8px;
	background: var(--accent-2);
	border-radius: 50%;
	box-shadow: 0 0 12px var(--accent-2);
	animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
	font-size: clamp(2.2rem, 6.5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
}

.hero__subtitle {
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	color: var(--text-dim);
	max-width: 640px;
	margin-bottom: 32px;
	line-height: 1.55;
}

.hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
}

.chip {
	display: inline-block;
	padding: 6px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--text-dim);
	font-family: var(--font-mono);
	font-weight: 500;
	transition: all 0.2s var(--ease);
}

.chip:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 64px;
}

.hero__stats {
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
	padding-top: 36px;
	border-top: 1px solid var(--border);
}

.stat__num {
	font-size: 2rem;
	font-weight: 700;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.02em;
}

.stat__label {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
	font-family: var(--font-mono);
}

.hero__scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	border: 1px solid var(--border);
	border-radius: 50%;
	animation: bounce 2s var(--ease) infinite;
	transition: all 0.2s var(--ease);
}

.hero__scroll:hover {
	color: var(--accent);
	border-color: var(--accent);
}

@keyframes bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections
   ------------------------------------------------------------ */
.section {
	padding: 100px 0;
	position: relative;
}

.section__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 56px;
}

.section__num {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--accent);
	font-weight: 500;
}

.section__title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.section__rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
	max-width: 300px;
}

.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* About
   ------------------------------------------------------------ */
.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

.about__copy p {
	color: var(--text-dim);
	margin-bottom: 18px;
	font-size: 1.05rem;
	line-height: 1.7;
}

.about__copy p:last-child {
	margin-bottom: 0;
}

.about__cards {
	display: grid;
	gap: 16px;
}

.info-card {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all 0.3s var(--ease);
}

.info-card:hover {
	background: var(--surface-hover);
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.info-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(124, 158, 255, 0.1);
	color: var(--accent);
	font-size: 18px;
	margin-bottom: 14px;
}

.info-card h3 {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 6px;
}

.info-card p {
	font-size: 14px;
	color: var(--text-dim);
	line-height: 1.55;
}

/* Skills
   ------------------------------------------------------------ */
.skills {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.skill-group {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all 0.3s var(--ease);
}

.skill-group:hover {
	border-color: var(--border-strong);
	background: var(--surface-hover);
}

.skill-group h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--text);
}

.skill-group h3 i {
	color: var(--accent);
	font-size: 14px;
}

.skill-group ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.skill-group li {
	font-size: 14px;
	color: var(--text-dim);
	padding-left: 18px;
	position: relative;
	font-family: var(--font-mono);
}

.skill-group li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-2);
	opacity: 0.7;
}

/* Filters
   ------------------------------------------------------------ */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
}

.filter {
	padding: 8px 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--text-dim);
	font-weight: 500;
	font-family: var(--font-mono);
	transition: all 0.2s var(--ease);
}

.filter:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

.filter.is-active {
	background: var(--text);
	color: var(--bg);
	border-color: var(--text);
}

/* Projects
   ------------------------------------------------------------ */
.projects {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
}

.project {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all 0.35s var(--ease);
	display: flex;
	flex-direction: column;
}

.project.is-hidden {
	display: none;
}

.project:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-md);
}

.project__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bg-2);
}

.project__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.project:hover .project__media img {
	transform: scale(1.06);
}

.project__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(10, 13, 20, 0.85) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

.project:hover .project__overlay {
	opacity: 1;
}

.project__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--text);
	color: var(--bg);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	transform: translateY(10px);
	transition: transform 0.3s var(--ease);
}

.project:hover .project__link {
	transform: translateY(0);
}

.project__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.project__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 10px;
}

.project__year {
	color: var(--accent);
}

.project__type::before {
	content: '·';
	margin-right: 12px;
	color: var(--text-muted);
}

.project__title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.project__desc {
	font-size: 14px;
	color: var(--text-dim);
	line-height: 1.6;
	margin-bottom: 16px;
	flex: 1;
}

.project__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.badge {
	display: inline-block;
	padding: 4px 10px;
	background: rgba(124, 158, 255, 0.08);
	border: 1px solid rgba(124, 158, 255, 0.15);
	border-radius: 6px;
	font-size: 11px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-weight: 500;
}

/* Contact
   ------------------------------------------------------------ */
.contact {
	padding: 60px;
	background: linear-gradient(135deg, rgba(124, 158, 255, 0.06), rgba(94, 234, 212, 0.04));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.contact::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 30%, rgba(124, 158, 255, 0.15), transparent 50%),
	            radial-gradient(circle at 80% 70%, rgba(94, 234, 212, 0.12), transparent 50%);
	pointer-events: none;
}

.contact__inner {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
}

.contact .section__num {
	display: block;
	margin-bottom: 12px;
}

.contact__title {
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
	line-height: 1.2;
}

.contact__copy {
	color: var(--text-dim);
	font-size: 1.05rem;
	margin-bottom: 32px;
	line-height: 1.6;
}

.contact__socials {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 32px;
}

.contact__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 16px;
	transition: all 0.2s var(--ease);
}

.contact__socials a:hover {
	color: var(--accent);
	border-color: var(--accent);
	transform: translateY(-2px);
	background: var(--surface-hover);
}

/* Footer
   ------------------------------------------------------------ */
.footer {
	padding: 32px 0;
	border-top: 1px solid var(--border);
	margin-top: 60px;
	position: relative;
	z-index: 1;
}

.footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.footer p {
	font-size: 13px;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.footer__meta {
	text-align: right;
}

/* Responsive
   ------------------------------------------------------------ */
@media (max-width: 880px) {
	.about {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.section {
		padding: 80px 0;
	}

	.contact {
		padding: 40px 24px;
	}

	.hero {
		padding: 100px 0 60px;
	}

	.hero__stats {
		gap: 32px;
	}
}

@media (max-width: 720px) {
	.nav__links {
		position: fixed;
		top: 64px;
		left: 16px;
		right: 16px;
		flex-direction: column;
		gap: 4px;
		padding: 16px;
		background: rgba(15, 19, 32, 0.95);
		backdrop-filter: blur(16px);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
	}

	.nav__links.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav__links a {
		display: block;
		padding: 12px 16px;
	}

	.nav__toggle {
		display: flex;
	}

	.nav__logo-text {
		display: none;
	}

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

	.hero__stats {
		gap: 28px;
	}

	.stat__num {
		font-size: 1.6rem;
	}

	.footer__inner {
		justify-content: center;
		text-align: center;
	}

	.footer__meta {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 18px;
	}

	.nav__inner {
		padding: 0 18px;
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.btn {
		justify-content: center;
	}

	.section__rule {
		display: none;
	}
}

/* Inline link
   ------------------------------------------------------------ */
.inline-link {
	color: var(--accent);
	border-bottom: 1px dashed rgba(124, 158, 255, 0.4);
	transition: all 0.2s var(--ease);
}

.inline-link:hover {
	color: var(--accent-2);
	border-bottom-color: var(--accent-2);
}

/* Inline code in project descriptions */
.project__desc code {
	font-family: var(--font-mono);
	font-size: 12.5px;
	padding: 1px 6px;
	background: rgba(124, 158, 255, 0.08);
	border: 1px solid rgba(124, 158, 255, 0.15);
	border-radius: 4px;
	color: var(--accent);
}

/* Featured project (spans 2 cols on wide screens)
   ------------------------------------------------------------ */
@media (min-width: 880px) {
	.projects {
		grid-template-columns: repeat(2, 1fr);
	}

	.project--featured {
		grid-column: span 2;
		display: grid;
		grid-template-columns: 1.1fr 1fr;
		gap: 0;
	}

	.project--featured .project__media {
		aspect-ratio: auto;
		min-height: 320px;
	}

	.project--featured .project__body {
		padding: 36px 40px;
		justify-content: center;
	}

	.project--featured .project__title {
		font-size: 1.55rem;
	}

	.project--featured .project__desc {
		font-size: 15px;
	}
}

@media (min-width: 1100px) {
	.projects {
		grid-template-columns: repeat(3, 1fr);
	}

	.project--featured {
		grid-column: span 3;
		grid-template-columns: 1fr 1fr;
	}
}

/* Project placeholder (for featured AI projects without screenshot)
   ------------------------------------------------------------ */
.project__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	background:
		radial-gradient(circle at 30% 30%, rgba(124, 158, 255, 0.18), transparent 55%),
		radial-gradient(circle at 70% 70%, rgba(94, 234, 212, 0.15), transparent 55%),
		linear-gradient(135deg, #0e1424 0%, #131a2e 100%);
	overflow: hidden;
}

.project__placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 24px 24px;
	mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.project__placeholder > i {
	font-size: 56px;
	color: var(--accent);
	opacity: 0.85;
	filter: drop-shadow(0 0 24px rgba(124, 158, 255, 0.4));
	position: relative;
	z-index: 1;
}

.project__placeholder-grid {
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 8px;
	position: relative;
	z-index: 1;
}

.project__placeholder-grid span {
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text);
	backdrop-filter: blur(8px);
}

.project__placeholder--alt {
	background:
		radial-gradient(circle at 70% 30%, rgba(196, 181, 253, 0.18), transparent 55%),
		radial-gradient(circle at 30% 70%, rgba(124, 158, 255, 0.18), transparent 55%),
		linear-gradient(135deg, #0e1424 0%, #131a2e 100%);
}

.project__placeholder-vec {
	position: relative;
	z-index: 1;
	width: 200px;
	height: 60px;
}

.vec-dot {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 16px var(--accent);
	animation: vec-pulse 3s var(--ease) infinite;
}

.vec-dot:nth-child(1) { top: 10px;  left: 0;    animation-delay: 0s;   background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.vec-dot:nth-child(2) { top: 30px;  left: 40px; animation-delay: 0.3s; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }
.vec-dot:nth-child(3) { top: 0;     left: 80px; animation-delay: 0.6s; background: var(--accent-3); box-shadow: 0 0 16px var(--accent-3); }
.vec-dot:nth-child(4) { top: 40px;  left: 120px; animation-delay: 0.9s; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.vec-dot:nth-child(5) { top: 15px;  left: 160px; animation-delay: 1.2s; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }
.vec-dot:nth-child(6) { top: 35px;  left: 195px; animation-delay: 1.5s; background: var(--accent-3); box-shadow: 0 0 16px var(--accent-3); }

@keyframes vec-pulse {
	0%, 100% { transform: scale(1); opacity: 0.9; }
	50% { transform: scale(0.6); opacity: 0.5; }
}

/* Writing / Articles
   ------------------------------------------------------------ */
.writing {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.article {
	display: block;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: all 0.3s var(--ease);
	position: relative;
	overflow: hidden;
}

.article::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--grad);
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

.article:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	background: var(--surface-hover);
	box-shadow: var(--shadow-md);
}

.article:hover::before {
	opacity: 1;
}

.article__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.article__meta i {
	color: var(--accent);
	font-size: 14px;
}

.article__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 12px;
	letter-spacing: -0.01em;
	line-height: 1.35;
	color: var(--text);
}

.article__excerpt {
	font-size: 14px;
	color: var(--text-dim);
	line-height: 1.6;
	margin-bottom: 18px;
}

.article__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	font-family: var(--font-mono);
	transition: gap 0.2s var(--ease);
}

.article:hover .article__cta {
	gap: 10px;
}

.article__cta i {
	font-size: 11px;
}

/* Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
