:root {
	--bg: #11120d;
	--bg-deep: #090a07;
	--surface: #1a1d16;
	--surface-strong: #23271f;
	--surface-soft: #f2efe5;
	--text: #f7f3ea;
	--text-muted: #c8c1b3;
	--text-dark: #151711;
	--line: rgba(247, 243, 234, 0.14);
	--line-strong: rgba(247, 243, 234, 0.24);
	--accent: #db4626;
	--accent-warm: #f47823;
	--blue: #5cc0eb;
	--green: #9bc53d;
	--yellow: #fce74c;
	--max-width: 1120px;
	--radius: 8px;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	background:
		linear-gradient(180deg, rgba(17, 18, 13, 0.96), rgba(9, 10, 7, 0.98)),
		repeating-linear-gradient(
			45deg,
			rgba(255, 255, 255, 0.025) 0,
			rgba(255, 255, 255, 0.025) 1px,
			transparent 1px,
			transparent 28px
		);
	color: var(--text);
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	display: flex;
	flex-direction: column;
	line-height: 1.55;
	letter-spacing: 0;
}

body.menu-open {
	overflow: hidden;
}

body.lightbox-open {
	overflow: hidden;
}

main {
	flex: 1 0 auto;
}

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

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

a:hover {
	color: var(--accent-warm);
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 4px;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 20;
	transform: translateY(-150%);
	border-radius: var(--radius);
	background: var(--yellow);
	color: var(--text-dark);
	font-weight: 800;
	padding: 0.65rem 0.9rem;
}

.skip-link:focus {
	transform: translateY(0);
}

.container {
	width: min(100% - 2rem, var(--max-width));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--line);
	background: rgba(17, 18, 13, 0.9);
	backdrop-filter: blur(16px);
}

.site-nav {
	min-height: 4.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.brand-logo {
	width: 12.5rem;
	max-height: 3.1rem;
	object-fit: contain;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.nav-links a {
	border-radius: var(--radius);
	color: var(--text-muted);
	font-size: 0.95rem;
	font-weight: 750;
	padding: 0.65rem 0.85rem;
	transition:
		background 160ms ease,
		color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
	text-decoration: none;
}

.nav-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	place-items: center;
}

.nav-toggle-bars {
	display: grid;
	gap: 0.26rem;
}

.nav-toggle-bars span {
	display: block;
	width: 1.1rem;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.hero {
	border-bottom: 1px solid var(--line);
	padding: 5rem 0 4rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
	gap: 3rem;
	align-items: center;
}

.eyebrow {
	margin: 0 0 0.85rem;
	color: var(--accent-warm);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
	max-width: 13ch;
	margin: 0;
	color: var(--text);
	font-size: 4rem;
	line-height: 0.98;
	letter-spacing: 0;
}

.hero-lede {
	max-width: 42rem;
	margin: 1.25rem 0 0;
	color: var(--text-muted);
	font-size: 1.18rem;
}

.hero-actions,
.section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.7rem;
}

.button {
	display: inline-flex;
	min-height: 2.85rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 0.72rem 1rem;
	color: var(--text);
	font-size: 0.95rem;
	font-weight: 850;
	transition:
		transform 160ms ease,
		border-color 160ms ease,
		background 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
	color: var(--text);
	text-decoration: none;
}

.button-primary {
	border-color: var(--accent-warm);
	background: var(--accent-warm);
	color: var(--text-dark);
}

.button-primary:hover {
	border-color: #f6934f;
	background: #f6934f;
	color: var(--text-dark);
}

.button-secondary {
	background: rgba(255, 255, 255, 0.06);
}

.button-tertiary {
	border-color: transparent;
	padding-inline: 0;
	color: var(--text);
}

.hero-visual {
	position: relative;
	min-height: 29rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(92, 192, 235, 0.1), transparent 36%),
		linear-gradient(315deg, rgba(244, 120, 35, 0.16), transparent 40%),
		var(--surface);
	box-shadow: var(--shadow);
}

.hero-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			transparent 0 49%,
			rgba(255, 255, 255, 0.05) 49% 51%,
			transparent 51%
		),
		linear-gradient(
			0deg,
			transparent 0 49%,
			rgba(255, 255, 255, 0.05) 49% 51%,
			transparent 51%
		);
	background-size: 5.5rem 5.5rem;
	opacity: 0.28;
}

.hero-mark {
	position: absolute;
	top: 2rem;
	left: 2rem;
	width: 11rem;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero-stats {
	position: absolute;
	right: 2rem;
	bottom: 2rem;
	left: 2rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(9, 10, 7, 0.74);
	backdrop-filter: blur(14px);
}

.hero-stat {
	min-width: 0;
	padding: 1rem;
}

.hero-stat + .hero-stat {
	border-left: 1px solid var(--line);
}

.hero-stat strong {
	display: block;
	color: var(--text);
	font-size: 1.65rem;
	line-height: 1;
}

.hero-stat span {
	display: block;
	margin-top: 0.4rem;
	color: var(--text-muted);
	font-size: 0.84rem;
}

.hero-badges {
	position: absolute;
	right: 2rem;
	top: 2.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.hero-badges img {
	width: 5.4rem;
	border-radius: 50%;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.section {
	padding: 4.5rem 0;
}

.section-muted {
	border-block: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.035);
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(16rem, 0.5fr);
	gap: 2rem;
	align-items: end;
	margin-bottom: 2rem;
}

.section-heading h2,
.article-shell h1 {
	margin: 0;
	color: var(--text);
	font-size: 2.35rem;
	line-height: 1.1;
}

.section-heading p:not(.eyebrow) {
	margin: 0;
	color: var(--text-muted);
}

.section-heading-action {
	justify-self: end;
}

.action-grid,
.article-grid,
.documents-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.action-card,
.article-card,
.document-card,
.badge-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition:
		transform 160ms ease,
		border-color 160ms ease,
		background 160ms ease;
}

.action-card:hover,
.article-card:hover,
.document-card:hover,
.badge-card:hover {
	transform: translateY(-2px);
	border-color: rgba(244, 120, 35, 0.58);
	background: var(--surface-strong);
	text-decoration: none;
}

.action-card,
.article-card,
.document-card {
	min-height: 100%;
	padding: 1.1rem;
}

.action-card-kicker,
.document-type,
.badge-code {
	color: var(--accent-warm);
	font-size: 0.74rem;
	font-weight: 850;
	text-transform: uppercase;
}

.action-card h3,
.article-card h3,
.document-card h3,
.badge-card h3 {
	margin: 0.45rem 0 0;
	color: var(--text);
	font-size: 1.12rem;
	line-height: 1.2;
}

.action-card p,
.article-card p,
.document-card p,
.badge-card p {
	margin: 0.7rem 0 0;
	color: var(--text-muted);
	font-size: 0.96rem;
}

.article-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 14rem;
}

.article-card-link {
	margin-top: 1rem;
	color: var(--accent-warm);
	font-size: 0.9rem;
	font-weight: 850;
}

.article-meta {
	display: block;
	margin-top: 0.65rem;
	color: var(--text-muted);
	font-size: 0.84rem;
	font-weight: 750;
}

.article-status {
	grid-column: 1 / -1;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text-muted);
	padding: 1rem;
}

.skeleton-card {
	min-height: 14rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.04),
			rgba(255, 255, 255, 0.1),
			rgba(255, 255, 255, 0.04)
		),
		var(--surface);
	background-size: 220% 100%;
	animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
	0% {
		background-position: 100% 0;
	}

	100% {
		background-position: -100% 0;
	}
}

.split-section {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
	gap: 3rem;
	align-items: start;
}

.feature-list {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.feature-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	border-top: 1px solid var(--line);
	padding-top: 0.85rem;
	color: var(--text-muted);
}

.feature-dot {
	width: 0.7rem;
	height: 0.7rem;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--green);
}

.feature-list li:nth-child(2) .feature-dot {
	background: var(--blue);
}

.feature-list li:nth-child(3) .feature-dot {
	background: var(--yellow);
}

.feature-list li:nth-child(4) .feature-dot {
	background: var(--accent-warm);
}

.badge-preview {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: 2rem;
	align-items: center;
}

.badge-preview-images {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.85rem;
}

.badge-preview-images img {
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

.page-hero {
	border-bottom: 1px solid var(--line);
	padding: 4rem 0 3rem;
}

.page-hero p {
	max-width: 44rem;
	margin: 1rem 0 0;
	color: var(--text-muted);
	font-size: 1.08rem;
}

.page-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.badge-level {
	padding: 3rem 0;
	border-bottom: 1px solid var(--line);
}

.badge-level:last-child {
	border-bottom: 0;
}

.badge-level-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.badge-level h2 {
	margin: 0;
	color: var(--text);
	font-size: 1.9rem;
}

.badge-count {
	color: var(--text-muted);
	font-size: 0.92rem;
}

.badge-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.badge-card {
	padding: 1rem;
}

.badge-card img {
	width: 8.5rem;
	margin-inline: auto;
	border-radius: 50%;
}

.badge-card h3 {
	min-height: 3rem;
}

.documents-grid {
	grid-template-columns: repeat(2, 1fr);
}

.document-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
}

.document-icon {
	display: inline-grid;
	width: 3.25rem;
	height: 3.25rem;
	place-items: center;
	border: 1px solid rgba(244, 120, 35, 0.45);
	border-radius: var(--radius);
	background: rgba(244, 120, 35, 0.12);
	color: var(--accent-warm);
	font-size: 0.8rem;
	font-weight: 900;
}

.article-page {
	padding: 4rem 0;
}

.article-shell {
	width: min(100% - 2rem, 760px);
	margin-inline: auto;
}

.article-shell h1 {
	font-size: 3rem;
}

.article-shell h2,
.article-shell h3 {
	color: var(--text);
	margin-top: 2rem;
}

.article-shell .article-meta {
	margin: 0.9rem 0 0;
	color: var(--text-muted);
	font-size: 0.95rem;
	font-weight: 750;
}

.article-shell p,
.article-shell li {
	color: var(--text-muted);
	font-size: 1.05rem;
}

.article-shell a {
	color: var(--accent-warm);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.article-shell img {
	width: min(100%, 44rem);
	margin: 2rem 0;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.article-media {
	margin: 2rem 0;
}

.article-media a {
	display: block;
	cursor: zoom-in;
	text-decoration: none;
}

.article-media img,
.article-media video {
	width: min(100%, 44rem);
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.article-media figcaption {
	margin-top: 0.5rem;
	color: var(--text-muted);
	font-size: 0.88rem;
}

.article-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.65rem;
	margin: 2rem 0;
}

.article-gallery a {
	display: block;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	cursor: zoom-in;
	text-decoration: none;
}

.article-gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	border: 0;
	border-radius: 0;
	transition: transform 180ms ease;
}

.article-gallery a:hover img {
	transform: scale(1.035);
}

.embed-frame {
	margin: 2rem 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
}

.embed-frame iframe {
	display: block;
	width: 100%;
	min-height: 28rem;
	border: 0;
}

.embed-frame iframe[src*="youtube"],
.embed-frame iframe[src*="youtu.be"] {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

.embed-frame iframe[src*="copilotstudio"] {
	min-height: 42rem;
}

.article-file-link {
	margin: 1.5rem 0;
}

.payment-widget {
	margin: 1.5rem 0;
}

.payment-widget stripe-buy-button {
	display: block;
}

.article-description {
	margin: 1rem 0 2rem;
	color: var(--text-muted);
	font-size: 1.16rem;
}

.article-content {
	border-top: 1px solid var(--line);
	padding-top: 1.5rem;
}

.image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	justify-items: center;
	background: rgba(0, 0, 0, 0.86);
	padding: 1.25rem;
}

.image-lightbox[hidden] {
	display: none;
}

.image-lightbox-figure {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	max-width: min(100%, 78rem);
	margin: 0;
}

.image-lightbox-figure img {
	max-width: min(100%, 78rem);
	max-height: calc(100vh - 8rem);
	border-radius: var(--radius);
	object-fit: contain;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.image-lightbox-figure figcaption {
	min-height: 1.4rem;
	color: var(--text-muted);
	font-size: 0.9rem;
	text-align: center;
}

.image-lightbox-close,
.image-lightbox-nav {
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: rgba(17, 18, 13, 0.9);
	color: var(--text);
	cursor: pointer;
}

.image-lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.8rem;
	height: 2.8rem;
	font-size: 1.7rem;
	line-height: 1;
}

.image-lightbox-nav {
	width: 3rem;
	height: 4rem;
	font-size: 2.4rem;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
	border-color: rgba(244, 120, 35, 0.58);
	background: var(--surface-strong);
}

.news-controls {
	display: grid;
	grid-template-columns: minmax(12rem, 1.5fr) repeat(
			4,
			minmax(8rem, 1fr)
		) auto;
	gap: 0.85rem;
	align-items: end;
	margin-bottom: 1rem;
}

.news-controls label {
	display: grid;
	gap: 0.35rem;
	color: var(--text-muted);
	font-size: 0.82rem;
	font-weight: 800;
}

.news-controls input,
.news-controls select {
	min-height: 2.85rem;
	width: 100%;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	font: inherit;
	padding: 0.62rem 0.75rem;
}

.news-controls input[type="date"] {
	color-scheme: dark;
}

.news-controls input::placeholder {
	color: rgba(247, 243, 234, 0.44);
}

.news-controls option {
	color: var(--text-dark);
}

.archive-count {
	min-height: 1.5rem;
	margin: 0 0 1rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.archive-grid {
	grid-template-columns: repeat(3, 1fr);
}

.site-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--line);
	background: var(--bg-deep);
	padding: 2rem 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 2rem;
	align-items: center;
}

.footer-meta p {
	margin: 0.15rem 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.footer-contact {
	color: var(--text);
	font-weight: 850;
}

.social-links {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
}

.social-links a {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text-muted);
	padding: 0.55rem 0.7rem;
	font-size: 0.9rem;
	font-weight: 800;
}

.social-links a:hover {
	border-color: rgba(244, 120, 35, 0.58);
	color: var(--text);
	text-decoration: none;
}

@media (max-width: 980px) {
	.hero-grid,
	.split-section,
	.badge-preview,
	.section-heading,
	.news-controls {
		grid-template-columns: 1fr;
	}

	.section-heading-action {
		justify-self: start;
	}

	.action-grid,
	.article-grid,
	.archive-grid,
	.article-gallery,
	.badge-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero h1,
	.page-hero h1 {
		font-size: 3.2rem;
	}
}

@media (max-width: 760px) {
	body.menu-open {
		overflow: hidden;
	}

	.site-nav {
		min-height: 4.25rem;
	}

	.brand-logo {
		width: 10.5rem;
	}

	.nav-toggle {
		display: grid;
	}

	.nav-links {
		position: fixed;
		inset: 4.25rem 1rem auto 1rem;
		display: none;
		flex-direction: column;
		align-items: stretch;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: rgba(17, 18, 13, 0.98);
		box-shadow: var(--shadow);
		padding: 0.6rem;
	}

	.nav-links.is-open {
		display: flex;
	}

	.nav-links a {
		padding: 0.85rem;
	}

	.hero,
	.section,
	.page-hero {
		padding-block: 3rem;
	}

	.hero h1,
	.page-hero h1,
	.article-shell h1 {
		font-size: 2.55rem;
	}

	.hero-visual {
		min-height: 24rem;
	}

	.hero-mark {
		width: 8.5rem;
	}

	.hero-badges {
		right: 1rem;
		top: 1.5rem;
	}

	.hero-badges img {
		width: 4.25rem;
	}

	.hero-stats {
		right: 1rem;
		bottom: 1rem;
		left: 1rem;
		grid-template-columns: 1fr;
	}

	.hero-stat + .hero-stat {
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.action-grid,
	.article-grid,
	.archive-grid,
	.documents-grid,
	.badge-grid,
	.badge-preview-images,
	.article-gallery {
		grid-template-columns: 1fr;
	}

	.image-lightbox {
		grid-template-columns: 1fr;
		grid-template-areas:
			"image"
			"controls";
	}

	.image-lightbox-figure {
		grid-area: image;
	}

	.image-lightbox-nav {
		position: fixed;
		bottom: 1rem;
		width: 3.5rem;
		height: 3.5rem;
	}

	.image-lightbox-prev {
		left: 1rem;
	}

	.image-lightbox-next {
		right: 1rem;
	}

	.document-card {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.social-links {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
