:root {
	--bg: #080b0f;
	--surface: #0e1319;
	--surface2: #121922;
	--line: #25303b;
	--text: #edf2f6;
	--muted: #8c99a6;
	--accent: #63d89b;
	--blue: #68a8ff;
	--warn: #e4b15a;
	--danger: #e26b77;
	--max: 1240px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	line-height: 1.55;
}

body:before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at 75% 5%,rgba(104,168,255,.06),transparent 30%),radial-gradient(circle at 20% 25%,rgba(99,216,155,.045),transparent 25%);
	z-index: -1;
}

a {
	color: inherit;
	text-decoration: none;
}

.shell {
	width: min(calc(100% - 48px),var(--max));
	margin-inline: auto;
}

.site-header {
	height: 78px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	gap: 30px;
	padding-left: 24px;
	padding-right: 24px;
	position: sticky;
	top: 0;
	background: rgba(8,11,15,.86);
	backdrop-filter: blur(18px);
	z-index: 20;
}

.brand {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand strong {
	font-size: 14px;
	letter-spacing: .14em;
}

.brand span {
	font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
	color: var(--muted);
	letter-spacing: .18em;
	margin-top: 7px;
}

.site-header nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 13px;
	color: #b7c1ca;
}

.site-header nav a:hover {
	color: #fff;
}

.nav-cta {
	border: 1px solid var(--line);
	padding: 10px 14px;
}

.menu {
	display: none;
	margin-left: auto;
	background: none;
	border: 1px solid var(--line);
	color: var(--text);
	padding: 8px 12px;
}

.hero {
	min-height: 720px;
	padding: 130px 0 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.eyebrow,.index,.panel-label {
	font: 11px ui-monospace,SFMono-Regular,Menlo,monospace;
	letter-spacing: .16em;
	color: var(--accent);
}

.hero h1 {
	font-size: clamp(52px,7.6vw,105px);
	letter-spacing: -.062em;
	line-height: .92;
	max-width: 1100px;
	margin: 28px 0;
}

.hero h1 span {
	color: #707b86;
	font-weight: 500;
}

.hero-copy {
	font-size: clamp(18px,2.2vw,25px);
	max-width: 820px;
	color: #aeb8c1;
	margin: 0;
}

.hero-actions,.contact-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 38px;
	flex-wrap: wrap;
}

.button {
	border: 1px solid var(--line);
	padding: 13px 18px;
	font-size: 13px;
}

.button.primary {
	background: var(--text);
	color: #0a0d10;
	border-color: var(--text);
	font-weight: 700;
}

.text-link {
	font-size: 13px;
	color: #aab7c2;
	padding: 10px 0;
	border-bottom: 1px solid #3a4651;
}

.signals {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	border-top: 1px solid var(--line);
	margin-top: 90px;
}

.signals div {
	padding: 24px 24px 0 0;
	display: flex;
	flex-direction: column;
}

.signals strong {
	font-size: 17px;
	letter-spacing: .02em;
}

.signals span {
	color: var(--muted);
	font-size: 12px;
	margin-top: 5px;
}

.section,.telemetry {
	padding: 115px 0;
	border-top: 1px solid var(--line);
}

.section-intro {
	margin-bottom: 48px;
}

.split {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 80px;
}

.section-intro h2 {
	font-size: clamp(36px,4vw,58px);
	letter-spacing: -.045em;
	line-height: 1;
	margin: 12px 0 0;
}

.section-intro p {
	color: var(--muted);
	max-width: 500px;
	margin: 22px 0 0;
}

.telemetry-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) 330px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.map-card {
	min-height: 580px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
	background-size: 48px 48px;
}

.map-toolbar {
	height: 46px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	font: 10px ui-monospace,monospace;
	letter-spacing: .14em;
	color: var(--muted);
}

#attackMap {
	display: block;
	width: 100%;
	height: calc(100% - 46px);
	min-height: 530px;
}

.map-legend {
	position: absolute;
	bottom: 16px;
	left: 16px;
	display: flex;
	gap: 15px;
	padding: 8px 10px;
	background: rgba(8,11,15,.85);
	font: 10px ui-monospace,monospace;
	color: var(--muted);
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 5px;
}

.dot.critical {
	background: var(--danger);
}

.dot.high {
	background: var(--warn);
}

.dot.medium {
	background: var(--blue);
}

.event-panel {
	padding: 28px;
	border-left: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}

.event-panel>strong {
	font-size: 22px;
	margin: 18px 0 28px;
}

.event-panel dl {
	margin: 0;
}

.event-panel dl div {
	padding: 15px 0;
	border-top: 1px solid var(--line);
}

dt {
	font: 10px ui-monospace,monospace;
	text-transform: uppercase;
	color: var(--muted);
	letter-spacing: .12em;
}

dd {
	margin: 5px 0 0;
	font-size: 13px;
}

.telemetry-stats {
	margin-top: auto;
	border-top: 1px solid var(--line);
}

.telemetry-stats div {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.telemetry-stats strong {
	font-size: 24px;
}

.telemetry-stats span,.event-panel small {
	font-size: 10px;
	color: var(--muted);
}

.event-panel small {
	margin-top: 22px;
}

.capability-grid {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.capability-card {
	background: var(--bg);
	padding: 30px;
	min-height: 270px;
	transition: .25s;
}

.capability-card:hover {
	background: var(--surface2);
	transform: translateY(-2px);
}

.capability-card h3 {
	font-size: 21px;
	margin: 8px 0 14px;
}

.capability-card p {
	color: var(--muted);
	font-size: 14px;
}

.tags {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.tags span {
	font: 10px ui-monospace,monospace;
	color: #aeb8c1;
	border: 1px solid var(--line);
	padding: 6px 8px;
}

.project-list {
	border-top: 1px solid var(--line);
}

.project {
	display: grid;
	grid-template-columns: 220px 1fr 60px;
	gap: 30px;
	padding: 34px 0;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	align-items: start;
}

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

.project .kicker {
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	letter-spacing: .12em;
}

.project h3 {
	font-size: 29px;
	margin: 0 0 10px;
	transition: .2s;
}

.project p {
	margin: 0;
	color: var(--muted);
	max-width: 700px;
}

.project .arrow {
	font-size: 28px;
	color: #64717c;
}

.research-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.research-grid article {
	background: var(--surface);
	padding: 34px;
	min-height: 230px;
}

.research-grid article span {
	font: 10px ui-monospace,monospace;
	color: var(--accent);
	letter-spacing: .12em;
}

.research-grid h3 {
	font-size: 24px;
	margin: 18px 0 12px;
}

.research-grid p {
	color: var(--muted);
	max-width: 470px;
}

.mitre-grid {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 12px;
}

.mitre-card {
	border: 1px solid var(--line);
	padding: 22px;
	min-height: 180px;
	position: relative;
}

.mitre-card h3 {
	font-size: 15px;
	margin: 0;
}

.level {
	display: flex;
	gap: 5px;
	margin: 18px 0;
}

.level i {
	height: 5px;
	flex: 1;
	background: #26313a;
}

.level i.on {
	background: var(--accent);
}

.mitre-card ul {
	padding: 0;
	margin: 0;
	list-style: none;
	color: var(--muted);
	font-size: 11px;
}

.mitre-card li {
	margin: 7px 0;
}

.timeline {
	border-top: 1px solid var(--line);
}

.timeline-item {
	display: grid;
	grid-template-columns: 180px 1fr 40px;
	gap: 30px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
}

.timeline-item:hover {
	background: linear-gradient(90deg,transparent,rgba(255,255,255,.025),transparent);
}

.timeline-period {
	font: 11px ui-monospace,monospace;
	color: var(--muted);
}

.timeline-item h3 {
	margin: 0 0 6px;
	font-size: 21px;
}

.timeline-item p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.timeline-item .open {
	color: var(--accent);
}

.how-grid {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.how-grid article {
	background: var(--bg);
	padding: 28px;
	min-height: 240px;
}

.how-grid b {
	font: 11px ui-monospace,monospace;
	color: var(--accent);
}

.how-grid h3 {
	font-size: 23px;
	margin: 50px 0 8px;
}

.how-grid p {
	font-size: 13px;
	color: var(--muted);
}

.credential-grid {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	border: 1px solid var(--line);
}

.credential-group {
	padding: 26px;
	border-right: 1px solid var(--line);
}

.credential-group:last-child {
	border: 0;
}

.credential-group h3 {
	font-size: 14px;
	margin: 0 0 16px;
}

.credential-group p {
	color: var(--muted);
	font: 12px ui-monospace,monospace;
	line-height: 1.8;
}

.lab-link {
	display: inline-block;
	margin-top: 34px;
}

.contact {
	padding: 140px 0;
}

.contact h2 {
	font-size: clamp(45px,6vw,82px);
	max-width: 950px;
	letter-spacing: -.055em;
	line-height: .95;
	margin: 20px 0;
}

.contact p {
	color: var(--muted);
	font-size: 18px;
}

footer {
	border-top: 1px solid var(--line);
	padding: 28px 0 50px;
	display: flex;
	justify-content: space-between;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	letter-spacing: .1em;
}

.drawer {
	width: min(680px,calc(100% - 30px));
	height: 100dvh;
	max-height: none;
	margin: 0 0 0 auto;
	border: 0;
	border-left: 1px solid var(--line);
	background: #0c1117;
	color: var(--text);
	padding: 50px;
	position: fixed;
	inset: 0 0 0 auto;
}

.drawer::backdrop {
	background: rgba(0,0,0,.58);
	backdrop-filter: blur(3px);
}

#drawerClose {
	position: absolute;
	right: 20px;
	top: 16px;
	background: none;
	border: 1px solid var(--line);
	color: var(--text);
	width: 36px;
	height: 36px;
	font-size: 22px;
}

.drawer h2 {
	font-size: 36px;
	line-height: 1.05;
	margin: 12px 0;
}

.drawer .drawer-meta {
	font: 11px ui-monospace,monospace;
	color: var(--accent);
}

.drawer h4 {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--muted);
	margin: 32px 0 10px;
}

.drawer p,.drawer li {
	color: #aeb8c1;
}

.drawer ul {
	padding-left: 18px;
}

@media(max-width:900px) {
	.site-header nav {
		display: none;
		position: absolute;
		top: 77px;
		left: 0;
		right: 0;
		background: #0b0f14;
		padding: 22px;
		flex-direction: column;
		align-items: flex-start;
		border-bottom: 1px solid var(--line);
	}

	.site-header nav.open {
		display: flex;
	}

	.menu {
		display: block;
	}

	.hero {
		min-height: auto;
		padding-top: 100px;
	}

	.signals,.capability-grid,.mitre-grid,.how-grid,.credential-grid {
		grid-template-columns: 1fr 1fr;
	}

	.split,.telemetry-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.event-panel {
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.project {
		grid-template-columns: 1fr 40px;
	}

	.project .kicker {
		grid-column: 1/-1;
	}

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

	.drawer {
		padding: 38px 24px;
	}
}

@media(max-width:560px) {
	.shell {
		width: min(calc(100% - 28px),var(--max));
	}

	.site-header {
		padding-inline: 14px;
	}

	.hero h1 {
		font-size: 52px;
	}

	.signals,.capability-grid,.mitre-grid,.how-grid,.credential-grid {
		grid-template-columns: 1fr;
	}

	.signals div {
		border-bottom: 1px solid var(--line);
		padding-bottom: 18px;
	}

	.section,.telemetry {
		padding: 82px 0;
	}

	.map-card {
		min-height: 430px;
	}

	#attackMap {
		min-height: 380px;
	}

	.timeline-item {
		grid-template-columns: 1fr 30px;
	}

	.timeline-period {
		grid-column: 1/-1;
	}

	.credential-group {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	footer {
		flex-direction: column;
		gap: 8px;
	}
}

/* Dedicated map + articles */
.map-promo {
	margin: 10px auto 40px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 36px 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: center;
}

.map-promo h2 {
	font-size: clamp(30px,4vw,52px);
	letter-spacing: -.04em;
	margin: 8px 0 6px;
}

.map-promo p {
	max-width: 720px;
	color: var(--muted);
	margin: 0;
}

.map-launch {
	min-width: 260px;
	border: 1px solid var(--line);
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font: 12px ui-monospace,monospace;
	letter-spacing: .12em;
	background: var(--surface);
}

.map-launch:hover {
	border-color: #536273;
	background: var(--surface2);
}

.map-launch b {
	font-size: 24px;
	color: var(--accent);
}

.map-page {
	overflow: hidden;
}

.map-header {
	height: 72px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	padding: 0 24px;
	gap: 32px;
	background: #080b0f;
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 20;
}

.map-header-status {
	margin: auto;
	display: flex;
	align-items: center;
	gap: 9px;
	font: 10px ui-monospace,monospace;
	letter-spacing: .13em;
	color: var(--muted);
}

.map-header-status i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 14px var(--accent);
}

.map-header nav {
	display: flex;
	gap: 22px;
	align-items: center;
	font-size: 12px;
	color: #b7c1ca;
}

.map-close {
	border: 1px solid var(--line);
	padding: 9px 12px;
}

.map-stage {
	height: 100dvh;
	min-width: 1024px;
	min-height: 768px;
	background: #070a0e;
}

.fullscreen-map {
	height: 100%;
	position: relative;
	padding-top: 72px;
}

.fullscreen-map canvas {
	position: absolute;
	inset: 72px 0 0;
	width: 100%;
	height: calc(100% - 72px);
	display: block;
}

.map-stage-title {
	position: absolute;
	z-index: 4;
	top: 105px;
	left: 32px;
	pointer-events: none;
}

.map-stage-title h1 {
	margin: 6px 0;
	font-size: 34px;
	letter-spacing: -.045em;
}

.floating-event-panel {
	position: absolute;
	z-index: 5;
	right: 28px;
	top: 104px;
	width: 370px;
	background: rgba(11,16,22,.92);
	backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	padding: 24px;
}

.floating-panel-head {
	display: flex;
	justify-content: space-between;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	letter-spacing: .12em;
}

.floating-panel-head strong {
	color: var(--accent);
}

.floating-event-panel h2 {
	font-size: 22px;
	margin: 24px 0;
}

.floating-event-panel dl {
	margin: 0;
}

.floating-event-panel dl div {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	padding: 11px 0;
	font-size: 12px;
}

.floating-event-panel dt {
	color: var(--muted);
}

.floating-event-panel dd {
	margin: 0;
}

.floating-event-panel .telemetry-stats {
	margin-top: 18px;
}

.floating-event-panel small {
	display: block;
	color: #6f7d89;
	margin-top: 18px;
	line-height: 1.5;
}

.map-footer-bar {
	position: absolute;
	z-index: 5;
	bottom: 0;
	left: 0;
	right: 0;
	height: 34px;
	border-top: 1px solid var(--line);
	background: rgba(8,11,15,.92);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 22px;
	font: 9px ui-monospace,monospace;
	color: #6f7d89;
	letter-spacing: .12em;
}

.articles-hero {
	padding: 130px 0 75px;
	border-bottom: 1px solid var(--line);
}

.articles-hero h1 {
	font-size: clamp(64px,9vw,122px);
	letter-spacing: -.065em;
	line-height: .9;
	margin: 20px 0;
}

.articles-hero p {
	max-width: 720px;
	color: var(--muted);
	font-size: 20px;
}

.articles-shell {
	padding: 40px 0 120px;
}

.article-toolbar {
	display: flex;
	justify-content: space-between;
	padding-bottom: 16px;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	letter-spacing: .12em;
}

.article-list {
	border-top: 1px solid var(--line);
}

.article-row {
	display: grid;
	grid-template-columns: 190px 1fr 90px;
	gap: 36px;
	padding: 34px 0;
	border-bottom: 1px solid var(--line);
	transition: .2s;
}

.article-row:hover {
	padding-left: 12px;
	background: linear-gradient(90deg,rgba(255,255,255,.02),transparent);
}

.article-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	text-transform: uppercase;
}

.article-row h2 {
	font-size: 28px;
	letter-spacing: -.03em;
	margin: 0 0 8px;
}

.article-row p {
	color: var(--muted);
	max-width: 760px;
	margin: 0 0 16px;
}

.article-read {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
}

.article-read b {
	font-size: 20px;
	color: var(--accent);
}

.article-page {
	max-width: 920px;
	padding: 130px 0 120px;
}

.article-page-head {
	padding-bottom: 54px;
	border-bottom: 1px solid var(--line);
}

.article-page-head h1 {
	font-size: clamp(48px,7vw,78px);
	line-height: .98;
	letter-spacing: -.055em;
	margin: 18px 0;
}

.article-page-head>p {
	font-size: 21px;
	color: #aeb8c1;
	max-width: 800px;
}

.article-byline {
	display: flex;
	gap: 24px;
	margin-top: 26px;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
}

.article-body {
	max-width: 760px;
	margin: 65px auto;
}

.article-body section {
	margin: 0 0 54px;
}

.article-body h2 {
	font-size: 28px;
	letter-spacing: -.03em;
	margin-bottom: 14px;
}

.article-body p {
	font-size: 17px;
	line-height: 1.8;
	color: #b5c0c9;
}

.article-end {
	border-top: 1px solid var(--line);
	padding-top: 30px;
}

@media(max-width:900px) {
	.map-promo {
		grid-template-columns: 1fr;
	}

	.article-row {
		grid-template-columns: 1fr;
	}

	.article-read {
		justify-content: flex-start;
		gap: 18px;
	}

	.map-page {
		overflow: auto;
	}

	.map-stage {
		min-width: 1024px;
	}
}

/* Controle de tema */
.site-tools {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.site-header .site-tools+nav {
	margin-left: 0;
}

.tool-btn {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	height: 34px;
	min-width: 34px;
	padding: 0 9px;
	font: 10px ui-monospace,monospace;
	letter-spacing: .08em;
	cursor: pointer;
}

:root[data-theme="light"] {
	--bg: #f4f6f8;
	--surface: #ffffff;
	--surface2: #edf1f4;
	--line: #d3dbe2;
	--text: #111820;
	--muted: #5f6b76;
	--accent: #087f55;
	--blue: #1d67c8;
	--warn: #9b6800;
	--danger: #b52e3c;
}

:root[data-theme="light"] body:before {
	background: radial-gradient(circle at 75% 5%,rgba(29,103,200,.06),transparent 30%),radial-gradient(circle at 20% 25%,rgba(8,127,85,.045),transparent 25%);
}

:root[data-theme="light"] .site-header {
	background: rgba(244,246,248,.88);
}

:root[data-theme="light"] .site-header nav {
	color: #52606b;
}

:root[data-theme="light"] .site-header nav a:hover {
	color: #111820;
}

:root[data-theme="light"] .hero h1 span {
	color: #74808a;
}

:root[data-theme="light"] .hero-copy,:root[data-theme="light"] .drawer p,:root[data-theme="light"] .drawer li,:root[data-theme="light"] .article-page-head>p,:root[data-theme="light"] .article-body p {
	color: #53616d;
}

:root[data-theme="light"] .button.primary {
	background: #111820;
	color: white;
	border-color: #111820;
}

:root[data-theme="light"] .map-header {
	background: #f4f6f8;
}

:root[data-theme="light"] .floating-event-panel {
	background: rgba(255,255,255,.92);
}

:root[data-theme="light"] .map-footer-bar {
	background: rgba(244,246,248,.94);
}

@media(max-width:900px) {
	.site-tools {
		margin-left: auto;
	}

	.site-header .site-tools+nav {
		margin-left: 0;
	}

	.site-header nav {
		background: var(--bg);
	}
}

:root[data-theme="light"] .map-stage {
	background: #eef2f5;
}

:root[data-theme="light"] .map-page {
	background: #eef2f5;
}

/* Projetos em cascata */
.project-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	border-top: 0;
	position: relative;
	padding: 18px 0 30px;
}

.project-list::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: linear-gradient(to bottom,transparent,var(--line) 5%,var(--line) 95%,transparent);
	pointer-events: none;
}

.project-card {
	width: calc(50% - 54px);
	border: 1px solid var(--line);
	background: var(--surface);
	padding: 30px 32px;
	cursor: pointer;
	transition: transform .25s ease,border-color .25s ease,background .25s ease;
	position: relative;
}

.project-card:nth-child(odd) {
	align-self: flex-start;
}

.project-card:nth-child(even) {
	align-self: flex-end;
	margin-top: 34px;
}

.project-card::before {
	content: "";
	position: absolute;
	top: 54px;
	width: 54px;
	height: 1px;
	background: var(--line);
	pointer-events: none;
}

.project-card::after {
	content: "";
	position: absolute;
	top: 50px;
	width: 7px;
	height: 7px;
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: var(--bg);
	box-shadow: 0 0 0 4px var(--bg);
	pointer-events: none;
}

.project-card:nth-child(odd)::before {
	right: -54px;
}

.project-card:nth-child(odd)::after {
	right: -58px;
}

.project-card:nth-child(even)::before {
	left: -54px;
}

.project-card:nth-child(even)::after {
	left: -58px;
}

.project-card:hover,.project-card:focus-visible {
	transform: translateY(-5px);
	border-color: #536273;
	background: var(--surface2);
	outline: none;
}

.project-card:hover::before,.project-card:focus-visible::before {
	background: var(--accent);
}

.project-card-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 42px;
	font: 10px ui-monospace,monospace;
	letter-spacing: .13em;
}

.project-index {
	color: var(--accent);
}

.project-category {
	color: var(--muted);
}

.project-card h3 {
	font-size: clamp(26px,3vw,38px);
	letter-spacing: -.035em;
	line-height: 1.05;
	margin: 0 0 14px;
}

.project-summary {
	color: var(--muted);
	font-size: 15px;
	max-width: 650px;
	margin: 0;
}

.project-card-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	border-top: 1px solid var(--line);
	padding-top: 18px;
}

.project-card-bottom .tags {
	margin-top: 0;
}

.project-open {
	white-space: nowrap;
	font: 10px ui-monospace,monospace;
	color: var(--accent);
	letter-spacing: .1em;
}

.project-actions,.drawer-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.project-action {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	padding: 9px 12px;
	font: 10px ui-monospace,monospace;
	letter-spacing: .08em;
	color: var(--text);
	background: var(--bg);
}

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

.drawer-lead {
	font-size: 17px!important;
	color: var(--text)!important;
	border-left: 2px solid var(--accent);
	padding-left: 14px;
}

@media(max-width:900px) {
	.project-list::before {
		left: 18px;
	}

	.project-card,.project-card:nth-child(even) {
		width: calc(100% - 54px);
		align-self: flex-end;
		margin-top: 0;
	}

	.project-card::before,.project-card:nth-child(odd)::before,.project-card:nth-child(even)::before {
		left: -36px;
		right: auto;
		width: 36px;
	}

	.project-card::after,.project-card:nth-child(odd)::after,.project-card:nth-child(even)::after {
		left: -40px;
		right: auto;
	}
}

@media(max-width:620px) {
	.project-list {
		gap: 16px;
		padding-left: 0;
	}

	.project-list::before {
		display: none;
	}

	.project-card,.project-card:nth-child(even) {
		width: 100%;
		align-self: stretch;
		margin-top: 0;
		padding: 24px;
	}

	.project-card::before,.project-card::after {
		display: none;
	}

	.project-card-top {
		margin-bottom: 30px;
	}

	.project-card-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.project-open {
		align-self: flex-end;
	}
}

.site-header nav a:has(.fa-linkedin),
.site-header nav a:has(.fa-square-github),
.site-header nav a:has(.fa-envelope) {
	font-size: 24px;
	line-height: 1;
}

.site-header nav a:has(.fa-linkedin) i,
.site-header nav a:has(.fa-square-github) i,
.site-header nav a:has(.fa-envelope) i {
	font-size: 24px;
}

/* ===== Writeups (Hack The Box) ===== */
[hidden] {
	display: none !important;
}

.writeups-hero {
	padding: 130px 0 75px;
}

.writeups-hero h1 {
	font-size: clamp(64px,9vw,122px);
	letter-spacing: -.065em;
	line-height: .9;
	margin: 20px 0;
}

.writeups-hero .lead {
	max-width: 720px;
	color: var(--muted);
	font-size: 20px;
	margin: 0;
}

.prompt {
	font: 13px ui-monospace,SFMono-Regular,Menlo,monospace;
	color: var(--muted);
	margin: 0 0 26px;
}

.prompt b {
	color: var(--accent);
	font-weight: 400;
	margin-right: .7ch;
}

.cursor {
	display: inline-block;
	width: .6ch;
	height: 1.1em;
	margin-left: .4ch;
	background: var(--accent);
	vertical-align: -.2em;
	animation: blink 1.1s steps(2,start) infinite;
}

@keyframes blink {
	to {
		visibility: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cursor {
		animation: none;
	}
}

.writeups-hero .signals {
	margin-top: 56px;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
}

.filters-label {
	font: 10px ui-monospace,monospace;
	letter-spacing: .14em;
	color: var(--muted);
	margin-right: 8px;
}

.chip {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	padding: 9px 12px;
	font: 10px ui-monospace,monospace;
	letter-spacing: .1em;
	cursor: pointer;
	transition: .2s;
}

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

.chip.active {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
}

.chip:focus-visible,
.writeup-row:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.writeup-list {
	border-top: 1px solid var(--line);
}

.writeup-row {
	display: grid;
	grid-template-columns: 190px 1fr 90px;
	gap: 36px;
	padding: 34px 0;
	border-bottom: 1px solid var(--line);
	transition: .2s;
}

a.writeup-row:hover {
	padding-left: 12px;
	background: linear-gradient(90deg,rgba(128,140,150,.08),transparent);
}

a.writeup-row:hover h3 {
	color: var(--accent);
}

.writeup-row.soon {
	opacity: .5;
	pointer-events: none;
}

.writeup-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.diff {
	display: inline-flex;
	align-items: center;
}

.diff::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	margin-right: 7px;
}

.diff.easy {
	color: var(--accent);
}

.diff.medium {
	color: var(--warn);
}

.diff.hard {
	color: var(--danger);
}

.writeup-row h3 {
	font-size: 28px;
	letter-spacing: -.03em;
	margin: 0 0 8px;
	transition: color .2s;
}

.writeup-row p {
	color: var(--muted);
	max-width: 760px;
	margin: 0;
}

.writeup-row .tags {
	margin-top: 18px;
}

.writeup-open {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	font: 10px ui-monospace,monospace;
	color: var(--muted);
	letter-spacing: .1em;
}

.writeup-open b {
	font-size: 20px;
	color: var(--accent);
	font-weight: 400;
}

.empty-filter {
	color: var(--muted);
	padding: 34px 0;
	margin: 0;
	border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
	.writeups-hero {
		padding-top: 100px;
	}

	.writeup-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.writeup-meta {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
	}

	.writeup-open {
		justify-content: flex-start;
		gap: 12px;
	}
}
