/* =========================================================================
   Ujjwal Portfolio — "analytics console"
   Deep ink canvas · chart-grid texture · dual semantic accents:
   cyan  = system / interactive
   amber = money / impact
   ========================================================================= */

:root {
	--bg:        #070b14;
	--bg-2:      #0b1120;
	--panel:     #0d1424;
	--panel-2:   #101a2e;
	--line:      rgba(148, 163, 184, 0.14);
	--line-soft: rgba(148, 163, 184, 0.08);
	--text:      #e6edf7;
	--muted:     #93a1b7;
	--cyan:      #53ddf0;
	--cyan-dim:  rgba(83, 221, 240, 0.4);
	--amber:     #ffb454;
	--amber-soft:#ffc97e;
	--green:     #3dd68c;

	--font-display: "Chakra Petch", "Segoe UI", sans-serif;
	--font-body:    "Manrope", system-ui, -apple-system, sans-serif;
	--font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--radius:    12px;
	--radius-sm: 8px;
	--container: 1140px;
	--header-h:  72px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16.5px/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Chart-grid canvas + top glow */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(900px 480px at 72% -8%, rgba(83, 221, 240, 0.09), transparent 62%),
		radial-gradient(720px 420px at 8% 4%, rgba(255, 180, 84, 0.05), transparent 60%),
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: auto, auto, 44px 44px, 44px 44px;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.12;
	margin: 0 0 0.5em;
	letter-spacing: 0.005em;
}

p { margin: 0 0 1em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(83, 221, 240, 0.28); color: #f4fbff; }

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

/* ------------------------------------------------------------ utilities */
.container {
	width: min(var(--container), 100% - 48px);
	margin-inline: auto;
}

.container--narrow { max-width: 760px; }

.mono { font-family: var(--font-mono); }

.eyebrow {
	font: 500 12px/1 var(--font-mono);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cyan);
	margin: 0 0 18px;
}

.hl { color: var(--amber); }

.section { padding: 96px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.section--tight { padding: 56px 0 96px; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; }
.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 60ch; }

.section-head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	background: var(--amber);
	color: #10131c;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	font: 600 14px var(--font-body);
	transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* -------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 10px;
	font: 600 14.5px/1 var(--font-body);
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease,
		background 0.22s ease, border-color 0.22s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
	background: var(--amber);
	color: #10131c;
	box-shadow: 0 12px 32px -14px rgba(255, 180, 84, 0.55);
}
.btn-primary:hover {
	background: var(--amber-soft);
	box-shadow: 0 16px 38px -14px rgba(255, 180, 84, 0.7);
}

.btn-ghost {
	border-color: var(--cyan-dim);
	color: var(--cyan);
	background: transparent;
}
.btn-ghost:hover {
	background: rgba(83, 221, 240, 0.08);
	border-color: var(--cyan);
}

/* ---------------------------------------------------------------- chips */
.chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: 500 12px/1.4 var(--font-mono);
	color: var(--muted);
	background: rgba(148, 163, 184, 0.04);
	transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--cyan-dim); color: var(--text); }

/* --------------------------------------------------------------- header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(7, 11, 20, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
	background: rgba(7, 11, 20, 0.9);
	border-bottom-color: var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border: 1px solid var(--cyan-dim);
	border-radius: var(--radius-sm);
	font: 600 11.5px var(--font-mono);
	color: var(--cyan);
	background:
		linear-gradient(135deg, rgba(83, 221, 240, 0.12), transparent 60%);
}

.brand-name {
	font: 600 15.5px var(--font-display);
	letter-spacing: 0.02em;
}

.site-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 26px;
}

.nav-list {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-list a {
	font: 500 13px var(--font-mono);
	color: var(--muted);
	letter-spacing: 0.02em;
	position: relative;
	padding: 6px 0;
}
.nav-list a:hover { color: var(--text); text-decoration: none; }
.nav-list a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 1px;
	background: var(--cyan);
	transition: width 0.25s ease;
}
.nav-list a:hover::after { width: 100%; }

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(61, 214, 140, 0.35);
	border-radius: 999px;
	font: 500 12px var(--font-mono);
	color: #b9f4d8;
	background: rgba(61, 214, 140, 0.06);
	white-space: nowrap;
}
.status-pill:hover {
	text-decoration: none;
	border-color: rgba(61, 214, 140, 0.7);
}

.status-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.5);
	animation: pulse 2.2s ease-out infinite;
	flex: none;
}

@keyframes pulse {
	0%   { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.45); }
	70%  { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 10px;
	cursor: pointer;
}
.nav-toggle-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 18px;
}
.nav-toggle-box span {
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero */
.hero {
	padding: clamp(64px, 9vh, 110px) 0 80px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 60px;
	align-items: center;
}

.hero-title {
	font-size: clamp(2.6rem, 6vw, 4.3rem);
	font-weight: 700;
	line-height: 1.04;
	margin: 0 0 22px;
}

.lede {
	color: var(--muted);
	font-size: 1.08rem;
	line-height: 1.75;
	max-width: 54ch;
	margin-bottom: 30px;
}
.lede strong { color: var(--amber-soft); font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.03em;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
	content: "";
	width: 5px; height: 5px;
	border-radius: 1px;
	background: var(--cyan);
	opacity: 0.7;
}

/* -------------------------------------------------------------- console */
.console {
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow:
		0 34px 90px -34px rgba(0, 0, 0, 0.75),
		0 0 0 1px rgba(83, 221, 240, 0.05),
		0 0 70px -24px rgba(83, 221, 240, 0.22);
	overflow: hidden;
}

.console-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
}
.c-dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: rgba(148, 163, 184, 0.28);
}
.console-title {
	margin-left: 8px;
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.04em;
}
.console-run {
	margin-left: auto;
	background: none;
	border: 1px solid var(--cyan-dim);
	border-radius: 6px;
	color: var(--cyan);
	font: 500 11.5px var(--font-mono);
	padding: 5px 11px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.console-run:hover { background: rgba(83, 221, 240, 0.1); border-color: var(--cyan); }

.console-code {
	margin: 0;
	padding: 22px 20px 18px;
	font: 500 13.5px/1.75 var(--font-mono);
	color: #cbd8ea;
	white-space: pre-wrap;
	min-height: 122px;
}

.tok-k { color: var(--cyan); }
.tok-s { color: var(--amber); }

.console-caret {
	display: inline-block;
	width: 8px;
	height: 1.05em;
	margin-left: 2px;
	background: var(--cyan);
	vertical-align: -0.18em;
	animation: blink 1s steps(1) infinite;
}
.console-caret.done { opacity: 0; animation: none; }

@keyframes blink { 50% { opacity: 0; } }

.console-results { border-top: 1px dashed var(--line); }

.result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	padding: 11px 20px;
	border-bottom: 1px solid var(--line-soft);
}
.rr-k { font: 400 12.5px var(--font-mono); color: var(--muted); }
.rr-v { font: 600 14.5px var(--font-mono); color: var(--amber); }

/* JS-enhanced states: rows hidden until "returned" by the query */
.js .result-row {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.js .result-row.shown { opacity: 1; transform: none; }

.console-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.03em;
}
.js .console-status { opacity: 0; transition: opacity 0.5s ease; }
.js .console-status.shown { opacity: 1; }

.ok-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--green);
	flex: none;
}

/* -------------------------------------------------------------- metrics */
.metrics-section { padding-top: 40px; }

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

.metric-card {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 22px 20px;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.metric-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--cyan), var(--amber));
	opacity: 0.75;
}
.metric-card:hover { transform: translateY(-3px); border-color: rgba(83, 221, 240, 0.32); }

.metric-num {
	font-size: clamp(1.7rem, 2.6vw, 2.15rem);
	font-weight: 600;
	color: var(--text);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.metric-label {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.4;
}

.metric-cap {
	font-size: 11.5px;
	color: var(--muted);
	margin: 0;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------------------- approach */
.approach-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.approach-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 26px 22px;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.approach-card:hover {
	transform: translateY(-4px);
	border-color: rgba(83, 221, 240, 0.35);
	box-shadow: 0 22px 54px -24px rgba(0, 0, 0, 0.65);
}

.fn {
	font-size: 12px;
	color: var(--muted);
	margin: 0 0 16px;
	letter-spacing: 0.02em;
}
.fn-name { color: var(--cyan); }

.approach-card h3 {
	font-size: 1.22rem;
	font-weight: 600;
	margin-bottom: 10px;
}
.approach-card p:not(.fn):not(.proof) {
	color: var(--muted);
	font-size: 15px;
	margin-bottom: 20px;
}

.proof {
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
	font-size: 12px;
	color: var(--amber-soft);
	letter-spacing: 0.02em;
	line-height: 1.7;
}

/* ----------------------------------------------------------- experience */
.xp-timeline { max-width: 860px; }

.xp-item {
	position: relative;
	padding: 0 0 56px 36px;
	border-left: 1px solid var(--line);
}
.xp-item:last-child { padding-bottom: 8px; }

.xp-item::before {
	content: "";
	position: absolute;
	left: -6.5px;
	top: 7px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--cyan);
}
.xp-item.is-current::before {
	border-color: var(--green);
	box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.4);
	animation: pulse 2.2s ease-out infinite;
}

.xp-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.xp-role {
	font-size: 1.28rem;
	font-weight: 600;
	margin: 0 0 2px;
}
.xp-org { color: var(--cyan); font-weight: 600; margin: 0; font-size: 15px; }
.xp-dates { color: var(--muted); font-size: 12.5px; margin: 0; letter-spacing: 0.04em; }

.xp-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}
.xp-list li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 15.5px;
}
.xp-list li::before {
	content: "▸";
	position: absolute;
	left: 0;
	color: var(--cyan);
	font-size: 13px;
	top: 2px;
}
.xp-list strong { color: var(--amber-soft); font-weight: 600; }

.xp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* ---------------------------------------------------------------- stack */
.schema-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.schema {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.25s ease;
}
.schema:hover { border-color: rgba(83, 221, 240, 0.3); }

.schema-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--text);
	letter-spacing: 0.03em;
	background: rgba(148, 163, 184, 0.03);
}
.schema-kw {
	color: var(--cyan);
	border: 1px solid var(--cyan-dim);
	border-radius: 4px;
	padding: 2px 7px;
	font-size: 10px;
	letter-spacing: 0.14em;
}

.schema-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ------------------------------------------------------------- projects */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.project-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 26px 24px 22px;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
	transform: translateY(-4px);
	border-color: rgba(83, 221, 240, 0.4);
	box-shadow:
		0 22px 56px -22px rgba(0, 0, 0, 0.65),
		0 0 44px -20px rgba(83, 221, 240, 0.28);
}

.pc-thumb {
	margin: -26px -24px 8px;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
	border-radius: 13px 13px 0 0;
}
.pc-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.project-card:hover .pc-thumb img { transform: scale(1.035); }

.pc-top { margin: 0; }
.pc-stack {
	font-size: 11.5px;
	color: var(--cyan);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pc-title { font-size: 1.16rem; font-weight: 600; margin: 0; }
.pc-title a { color: var(--text); }
.pc-title a:hover { color: var(--cyan); text-decoration: none; }

.pc-desc {
	color: var(--muted);
	font-size: 14.5px;
	margin: 0;
	flex-grow: 1;
}

.pc-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin: 6px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
}
.pc-result { font-size: 11.5px; color: var(--amber-soft); letter-spacing: 0.02em; }
.pc-arrow {
	color: var(--cyan);
	transition: transform 0.25s ease;
	font-size: 15px;
}
.project-card:hover .pc-arrow { transform: translateX(5px); }

/* -------------------------------------------------------------- contact */
.contact-section {
	padding-bottom: 120px;
}
.contact-inner {
	max-width: 720px;
	text-align: center;
}
.contact-inner .eyebrow { margin-bottom: 20px; }
.contact-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
.contact-inner .section-sub { margin-inline: auto; }

.contact-ctas {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 34px 0 26px;
}

.contact-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.03em;
	margin: 0;
}

.sep { opacity: 0.45; }

/* --------------------------------------------------------------- footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 34px 0;
	background: rgba(7, 11, 20, 0.6);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-status {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	color: var(--muted);
	margin: 0;
	letter-spacing: 0.03em;
}
.footer-status .ok { color: var(--green); }

.footer-links {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	font-size: 12.5px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }

/* ---------------------------------------------------- inner page frames */
.page-hero {
	padding: clamp(56px, 8vh, 96px) 0 12px;
}
.page-title {
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	font-weight: 700;
	margin-bottom: 14px;
}
.crumb { margin: 0 0 22px; font-size: 12.5px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--cyan); text-decoration: none; }

.page-hero--project .project-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 22px;
}

.project-meta {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	padding: 18px 20px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 8px;
}
.project-result { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.project-result-label { font-size: 12px; color: var(--muted); }
.project-result-value { font-size: 14px; color: var(--amber); font-weight: 600; }

.project-figure {
	margin: 0 0 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.entry-back { margin-top: 44px; font-size: 13px; }

/* --------------------------------------------------------- entry content */
.entry-content { font-size: 16.5px; color: #c9d4e4; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content li::marker { color: var(--cyan); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--amber);
	color: var(--muted);
	font-style: italic;
}
.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: rgba(83, 221, 240, 0.08);
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 2px 6px;
}
.entry-content pre {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 18px 20px;
	overflow-x: auto;
	font: 400 13.5px/1.7 var(--font-mono);
}
.entry-content pre code { background: none; border: none; padding: 0; }

/* ------------------------------------------------------- lists & states */
.list-item {
	padding: 26px 0;
	border-bottom: 1px solid var(--line-soft);
}
.list-date { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.list-title { font-size: 1.3rem; margin: 0 0 8px; }
.list-title a { color: var(--text); }
.list-title a:hover { color: var(--cyan); text-decoration: none; }

.empty-state { text-align: center; padding: 64px 0; }
.empty-code { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.empty-state h2 { font-size: 1.5rem; }
.empty-state .section-sub { margin-inline: auto; }

.pagination { margin-top: 40px; font-size: 13px; }
.pagination .nav-links {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}
.pagination a, .pagination .current {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--muted);
}
.pagination a:hover { border-color: var(--cyan-dim); color: var(--text); text-decoration: none; }
.pagination .current { border-color: var(--cyan-dim); color: var(--cyan); }

/* -------------------------------------------------------------- reveals */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

.js .metrics-grid  .reveal:nth-child(2),
.js .approach-grid .reveal:nth-child(2),
.js .projects-grid .reveal:nth-child(2),
.js .schema-grid   .reveal:nth-child(2) { transition-delay: 0.08s; }

.js .metrics-grid  .reveal:nth-child(3),
.js .approach-grid .reveal:nth-child(3),
.js .projects-grid .reveal:nth-child(3),
.js .schema-grid   .reveal:nth-child(3) { transition-delay: 0.16s; }

.js .metrics-grid  .reveal:nth-child(4),
.js .schema-grid   .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1020px) {
	.hero-grid { grid-template-columns: 1fr; gap: 48px; }
	.console { max-width: 640px; }
	.metrics-grid { grid-template-columns: repeat(2, 1fr); }
	.approach-grid { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(7, 11, 20, 0.97);
		border-bottom: 1px solid var(--line);
		padding: 10px 24px 22px;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	}
	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a {
		display: block;
		padding: 14px 2px;
		font-size: 14.5px;
		border-bottom: 1px solid var(--line-soft);
	}
	.nav-list a::after { display: none; }

	.status-pill { margin-top: 16px; justify-content: center; }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.container { width: calc(100% - 40px); }
	.section { padding: 72px 0; }
	.metrics-grid { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: 1fr; }
	.schema-grid { grid-template-columns: 1fr; }
	.xp-head { flex-direction: column; gap: 4px; }
	.console-code { font-size: 12.5px; }
	.hero { padding-top: 48px; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
	.js .result-row { opacity: 1; transform: none; }
	.js .console-status { opacity: 1; }
	.console-caret { display: none; }
}
