:root {
	--bg: #0c100e;
	--surface: #111714;
	--surface-2: #151e18;
	--text: #e3eae5;
	--text-body: #c4cec7;
	--muted: #8aa394;
	--border: #294537;
	--border-bright: #47765a;
	--accent: #7dffb0;
	--amber: #ffb86b;
	--radius: 6px;
	--max: 1120px;
	--font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, "Courier New", monospace;
	--font-sans: system-ui, sans-serif;
}

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

html,
body {
	background-color: var(--bg);
}

html {
	scroll-behavior: smooth;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 16px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
	overflow-x: hidden;
}

.hero__lead,
.about__text,
.member__bio,
.project__desc {
	font-family: var(--font-sans);
	line-height: 1.6;
	color: var(--text-body);
}

.member__bio,
.project__desc {
	max-width: 68ch;
	font-size: 1rem;
	text-wrap: pretty;
}

/* Accessibility utilities */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	background: var(--accent);
	color: var(--bg);
	padding: 8px 16px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 0.9rem;
}

.skip-link:focus {
	top: 12px;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

/* Layout */
.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

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

.section {
	padding: clamp(2rem, 4.5vw, 3.25rem) 0;
	scroll-margin-top: 4rem;
}

.section--compact {
	padding-top: 0;
	padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* Header & Navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: var(--bg);
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
}

.wordmark {
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.nav__links {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__link {
	color: var(--muted);
	font-size: 0.95rem;
	transition: color 140ms ease;
}

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

/* Terminal Window Component */
.window {
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.window__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	background-color: var(--surface-2);
	border-bottom: 1px solid var(--border);
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--muted);
}

.window__dots {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.dot--red {
	background-color: #ff5f56;
}

.dot--yellow {
	background-color: #ffbd2e;
}

.dot--green {
	background-color: #27c93f;
}

.window__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.window__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

@media (max-width: 639px) {
	.window__body {
		padding: 18px;
	}
}

/* Prompts & Headings */
.prompt,
.section__prompt {
	font-size: 0.9rem;
	color: var(--muted);
}

.prompt__prefix,
.section__prompt-user {
	color: var(--accent);
}

.prompt {
	margin: 0 0 14px;
}

.section__header {
	margin-bottom: 22px;
}

.section__prompt {
	margin: 0 0 6px;
}

.section__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.8vw, 1.9rem);
	letter-spacing: -0.02em;
	color: var(--text);
	line-height: 1.2;
}

/* Hero Section */
.hero {
	padding-top: clamp(2.25rem, 5vw, 3.75rem);
	padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.hero__main {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	align-items: center;
	gap: clamp(1.25rem, 3.5vw, 3rem);
}

.hero__content,
.hero__visual {
	min-width: 0;
}

.hero__kicker {
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: var(--muted);
	letter-spacing: 0.04em;
}

.hero__title {
	margin: 0 0 clamp(0.875rem, 2vw, 1.25rem);
	font-size: clamp(3.2rem, 9vw, 6.25rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--text);
	word-break: break-word;
}

.cursor {
	display: inline-block;
	margin-left: 4px;
	color: var(--accent);
	animation: blink 1.1s step-end infinite;
}

@keyframes blink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}
}

.hero__lead {
	margin: 0 0 14px;
	max-width: 58ch;
	font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero__note {
	margin: 0;
	font-size: 0.92rem;
	text-wrap: balance;
	color: var(--muted);
}

.hero__network {
	display: block;
	width: 100%;
	max-width: 24rem;
	height: auto;
	margin: 0 auto;
}

.hero__network-ring {
	fill: none;
	stroke: var(--border);
}

.hero__node-link {
	pointer-events: none;
}

.hero__connection {
	stroke: var(--border-bright);
	stroke-width: 1.5;
	stroke-dasharray: 5 6;
	transition: stroke 160ms ease;
}

.hero__node-link:is(:hover, :focus) :is(.hero__connection, .hero__node) {
	stroke: var(--accent);
}

.hero__packet {
	fill: var(--accent);
	opacity: 0;
	animation: hero-packet-travel 12s linear var(--network-delay) infinite;
}

@keyframes hero-packet-travel {

	0%,
	100% {
		opacity: 0;
		transform: translate(0, 0);
	}

	12%,
	36%,
	64%,
	88% {
		opacity: 0.6;
	}

	50% {
		opacity: 0;
		transform: translate(var(--packet-x), var(--packet-y));
	}
}

.hero__node-halo {
	fill: none;
	stroke: var(--muted);
	opacity: 0.12;
	transform-box: fill-box;
	transform-origin: center;
	animation: hero-node-pulse 10s ease-in-out var(--network-delay) infinite;
}

@keyframes hero-node-pulse {

	0%,
	100% {
		opacity: 0.1;
		transform: scale(1);
	}

	50% {
		opacity: 0.22;
		transform: scale(1.08);
	}
}

.hero__node-target {
	fill: transparent;
	pointer-events: all;
	cursor: pointer;
}

.hero__node-link:focus-visible {
	outline: none;
}

.hero__node-link:focus-visible .hero__node-target {
	stroke: var(--accent);
	stroke-width: 1.5;
}

.hero__node,
.hero__hub circle {
	fill: var(--surface-2);
	stroke-width: 1.25;
}

.hero__node {
	stroke: var(--muted);
}

.hero__hub circle {
	stroke: var(--border-bright);
}

.hero__node-id,
.hero__node-label {
	text-anchor: middle;
	font-weight: 600;
}

.hero__node-id {
	fill: var(--muted);
	font-size: 13px;
}

.hero__node-label {
	visibility: hidden;
	fill: var(--text);
	font-size: 18px;
}

.hero__node-link:focus .hero__node-label,
.hero__network:not(:focus-within) .hero__node-link:hover .hero__node-label {
	visibility: visible;
}

.hero__hub path {
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 767px) {
	.hero__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.hero__network {
		max-width: 20rem;
	}
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.5rem, 2vw, 1.5rem);
	list-style: none;
	margin: clamp(1.5rem, 4vw, 2rem) 0 1.5rem;
	padding: 1.125rem 0 0;
	border-top: 1px solid var(--border);
}

.hero__stat-item {
	display: grid;
	align-content: start;
	gap: 0.375rem;
	overflow-wrap: anywhere;
}

.hero__stat-value {
	font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
}

.hero__stat-label {
	font-size: clamp(0.75rem, 0.69rem + 0.3vw, 0.875rem);
	line-height: 1.35;
	color: var(--muted);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid var(--border-bright);
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 0.92rem;
	font-weight: 600;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn:hover {
	text-decoration: none;
}

.btn--primary {
	background-color: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}

.btn--primary:hover {
	background-color: color-mix(in srgb, var(--accent) 88%, var(--bg));
	border-color: transparent;
}

.btn--secondary {
	background-color: transparent;
	color: var(--text);
}

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

/* About Section */
.about__text {
	margin: 0;
	width: 100%;
	max-width: none;
}

/* Grids */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.team-grid {
	gap: 22px;
}

.team-grid>.card {
	min-width: 0;
	scroll-margin-top: 5rem;
}

@media (min-width: 640px) {
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-grid--dialog {
		grid-auto-rows: 1fr;
	}
}

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

	.team-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.team-grid>.card {
		grid-column: span 2;
	}

	.team-grid>.card:nth-child(3n + 1):nth-last-child(2) {
		grid-column: 2 / span 2;
	}

	.team-grid>.card:nth-child(3n + 1):last-child {
		grid-column: 3 / span 2;
	}
}

/* Card interaction */
.card:focus-within {
	border-color: var(--border-bright);
}

@media (hover: hover) and (pointer: fine) {
	.card {
		transition: border-color 160ms ease;
	}

	.card:hover {
		border-color: var(--border-bright);
	}
}

/* Team cards */
.team-grid>.card>.window__body {
	padding: clamp(1rem, 1.55vw, 1.125rem);
}

.member__top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.avatar {
	position: relative;
	width: clamp(4.5rem, 8vw, 4.75rem);
	aspect-ratio: 1;
	flex-shrink: 0;
	border: 1px solid var(--border);
	border-radius: 3px;
	background-color: var(--surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.avatar__initials {
	position: relative;
	z-index: 1;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--muted);
	letter-spacing: 0.05em;
	user-select: none;
}

.avatar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.avatar--bogdan::before {
	background-image: url("./assets/avatars/bogdan.jpg");
	background-position: center 20%;
}

.avatar--dimitrije::before {
	background-image: url("./assets/avatars/dimitrije.jpg");
	background-position: 77% 39%;
	background-size: 245% auto;
}

.avatar--jana::before {
	background-image: url("./assets/avatars/jana.jpg");
}

.avatar--lazar::before {
	background-image: url("./assets/avatars/lazar.jpg");
}

.avatar--nikola::before {
	background-image: url("./assets/avatars/nikola.jpg");
}

.member__heading {
	min-width: 0;
}

.member__name {
	margin: 0 0 4px;
	font-size: 1.125rem;
	line-height: 1.25;
	color: var(--text);
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.member__role {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--accent);
	line-height: 1.4;
}

.member__uid {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: var(--muted);
	line-height: 1.4;
}

.member__bio {
	margin: 0 0 12px;
}

.team-grid .tags {
	margin-bottom: 12px;
}

.team-grid .card__links {
	padding-top: 8px;
	gap: 4px 8px;
	font-size: 0.8125rem;
	letter-spacing: -0.02em;
}

.member__external-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
}

.member__external-links .bracket-link::before {
	content: "[ ";
}

.member__external-links .bracket-link::after {
	content: " ]";
}

.member__open,
.dossier__close {
	padding: 4px 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

.member__open {
	margin-inline-start: auto;
}

.member__details {
	margin: 0 0 16px;
	font-size: 0.875rem;
}

.member__details summary {
	width: fit-content;
	cursor: pointer;
}

.team-grid--dialog .member__details {
	display: none;
}

/* Member dossier */
html:has(.dossier[open]) {
	overflow: hidden;
	scrollbar-gutter: stable;
}

.dossier {
	position: fixed;
	inset: 0;
	width: min(42rem, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	border-color: var(--border-bright);
	color: var(--text);
}

.dossier:not([open]) {
	display: none;
}

.dossier::backdrop {
	background-color: color-mix(in srgb, var(--bg) 80%, transparent);
}

.dossier .window__bar {
	flex-shrink: 0;
	padding-block: 4px;
}

.dossier__close-form {
	flex-shrink: 0;
	margin-inline-start: auto;
}

.dossier__close {
	min-height: 44px;
	padding-inline: 6px;
}

.dossier__body {
	min-height: 0;
	padding: clamp(1.125rem, 4vw, 1.75rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.dossier__body:focus-visible {
	outline-offset: -2px;
}

.dossier__section+.dossier__section,
.member__details .dossier__section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.dossier__label {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dossier .member__name {
	font-size: clamp(1.125rem, 5vw, 1.55rem);
}

.dossier .avatar {
	width: clamp(4.5rem, 16vw, 5.5rem);
}

.dossier__section :is(.member__top, .member__bio, .tags) {
	margin-bottom: 0;
}

/* Tags */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	background-color: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--muted);
}

.tag::before {
	content: "#";
	margin-inline-end: 2px;
	color: var(--accent);
}

/* Achievements */
.achievements {
	margin: 0;
	padding-inline-start: 1.1rem;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--muted);
}

.achievements>li+li {
	margin-top: 6px;
}

/* Links row at bottom of cards */
.card__links {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	font-size: 0.85rem;
}

.bracket-link {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.bracket-link:hover {
	text-decoration: underline;
}

.private {
	color: var(--muted);
}

/* Project Cards */
.project__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.project__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--text);
	letter-spacing: -0.01em;
}

.project__owner {
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--amber);
	border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--surface));
	border-radius: 4px;
	padding: 1px 6px;
	white-space: nowrap;
}

.project__desc {
	margin: 0 0 16px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 32px 0 44px;
	font-size: 0.85rem;
	color: var(--muted);
}

.footer__eof {
	margin: 0 0 12px;
	font-weight: 600;
}

.footer__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 24px;
}

.footer__meta p {
	margin: 0;
}

.footer__members {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.footer__member {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.footer__member-name {
	color: var(--text);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.cursor,
	.hero__node-halo,
	.hero__packet {
		animation: none;
	}

	.card,
	.btn,
	.nav__link,
	.hero__connection {
		transition: none;
	}
}