:root {
	--bg-main: #070708;
	--bg-card: #101014;
	--border: rgba(255, 255, 255, 0.06);
	--text: #f4f4f5;
	--muted: #a1a1aa;
	--sidebar-w: clamp(10.5rem, 22vw, 17rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
	overflow: hidden;
}

body {
	margin: 0;
	height: 100%;
	max-height: 100dvh;
	overflow: hidden;
	overscroll-behavior: none;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: clamp(13px, 1vw + 10px, 16px);
	background: var(--bg-main);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

body.cmd-open {
	overflow: hidden;
}

code {
	font-size: 0.9em;
	background: rgba(255, 255, 255, 0.06);
	padding: 0.12em 0.35em;
	border-radius: 4px;
}

kbd {
	font-family: inherit;
	font-size: 0.85em;
	padding: 0.1em 0.45em;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border);
}

.shell {
	display: flex;
	height: 100dvh;
	max-height: 100dvh;
	max-width: 100vw;
	min-height: 0;
	overflow: hidden;
}

/* Sidebar */
.sidebar {
	position: relative;
	flex: 0 0 var(--sidebar-w);
	width: var(--sidebar-w);
	min-width: 0;
	height: 100%;
	max-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	padding: 0.75rem 1rem 1rem;
}

.sidebar-column {
	position: relative;
	z-index: 3;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.5rem;
}

.sidebar-matrix {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0.42;
}

.sidebar-hud {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
	font-size: 0.58rem;
	line-height: 1.5;
	color: rgba(187, 247, 208, 0.9);
	padding: 0.4rem 0.45rem;
	border-radius: 10px;
	background: rgba(0, 18, 12, 0.55);
	border: 1px solid rgba(34, 197, 94, 0.28);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.sidebar-hud__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.35rem;
}

.sidebar-hud__row + .sidebar-hud__row {
	margin-top: 0.15rem;
}

.sidebar-hud__prompt {
	color: #4ade80;
	font-weight: 700;
}

.sidebar-hud__path {
	color: rgba(220, 252, 231, 0.95);
	font-weight: 600;
}

.sidebar-hud__host {
	color: #86efac;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.sidebar-hud__dim,
.sidebar-hud__muted {
	color: rgba(167, 243, 208, 0.55);
	font-weight: 500;
}

.sidebar-hud__ok {
	display: inline-block;
	padding: 0.05rem 0.3rem;
	border-radius: 4px;
	font-size: 0.52rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #bbf7d0;
	background: rgba(34, 197, 94, 0.2);
	border: 1px solid rgba(34, 197, 94, 0.4);
}

.sidebar-hud__hex {
	font-size: 0.52rem;
	letter-spacing: 0.02em;
	color: rgba(187, 247, 208, 0.72);
}

.sidebar-hud__scan {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(34, 197, 94, 0.04) 2px,
		rgba(34, 197, 94, 0.04) 3px
	);
	pointer-events: none;
	opacity: 0.85;
}

.sidebar-log-wrap {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-height: 2rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0.2rem 0;
}

.sidebar-log {
	width: 100%;
	font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
	font-size: 0.52rem;
	line-height: 1.55;
}

.sidebar-log__line {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
}

.sidebar-log__line + .sidebar-log__line {
	margin-top: 0.12rem;
}

.sidebar-log__k {
	flex: 0 0 3.15rem;
	font-size: 0.48rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(74, 222, 128, 0.42);
}

.sidebar-log__v {
	flex: 1;
	min-width: 0;
	word-break: break-word;
	color: rgba(220, 252, 231, 0.68);
}

.sidebar-stack {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.sidebar-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(168deg, #0c1522 0%, #080c12 42%, #060a0c 100%);
	z-index: 0;
}

.sidebar-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 100% 55% at 50% -5%, rgba(34, 197, 94, 0.14), transparent 52%),
		radial-gradient(ellipse 55% 45% at 95% 85%, rgba(56, 189, 248, 0.08), transparent 50%);
	pointer-events: none;
}

.floaties {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.float {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.68rem;
	color: rgba(134, 239, 172, 0.42);
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	border-radius: 8px;
	border: 1px solid rgba(34, 197, 94, 0.12);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	width: 1.85rem;
	height: 1.85rem;
	animation: floaty 7s ease-in-out infinite;
}

.float-a {
	top: 12%;
	left: 18%;
	animation-delay: 0s;
}
.float-b {
	top: 22%;
	right: 22%;
	font-family: ui-monospace, monospace;
	font-size: 0.72rem;
	animation-delay: -1.5s;
}
.float-c {
	top: 42%;
	left: 12%;
	animation-delay: -2.5s;
}
.float-d {
	top: 35%;
	right: 15%;
	animation-delay: -3s;
}
.float-e {
	top: 58%;
	left: 45%;
	animation-delay: -1s;
}

@keyframes floaty {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-10px) rotate(3deg);
	}
}

.sidebar-profile {
	position: relative;
}

@keyframes avatar-shell-glow {
	0%,
	100% {
		background-color: rgba(255, 255, 255, 0);
	}
	50% {
		background-color: rgba(255, 255, 255, 1);
	}
}

.avatar-shell {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0);
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	flex-shrink: 0;
	line-height: 0;
	animation: avatar-shell-glow 5.5s ease-in-out infinite;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s ease,
		background-color 0.4s ease;
}

.sidebar-profile:hover .avatar-shell {
	transform: scale(1.05);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
	animation: none;
	background-color: #fff;
}

.avatar {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50%;
	display: block;
	object-fit: contain;
	object-position: center;
}

.sidebar-name {
	margin: 0.4rem 0 0.15rem;
	font-size: clamp(1.15rem, 2.6vw, 1.42rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.sidebar-tagline {
	margin: 0 0 0.2rem;
	font-size: 0.82rem;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sidebar-player {
	position: relative;
	padding: 0.5rem 0.55rem 0.45rem;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(18, 16, 28, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	color: #fafafa;
}

.sidebar-player__glow {
	position: absolute;
	inset: -55% -20%;
	width: 140%;
	background: linear-gradient(
		90deg,
		rgba(100, 60, 180, 0.5) 0%,
		rgba(45, 110, 195, 0.42) 22%,
		rgba(160, 70, 140, 0.38) 48%,
		rgba(55, 140, 170, 0.44) 72%,
		rgba(110, 65, 190, 0.48) 100%
	);
	background-size: 220% 100%;
	filter: blur(26px);
	opacity: 0.92;
	pointer-events: none;
	animation: sidebar-player-glow-pan 18s ease-in-out infinite;
}

@keyframes sidebar-player-glow-pan {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

.sidebar-player__top,
.sidebar-player__mid,
.sidebar-player__transport {
	position: relative;
	z-index: 1;
}

.sidebar-player__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.sidebar-player__spotify {
	display: flex;
	color: #fff;
	opacity: 0.95;
}

.sidebar-player__device {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.15rem 0.4rem 0.15rem 0.35rem;
	border-radius: 999px;
	font-size: 0.52rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-player__device svg {
	flex-shrink: 0;
	opacity: 0.85;
}

.sidebar-player__mid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin-bottom: 0.35rem;
}

.sidebar-player__meta {
	min-width: 0;
	flex: 1;
}

.sidebar-player__track-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.sidebar-player__track-link:hover {
	color: #fff;
	opacity: 1;
}

.sidebar-player__title.sidebar-player__track-link {
	margin: 0 0 0.1rem;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sidebar-player__artist.sidebar-player__track-link {
	margin: 0;
	display: block;
	font-size: 0.58rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-player__artist.sidebar-player__track-link:hover {
	color: rgba(255, 255, 255, 0.95);
}

.sidebar-player__pause {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: default;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sidebar-player__pause svg {
	display: block;
}

.sidebar-player__transport {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.sidebar-player__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	cursor: default;
}

.sidebar-player__icon-btn svg {
	display: block;
}

.sidebar-player__seek {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 18px;
}

.sidebar-player__seek-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: rgba(255, 255, 255, 0.28);
	transform: translateY(-50%);
}

.sidebar-player__squiggle-wrap {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 42%;
	overflow: hidden;
	pointer-events: none;
	animation: sidebar-player-seek-w 7.5s ease-in-out infinite;
}

.sidebar-player__squiggle {
	display: block;
	width: 200%;
	height: 100%;
	animation: sidebar-player-squiggle-drift 3.2s linear infinite;
}

.sidebar-player__knob {
	position: absolute;
	top: 50%;
	left: 42%;
	width: 9px;
	height: 9px;
	margin-left: -4.5px;
	margin-top: -4.5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
	z-index: 2;
	animation: sidebar-player-seek-k 7.5s ease-in-out infinite;
}

@keyframes sidebar-player-seek-w {
	0%,
	100% {
		width: 34%;
	}
	50% {
		width: 58%;
	}
}

@keyframes sidebar-player-seek-k {
	0%,
	100% {
		left: 34%;
	}
	50% {
		left: 58%;
	}
}

@keyframes sidebar-player-squiggle-drift {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-25%);
	}
}

.sidebar-player__controls-right {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.78);
}

@media (prefers-reduced-motion: reduce) {
	.sidebar-player__squiggle-wrap,
	.sidebar-player__knob,
	.sidebar-player__squiggle,
	.sidebar-player__glow {
		animation: none !important;
	}

	.sidebar-player__glow {
		background-position: 50% 50%;
	}

	.sidebar-player__squiggle-wrap {
		width: 44%;
	}

	.sidebar-player__knob {
		left: 44%;
	}

	.avatar-shell {
		animation: none !important;
		background-color: rgba(255, 255, 255, 0.96) !important;
	}

	.sidebar-profile:hover .avatar-shell {
		transform: none;
		background-color: #fff !important;
	}
}

/* Main */
.main {
	flex: 1;
	min-width: 0;
	min-height: 0;
	max-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0.5rem 1rem 0.45rem 0.75rem;
}

.main-inner {
	flex: 1;
	min-height: 0;
	/* Critical: default min-width:auto lets wide children block shrinking → horizontal scroll */
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.main-inner > .section:not(.section-terminal) {
	flex-shrink: 0;
}

.section {
	margin-bottom: 0;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
}

.section-title {
	margin: 0 0 0.2rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.card-row {
	display: grid;
	gap: 0.35rem;
}

.explore-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-row--single {
	grid-template-columns: minmax(0, 1fr);
}

.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0.45rem 0.55rem;
}

button.card {
	font: inherit;
	text-align: left;
	color: inherit;
	width: 100%;
	cursor: pointer;
	border: none;
	appearance: none;
	-webkit-appearance: none;
}

a.card {
	display: block;
	text-decoration: none;
	color: inherit;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

button.card:hover {
	background: #1a1a1f;
	border-color: rgba(255, 255, 255, 0.1);
}

a.card:hover {
	background: #1a1a1f;
	border-color: rgba(255, 255, 255, 0.1);
}

.explore-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	min-width: 0;
	max-width: 100%;
}

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted);
	margin-bottom: 0;
}

.card-icon svg {
	opacity: 0.9;
	width: 14px;
	height: 14px;
}

.card-label {
	font-weight: 600;
	font-size: 0.82rem;
	min-width: 0;
	max-width: 100%;
	word-break: break-word;
}

.card-desc {
	font-size: 0.7rem;
	color: var(--muted);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.section-terminal {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.section-terminal > .section-title {
	flex-shrink: 0;
}

.fake-terminal {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #0a0a0c;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
	font-size: clamp(13px, 0.55rem + 1.1vw, 15px);
}

.fake-terminal-header {
	flex-shrink: 0;
	padding: 0.35rem 0.5rem;
	font-size: 0.88em;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid var(--border);
}

.fake-terminal-out {
	flex: 1;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0.45rem 0.55rem;
	font-size: 1em;
	line-height: 1.5;
	color: #d4d4d8;
	scrollbar-width: thin;
}

.fake-terminal-line {
	margin-bottom: 0.2rem;
	word-break: break-word;
}

.fake-terminal-line--cmd {
	color: #a1a1aa;
}

.fake-terminal-block {
	margin: 0 0 0.35rem;
	white-space: pre-wrap;
	color: #86efac;
	word-break: break-word;
}

.fake-terminal-input-row {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.45rem;
	border-top: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.45);
}

.fake-terminal-prompt {
	color: #a5b4fc;
	font-size: 1em;
	flex-shrink: 0;
}

.fake-terminal-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	color: #fafafa;
	font-family: inherit;
	font-size: 1em;
	outline: none;
}

.home-writing-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
	min-width: 0;
}

.home-writing-head .section-title {
	margin: 0;
}

.home-writing-archive {
	font-size: 0.66rem;
	color: #93c5fd;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-writing-archive:hover {
	color: #bfdbfe;
}

/* Footer */
.site-footer {
	flex-shrink: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding-top: 0.35rem;
	margin-top: 0.15rem;
	border-top: 1px solid var(--border);
	min-height: 0;
	overflow: hidden;
}

.footer-kbd {
	margin: 0;
	font-size: 0.66rem;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.footer-find {
	font-size: 0.66rem;
	color: var(--muted);
	white-space: nowrap;
}

.social-icons {
	display: flex;
	gap: 0.2rem;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.62rem;
	height: 1.62rem;
	border-radius: 6px;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid transparent;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	flex-shrink: 0;
}

.social-link svg {
	width: 14px;
	height: 14px;
}

.social-link:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--border);
}

/* Command palette */
.cmd-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 90;
}

.cmd-backdrop.is-on {
	display: block;
}

.cmd-palette {
	position: fixed;
	left: 50%;
	top: 22%;
	transform: translateX(-50%);
	z-index: 100;
	width: min(400px, calc(100vw - 2rem));
	background: #18181c;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cmd-palette[hidden] {
	display: none !important;
}

.cmd-title {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.cmd-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmd-list a {
	display: block;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	color: var(--text);
	text-decoration: none;
	font-size: 1.02rem;
}

.cmd-list a:hover {
	background: rgba(255, 255, 255, 0.06);
}

.cmd-about-btn {
	display: block;
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 1.02rem;
	text-align: left;
	cursor: pointer;
}

.cmd-about-btn:hover {
	background: rgba(255, 255, 255, 0.06);
}

/* About modal */
.about-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	pointer-events: none;
}

.about-modal:not([hidden]) {
	pointer-events: auto;
}

.about-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	opacity: 0;
	transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-modal.is-open .about-modal__scrim {
	opacity: 1;
}

.about-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(36rem, calc(100vw - 2rem));
	max-height: min(85dvh, 100%);
	overflow-y: auto;
	padding: 1.75rem 1.85rem 1.5rem;
	opacity: 0;
	transform: scale(0.88) translateY(1.5rem);
	filter: blur(6px);
	transition:
		opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.55s cubic-bezier(0.34, 1.25, 0.64, 1),
		filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-modal.is-open .about-modal__dialog {
	opacity: 1;
	transform: scale(1) translateY(0);
	filter: blur(0);
}

.about-modal__x {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.about-modal__x:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--text);
}

.about-modal__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.2rem;
	padding: 0.2rem;
	margin-bottom: 1.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border);
}

.about-modal__tab {
	padding: 0.4rem 1rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.about-modal__tab:hover:not(.is-active) {
	color: var(--text);
}

.about-modal__tab.is-active {
	background: #fafafa;
	color: #0a0a0b;
	transform: scale(1.02);
}

.about-modal__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.about-modal__panel[hidden] {
	display: none !important;
}

.about-modal__body {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(244, 244, 245, 0.92);
}

.about-modal__strong {
	font-weight: 600;
	color: #fafafa;
}

.about-modal__body code {
	font-size: 0.82em;
}

.about-modal__body--career-more {
	margin-top: 1.5rem;
}

/* Work tab — career path waypoints */
.career-waypoints {
	margin: 0 0 0.25rem;
}

.career-waypoints__column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.career-waypoints__step {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.career-waypoints__marker {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 0;
}

.career-waypoints__pin {
	color: #fb923c;
	margin-bottom: -0.35rem;
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 2px 8px rgba(251, 146, 60, 0.35));
}

.career-waypoints__orb {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	border: 2px solid rgba(251, 146, 60, 0.55);
	background: radial-gradient(
		circle at 35% 30%,
		rgba(251, 146, 60, 0.22) 0%,
		rgba(96, 165, 250, 0.08) 45%,
		rgba(24, 24, 27, 0.95) 100%
	);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.06) inset,
		0 8px 28px rgba(0, 0, 0, 0.35);
	position: relative;
	z-index: 1;
}

.career-waypoints__caption {
	margin: 0.65rem 0 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fafafa;
}

.career-waypoints__caption--future {
	font-weight: 500;
	color: rgba(161, 161, 170, 0.95);
	font-style: italic;
}

.career-waypoints__spine {
	display: flex;
	justify-content: center;
	padding: 0.15rem 0 0.35rem;
	min-height: 2.25rem;
}

.career-waypoints__dash {
	display: block;
	width: 0;
	height: 2.25rem;
	border-left: 2px dashed rgba(161, 161, 170, 0.5);
}

.career-waypoints__dot-future {
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	border: 2px dashed rgba(161, 161, 170, 0.55);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.9);
}

.career-waypoints__step--ahead .career-waypoints__caption {
	margin-top: 0.55rem;
}

.about-modal .hl {
	font-weight: 500;
	transition:
		color 0.2s ease,
		text-shadow 0.2s ease,
		transform 0.2s cubic-bezier(0.34, 1.25, 0.64, 1);
	display: inline-block;
}

.about-modal .hl-pink {
	color: #f472b6;
}
.about-modal .hl-orange {
	color: #fb923c;
}
.about-modal .hl-purple {
	color: #c084fc;
}
.about-modal .hl-blue {
	color: #60a5fa;
}
.about-modal .hl-cyan {
	color: #22d3ee;
}

.about-modal .hl:hover {
	text-shadow: 0 0 20px currentColor;
	transform: translateY(-1px) scale(1.02);
}

.about-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.25rem;
}

.about-modal__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	color: #fafafa;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--border);
	transition: background 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.about-modal__btn:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

.about-modal__btn--linkedin {
	background: rgba(10, 102, 194, 0.22);
	border-color: rgba(10, 102, 194, 0.45);
}

.about-modal__btn--linkedin:hover {
	background: rgba(10, 102, 194, 0.35);
}

.blogs-json-src {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Blogs explorer modal */
.blogs-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	pointer-events: none;
}

.blogs-modal:not([hidden]) {
	pointer-events: auto;
}

.blogs-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	opacity: 0;
	transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.blogs-modal.is-open .blogs-modal__scrim {
	opacity: 1;
}

.blogs-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(40rem, calc(100vw - 1.5rem));
	max-height: min(88dvh, 100%);
	padding: 1.35rem 1.4rem 1rem;
	border-radius: 16px;
	background: rgba(18, 18, 22, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: scale(0.9) translateY(1.25rem);
	filter: blur(8px);
	transition:
		opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.55s cubic-bezier(0.34, 1.25, 0.64, 1),
		filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.blogs-modal.is-open .blogs-modal__dialog {
	opacity: 1;
	transform: scale(1) translateY(0);
	filter: blur(0);
}

.blogs-modal__x {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.blogs-modal__x:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--text);
}

.blogs-modal__heading {
	margin: 0 2.5rem 0.2rem 0;
	font-size: 1.42rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.blogs-modal__sub {
	margin: 0 0 1rem;
	font-size: 0.86rem;
	color: var(--muted);
}

.blogs-modal__search-wrap {
	display: block;
	position: relative;
	margin-bottom: 0.85rem;
	flex-shrink: 0;
}

.blogs-modal__search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.blogs-modal__search {
	width: 100%;
	padding: 0.55rem 0.75rem 0.55rem 2.35rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.35);
	color: var(--text);
	font: inherit;
	font-size: 0.96rem;
	outline: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.blogs-modal__search::placeholder {
	color: #71717a;
}

.blogs-modal__search:focus {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.45);
}

.blogs-modal__list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 0 -0.25rem;
	padding: 0 0.25rem 0.35rem;
	-webkit-overflow-scrolling: touch;
}

.blogs-modal__card {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: opacity 0.2s ease;
}

.blogs-modal__card:last-child {
	border-bottom: none;
}

.blogs-modal__card:hover {
	opacity: 0.92;
}

.blogs-modal__card:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.6);
	outline-offset: 4px;
	border-radius: 8px;
}

.blogs-modal__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.blogs-modal__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-width: 0;
}

.blogs-modal__tag {
	display: inline-block;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(244, 244, 245, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.blogs-modal__date {
	flex-shrink: 0;
	font-size: 0.78rem;
	color: var(--muted);
	white-space: nowrap;
}

.blogs-modal__banner {
	display: block;
	width: 100%;
	height: auto;
	max-height: 10rem;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 0.65rem;
	border: 1px solid var(--border);
}

.blogs-modal__card-title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: #fafafa;
}

.blogs-modal__snippet {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blogs-modal__empty {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: var(--muted);
	text-align: center;
	padding: 1rem;
}

.cmd-hint {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
	color: #71717a;
}

@media (max-width: 768px) {
	:root {
		--sidebar-w: clamp(7.5rem, 26vw, 11rem);
	}

	.sidebar {
		padding: 0.5rem 0.5rem 0.65rem;
	}

	.sidebar-profile {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.float {
		opacity: 0.55;
		transform: scale(0.85);
	}
}

@media (max-width: 520px) {
	.home-writing-head .home-writing-archive {
		flex: 1 1 auto;
		text-align: right;
	}
}

