.stats-standalone {
    position: relative;
    overflow: hidden;
}

.stats-standalone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 196, 86, 0.14), transparent 42%);
    pointer-events: none;
}

.stats-grid {
    position: relative;
    z-index: 1;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 214, 102, 0.12) 45%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 196, 86, 0.45);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 196, 86, 0.16);
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    color: #f8d36b;
    letter-spacing: -0.02em;
}

.stat-counter,
.stat-suffix {
    display: inline-block;
}

.stat-label {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #e8ebf2;
    opacity: 0.94;
}

@media (max-width: 640px) {
    .stat-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.skill-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 32px 24px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 196, 86, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 196, 86, 0.5), rgba(255, 196, 86, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 196, 86, 0.6);
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255, 196, 86, 0.04));
    box-shadow: 0 32px 80px rgba(255, 196, 86, 0.15), 
                0 0 40px rgba(255, 196, 86, 0.1),
                inset 0 1px 0 rgba(255,255,255,0.1);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 0 rgba(255, 196, 86, 0));
}

.skill-card:hover img {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(255, 196, 86, 0.3));
}

.skill-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    transition: all 0.4s ease;
}

.skill-card:hover h3 {
    color: rgba(255, 196, 86, 0.95);
    text-shadow: 0 0 20px rgba(255, 196, 86, 0.3);
}

.skill-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.4s ease;
}

.skill-card:hover p {
    color: rgba(255, 255, 255, 0.92);
}

.timeline-container {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 0;
}

.timeline-line {
    position: absolute;
    right: 29px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ff6b35 0%, #4a90e2 28%, #f9d56e 56%, #1fc9a9 80%, #3178c6 100%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.timeline-card {
    flex: 1;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.timeline-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.timeline-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.timeline-card-highlight {
    border-color: rgba(255, 107, 53, 0.35);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(255,255,255,0.04));
}

.timeline-badge {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #0a0e27;
    background: linear-gradient(135deg, #4a90e2 0%, #74b4ff 100%);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.35);
    font-size: 26px;
}

.timeline-badge-highlight {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9966 100%);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.35);
    animation: pulse 2s infinite;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-card {
        padding: 18px 20px;
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .skill-card {
        min-height: 180px;
        padding: 22px 16px;
    }

    .timeline-container {
        padding-right: 4px;
    }

    .timeline-line {
        right: 24px;
    }

    .timeline-badge {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55), 0 0 0 2px rgba(255, 107, 53, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0), 0 0 0 2px rgba(255, 107, 53, 0.35);
    }
}

/* Fixed frosted glass header */
:root {
    --site-header-height: 90px;
    --site-header-bg: rgba(10, 14, 24, 0.45);
    --site-header-border: rgba(255,255,255,0.04);
}

#site-header,
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    width: 100%;
    height: var(--site-header-height);
    z-index: 9999;
    display: block;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-bottom: 1px solid var(--site-header-border);
    box-shadow: 0 6px 30px rgba(2,6,23,0.6);
    transition: height 220ms ease, background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

/* Ensure page content is offset so header doesn't overlap */
main,
body > .mx-auto,
.site-content {
    padding-top: var(--site-header-height);
}

@media (max-width: 1024px) {
    :root { --site-header-height: 80px; }
}

@media (max-width: 640px) {
    :root { --site-header-height: 72px; }
    #site-header,
    .site-header {
        height: var(--site-header-height);
        padding-inline: 12px;
    }
}

/* Scrolled (compact) header state applied via JS */
#site-header.scrolled,
.site-header.scrolled {
    height: calc(var(--site-header-height) - 18px);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border-bottom-color: rgba(255,255,255,0.06);
    box-shadow: 0 10px 40px rgba(2,6,23,0.72);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}



		:root {
			color-scheme: dark;
			--bg: #070b11;
			--bg-soft: #0d131b;
			--panel: rgba(13, 19, 27, 0.76);
			--panel-strong: rgba(17, 24, 34, 0.88);
			--line: rgba(255, 255, 255, 0.08);
			--line-strong: rgba(255, 255, 255, 0.14);
			--text: rgba(255, 255, 255, 0.96);
			--muted: rgba(232, 236, 245, 0.74);
			--muted-soft: rgba(232, 236, 245, 0.58);
			--gold: #f4c96b;
			--gold-strong: #d9a93f;
			--emerald: #7dd3b0;
			--rose: #ee9aa2;
			--shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
			--radius-xl: 34px;
			--radius-lg: 24px;
			--radius-md: 18px;
			--max: 1180px;
		}

		* {
			box-sizing: border-box;
		}

		html {
			scroll-behavior: smooth;
		}

		body {
			margin: 0;
			min-height: 100vh;
			font-family: "Dana", system-ui, sans-serif;
			background:
				radial-gradient(circle at 18% 14%, rgba(244, 201, 107, 0.16), transparent 28%),
				radial-gradient(circle at 85% 10%, rgba(125, 211, 176, 0.10), transparent 22%),
				radial-gradient(circle at 60% 82%, rgba(238, 154, 162, 0.08), transparent 20%),
				linear-gradient(180deg, #04070b 0%, #0a1017 46%, #06090d 100%);
			color: var(--text);
			-webkit-font-smoothing: antialiased;
			text-rendering: optimizeLegibility;
		}

		body::before {
			content: "";
			position: fixed;
			inset: 0;
			pointer-events: none;
			background-image:
				linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
				linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
			background-size: 72px 72px;
			mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
			opacity: 0.34;
		}

		a {
			color: inherit;
			text-decoration: none;
		}

		img {
			display: block;
			max-width: 100%;
		}

		.article-page {
			position: relative;
			isolation: isolate;
			padding: 28px 20px 56px;
			overflow-x: hidden;
		}

		.article-page__shell {
			position: relative;
			z-index: 1;
			width: min(var(--max), calc(100% - 24px));
			margin: 0 auto;
		}

		.article-page__topline {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: 16px;
			margin-bottom: 22px;
			padding: 16px 18px;
			border: 1px solid var(--line);
			border-radius: 999px;
			background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
			backdrop-filter: blur(18px);
			box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
		}

		.article-page__brand {
			display: flex;
			flex-direction: column;
			gap: 4px;
		}

		.article-page__eyebrow {
			margin: 0;
			font-size: 12px;
			letter-spacing: 0.28em;
			color: var(--gold);
			text-transform: uppercase;
			font-weight: 700;
		}

		.article-page__brand-name {
			margin: 0;
			font-family: "Morabba", serif;
			font-size: 18px;
			font-weight: 700;
			color: rgba(255, 255, 255, 0.94);
		}

		.article-page__meta-pill {
			display: inline-flex;
			align-items: center;
			gap: 10px;
			padding: 10px 14px;
			border-radius: 999px;
			border: 1px solid rgba(244, 201, 107, 0.22);
			background: rgba(244, 201, 107, 0.08);
			color: rgba(255, 242, 209, 0.92);
			font-size: 13px;
			font-weight: 700;
			white-space: normal;
			text-align: center;
		}

		.article-layout {
			display: grid;
			grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
			gap: 24px;
			align-items: start;
		}

		.article-main {
			min-width: 0;
		}

		.article-hero {
			position: relative;
			overflow: hidden;
			border: 1px solid rgba(255, 255, 255, 0.10);
			border-radius: var(--radius-xl);
			background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
			box-shadow: var(--shadow);
		}

		.article-hero::before {
			content: "";
			position: absolute;
			inset: 0;
			background:
				radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
				linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
			pointer-events: none;
			z-index: 1;
		}

		.article-hero__image {
			width: 100%;
			aspect-ratio: 16 / 9;
			object-fit: cover;
			object-position: center;
			transform: scale(1.01);
			filter: saturate(1.03) contrast(1.02);
		}

		.article-hero__overlay {
			position: absolute;
			inset: auto 0 0 0;
			z-index: 2;
			padding: 22px;
			background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 15, 0.44) 30%, rgba(6, 10, 15, 0.82) 100%);
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: flex-end;
			gap: 14px;
		}

		.article-hero__overlay-label {
			display: inline-flex;
			align-items: center;
			gap: 10px;
			padding: 10px 14px;
			border: 1px solid rgba(255, 255, 255, 0.12);
			border-radius: 999px;
			background: rgba(255, 255, 255, 0.07);
			backdrop-filter: blur(16px);
			font-size: 13px;
			color: rgba(255, 255, 255, 0.9);
		}

		.article-hero__overlay-label strong {
			color: var(--gold);
			font-weight: 700;
		}

		.article-hero__overlay-note {
			max-width: 340px;
			margin: 0;
			font-size: 13px;
			line-height: 1.9;
			color: rgba(255, 255, 255, 0.76);
		}

		.article-content {
			padding: 28px 0 0;
		}

		.article-title-block {
			display: grid;
			gap: 18px;
			margin-top: 24px;
			padding: 0 4px;
		}

		.article-title {
			margin: 0;
			font-family: "Morabba", serif;
			font-size: clamp(2.2rem, 4.8vw, 4.9rem);
			line-height: 1.14;
			letter-spacing: -0.04em;
			font-weight: 700;
			color: rgba(255, 255, 255, 0.98);
			text-wrap: balance;
		}

		.article-short-summary {
			max-width: 58ch;
			margin: 0;
			font-size: clamp(1rem, 1.2vw, 1.12rem);
			line-height: 2.1;
			color: var(--muted);
		}

		.article-meta-grid {
			display: grid;
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 14px;
			margin-top: 26px;
		}

		.meta-card,
		.sidebar-card,
		.article-body,
		.article-quote {
			border: 1px solid var(--line);
			border-radius: var(--radius-lg);
			background:
				linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
			box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
			backdrop-filter: blur(18px);
		}

		.meta-card {
			padding: 16px 16px 18px;
		}

		.meta-card__label {
			margin: 0 0 8px;
			font-size: 12px;
			color: var(--muted-soft);
			letter-spacing: 0.14em;
			text-transform: uppercase;
		}

		.meta-card__value {
			margin: 0;
			font-size: 15px;
			line-height: 1.8;
			color: var(--text);
			font-weight: 700;
		}

		.article-body {
			margin-top: 22px;
			padding: 24px;
		}

		.article-body__section-title {
			margin: 0 0 16px;
			font-family: "Morabba", serif;
			font-size: 22px;
			font-weight: 700;
			color: rgba(255, 255, 255, 0.96);
		}

		.article-prose {
			max-width: 70ch;
			display: grid;
			gap: 16px;
			font-size: 1.01rem;
			line-height: 2.15;
			color: var(--muted);
			overflow-wrap: anywhere;
			word-break: break-word;
		}

		.article-prose p,
		.article-prose ul,
		.article-prose ol,
		.article-prose li,
		.article-prose blockquote,
		.article-prose table,
		.article-prose pre {
			margin: 0;
			overflow-wrap: anywhere;
			word-break: break-word;
		}

		.article-prose img,
		.article-prose iframe,
		.article-prose video {
			display: block;
			max-width: 100%;
			height: auto;
			border-radius: 16px;
		}

		.article-quote {
			margin: 22px 0 0;
			padding: 20px 22px;
			border-right: 4px solid rgba(244, 201, 107, 0.78);
			background:
				linear-gradient(135deg, rgba(244, 201, 107, 0.12), rgba(255,255,255,0.03));
		}

		.article-quote p {
			margin: 0;
			font-size: 1rem;
			line-height: 2.05;
			color: rgba(255, 248, 229, 0.92);
		}

		.article-tag-row {
			display: flex;
			flex-wrap: wrap;
			gap: 10px;
			margin-top: 22px;
		}

		.tag-chip,
		.category-chip,
		.status-chip {
			display: inline-flex;
			align-items: center;
			gap: 8px;
			padding: 10px 14px;
			border-radius: 999px;
			border: 1px solid transparent;
			font-size: 13px;
			font-weight: 700;
			line-height: 1;
			white-space: nowrap;
		}

		.category-chip {
			border-color: rgba(125, 211, 176, 0.20);
			background: rgba(125, 211, 176, 0.10);
			color: #d8fff0;
		}

		.status-chip {
			border-color: rgba(244, 201, 107, 0.22);
			background: rgba(244, 201, 107, 0.10);
			color: #fff0c7;
		}

		.tag-chip {
			border-color: rgba(255, 255, 255, 0.10);
			background: rgba(255, 255, 255, 0.05);
			color: rgba(255, 255, 255, 0.82);
			font-weight: 500;
		}

		.article-sidebar {
			position: sticky;
			top: 20px;
			display: grid;
			gap: 18px;
		}

		.sidebar-card {
			padding: 22px;
		}

		.sidebar-card__eyebrow {
			margin: 0 0 10px;
			font-size: 11px;
			letter-spacing: 0.3em;
			color: var(--gold);
			text-transform: uppercase;
			font-weight: 700;
		}

		.sidebar-card__title {
			margin: 0 0 14px;
			font-family: "Morabba", serif;
			font-size: 1.3rem;
			line-height: 1.4;
			color: rgba(255, 255, 255, 0.97);
		}

		.sidebar-list {
			display: grid;
			gap: 12px;
			margin: 0;
			padding: 0;
			list-style: none;
		}

		.sidebar-list li {
			display: flex;
			justify-content: space-between;
			gap: 14px;
			padding: 12px 14px;
			border-radius: 16px;
			border: 1px solid rgba(255, 255, 255, 0.06);
			background: rgba(255, 255, 255, 0.03);
			color: var(--muted);
			font-size: 14px;
			line-height: 1.8;
		}

		.sidebar-list strong {
			color: rgba(255, 255, 255, 0.94);
			font-weight: 700;
			white-space: nowrap;
		}

		.sidebar-tags {
			display: flex;
			flex-wrap: wrap;
			gap: 10px;
		}

		.sidebar-note {
			margin: 0;
			font-size: 14px;
			line-height: 2;
			color: var(--muted);
		}

		.article-footer {
			margin-top: 22px;
			padding: 18px 4px 0;
			color: var(--muted-soft);
			font-size: 13px;
			line-height: 1.9;
		}

		@media (max-width: 1080px) {
			.article-layout {
				grid-template-columns: 1fr;
			}

			.article-sidebar {
				position: static;
			}
		}

		@media (max-width: 840px) {
			.article-page {
				padding: 16px 12px 34px;
			}

			.article-page__shell {
				width: min(100%, calc(100% - 4px));
			}

			.article-page__topline {
				border-radius: 24px;
				padding: 14px 16px;
			}

			.article-meta-grid {
				grid-template-columns: 1fr;
			}

			.article-body {
				padding: 20px 18px;
			}

			.sidebar-card {
				padding: 18px;
			}

			.sidebar-list li {
				flex-direction: column;
				align-items: flex-start;
			}

			.sidebar-list strong {
				white-space: normal;
			}

			.article-hero__overlay {
				padding: 16px;
			}

			.article-hero__overlay-note {
				max-width: 100%;
			}
		}

		@media (max-width: 560px) {
			.article-page__topline {
				flex-direction: column;
				align-items: flex-start;
				border-radius: 22px;
				gap: 12px;
			}

			.article-page__meta-pill {
				width: 100%;
				justify-content: center;
			}

			.article-title-block {
				margin-top: 16px;
				padding: 0;
			}

			.article-title {
				font-size: clamp(1.95rem, 11vw, 2.95rem);
			}

			.article-short-summary,
			.article-prose,
			.sidebar-note {
				font-size: 0.98rem;
				line-height: 2.05;
			}

			.article-hero {
				border-radius: 24px;
			}

			.article-hero__image {
				aspect-ratio: 4 / 5;
			}

			.article-hero__overlay {
				align-items: flex-start;
			}

			.article-hero__overlay-label,
			.article-page__meta-pill,
			.tag-chip,
			.category-chip,
			.status-chip {
				padding: 9px 12px;
				font-size: 12px;
			}

			.tag-chip,
			.category-chip,
			.status-chip {
				justify-content: center;
				text-align: center;
				white-space: normal;
			}

			.article-body__section-title {
				font-size: 20px;
			}
		}