/* ==========================================================================
   Artha Solusi Indonesia — main stylesheet
   ========================================================================== */

:root {
	--navy-950: #040630;
	--navy-900: #0a1238;
	--navy-800: #0f1a47;
	--navy-700: #1a2d7a;
	--navy-600: #1d2858;
	--mint: #a6d5bd;
	--mint-strong: #c3e6d3;

	--font-heading: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--font-body: var(--font-heading);

	--container: 1200px;
	--gutter: 24px;
	--header-h: 80px;
	--admin-bar: 0px;
	--radius: 0px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--page-bg: #040630;
}

/* Colour themes. Dark is the default; `.is-dark` keeps a block dark (video
   hero, CTA band) even when the page is in light mode. */
:root,
.is-dark {
	--bg: #040630;
	--bg-alt: #0f1a47;
	--surface: rgba(237, 239, 248, 0.03);
	--card-bg: linear-gradient(160deg, #1a2d7a 0%, #0f1a47 60%);
	--text: #edeff8;
	--muted: rgba(237, 239, 248, 0.72);
	--heading: #fff;
	--accent: #a6d5bd;
	--title: #a6d5bd;
	--line: rgba(166, 213, 189, 0.18);
	--line-soft: rgba(237, 239, 248, 0.1);
	--line-strong: rgba(166, 213, 189, 0.45);
	--hover-bg: rgba(166, 213, 189, 0.07);
	--header-bg: rgba(4, 6, 48, 0.72);
	--header-bg-scrolled: rgba(4, 6, 48, 0.94);
	--shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
	--glow: rgba(26, 45, 122, 0.7);
	--surface-solid: #0c1540;
	--node-bg: #121c50;
	--halo: rgba(47, 79, 174, 0.55);
	--ring-1: rgba(166, 213, 189, 0.035);
	--ring-2: rgba(166, 213, 189, 0.065);
	--stage-bg: rgba(237, 239, 248, 0.025);
	--ill-1: #a6d5bd;
	--ill-2: #6fae90;
	--ill-soft: rgba(166, 213, 189, 0.2);
	color-scheme: dark;
}

:root[data-theme="light"] {
	--page-bg: #f7f8fc;
	--bg: #f7f8fc;
	--bg-alt: #edeff8;
	--surface: #fff;
	--card-bg: #fff;
	--text: #1d2858;
	--muted: #4b5476;
	--heading: #0f1a47;
	--accent: #1f7a55;
	--title: #1a2d7a;
	--line: rgba(15, 26, 71, 0.14);
	--line-soft: rgba(15, 26, 71, 0.08);
	--line-strong: rgba(31, 122, 85, 0.5);
	--hover-bg: rgba(31, 122, 85, 0.06);
	--header-bg: rgba(255, 255, 255, 0.95);
	--header-bg-scrolled: rgba(255, 255, 255, 0.96);
	--shadow: 0 20px 40px rgba(15, 26, 71, 0.12);
	--glow: rgba(26, 45, 122, 0.12);
	--surface-solid: #fff;
	--node-bg: #fff;
	--halo: rgba(26, 45, 122, 0.28);
	--ring-1: rgba(26, 45, 122, 0.03);
	--ring-2: rgba(26, 45, 122, 0.055);
	--stage-bg: rgba(26, 45, 122, 0.035);
	--ill-1: #1a2d7a;
	--ill-2: #1f7a55;
	--ill-soft: rgba(26, 45, 122, 0.14);
	color-scheme: light;
}

:root[data-theme="light"] .is-dark {
	color: var(--text);
}

/* Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.7;
	transition: background-color 0.3s ease, color 0.3s ease;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--heading);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: var(--heading);
}

p {
	margin: 0 0 1.1em;
}

address {
	font-style: normal;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--mint);
	color: var(--navy-950);
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container--narrow {
	max-width: calc(800px + var(--gutter) * 2);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

/* Typography helpers
   ========================================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.section-title {
	font-size: clamp(28px, 3.6vw, 44px);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--title);
}

.section-intro {
	font-size: clamp(17px, 1.6vw, 20px);
	color: var(--text);
	max-width: 720px;
}

.section-note {
	color: var(--muted);
	max-width: 720px;
	margin-bottom: 0;
}

.lead {
	font-size: clamp(18px, 1.8vw, 22px);
	line-height: 1.5;
	color: var(--heading);
}

/* Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.btn .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
	transform: translateX(4px);
}

.btn-primary {
	background: var(--mint);
	border-color: var(--mint);
	color: var(--navy-950);
}

.btn-primary:hover {
	background: var(--mint-strong);
	border-color: var(--mint-strong);
	color: var(--navy-950);
}

.btn-outline {
	background: transparent;
	color: var(--accent);
}

.btn-outline:hover {
	background: var(--hover-bg);
	color: var(--heading);
}

/* Header (sticky)
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	background: var(--header-bg-scrolled);
	border-bottom-color: var(--line);
	box-shadow: var(--shadow);
}

.admin-bar {
	--admin-bar: 32px;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--admin-bar: 46px;
	}

	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar {
		--admin-bar: 0px;
	}

	.admin-bar .site-header {
		top: 0;
	}
}

.header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 100%;
	gap: 24px;
}

.brand {
	display: block;
	justify-self: start;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 12px;
}

/* Two logo files; show the one that suits the active theme. */
.logo-for-light,
:root[data-theme="light"] .logo-for-dark {
	display: none;
}

:root[data-theme="light"] .logo-for-light {
	display: block;
}

.theme-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--heading);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.theme-toggle:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--hover-bg);
}

.theme-toggle .icon {
	width: 20px;
	height: 20px;
}

.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
	display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
	display: block;
}

.site-logo {
	height: 44px;
	width: auto;
	transition: height 0.3s var(--ease);
}

.is-scrolled .site-logo {
	height: 38px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	position: relative;
	display: block;
	padding: 10px 14px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text);
}

.nav-menu a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}

/* is-active: scroll spy on the homepage. The WP classes mark the Blog item
   on the blog, single posts and archives. */
.nav-menu a:hover,
.nav-menu .is-active > a,
.nav-menu .current-menu-item.menu-item-object-page > a,
.nav-menu .current_page_parent > a {
	color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu .is-active > a::after,
.nav-menu .current-menu-item.menu-item-object-page > a::after,
.nav-menu .current_page_parent > a::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle-bar {
	position: absolute;
	left: 11px;
	width: 20px;
	height: 2px;
	background: var(--heading);
	transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle-bar:nth-child(2) { top: 14px; }
.nav-toggle-bar:nth-child(3) { top: 20px; }
.nav-toggle-bar:nth-child(4) { top: 26px; }

.nav-open .nav-toggle-bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	.header-inner {
		grid-template-columns: 1fr auto;
	}

	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
	}

	.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 20px;
	}

	.nav-menu a {
		padding: 14px 0;
		border-bottom: 1px solid var(--line-soft);
	}

	.nav-menu a::after {
		display: none;
	}
}

/* Sections
   ========================================================================== */

.section {
	position: relative;
	padding: clamp(72px, 10vw, 128px) 0;
	scroll-margin-top: calc(var(--header-h) + var(--admin-bar));
}

.section--alt {
	background: var(--bg-alt);
}

.section-head {
	margin-bottom: clamp(40px, 5vw, 64px);
}

/* Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Pulled up under the translucent sticky header. */
	min-height: 100vh;
	min-height: 100svh;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + 72px) 0 120px;
	overflow: hidden;
	/* The poster image shows until the video plays (or if it can't). */
	background: var(--hero-image, none) center / cover no-repeat, var(--navy-950);
	color: var(--text);
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(4, 6, 48, 0.95) 0%, rgba(4, 6, 48, 0.8) 45%, rgba(15, 26, 71, 0.5) 100%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 160px;
	background: linear-gradient(to bottom, transparent, var(--page-bg));
	pointer-events: none;
}

/* In light mode the dark hero meets the light page with a clean edge. */
:root[data-theme="light"] .hero::after {
	content: none;
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 70%);
	opacity: 0.5;
}

.hero-inner {
	position: relative;
	z-index: 1;
}

.hero-title {
	font-size: clamp(40px, 7.4vw, 96px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--heading);
	margin-bottom: 28px;
}

.hero-title .accent {
	color: var(--mint);
}

.hero-lead {
	max-width: 680px;
	font-size: clamp(17px, 1.6vw, 20px);
	color: var(--muted);
	margin-bottom: 40px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 36px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--mint);
	animation: artha-bob 2.4s ease-in-out infinite;
	transition: none;
}

.hero-scroll .icon {
	width: 20px;
	height: 20px;
}

@keyframes artha-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); }
}

.hero--product {
	min-height: 0;
	padding-bottom: clamp(72px, 9vw, 112px);
	background: radial-gradient(ellipse at 85% 20%, var(--glow), transparent 60%), var(--bg);
}

.hero--product::after {
	content: none;
}

.hero--product .hero-title {
	font-size: clamp(44px, 8vw, 104px);
	margin-bottom: 12px;
	color: var(--title);
}

.hero-subtitle {
	font-family: var(--font-heading);
	font-size: clamp(18px, 2.2vw, 26px);
	color: var(--heading);
	margin-bottom: 24px;
}

.back-link {
	display: block;
	width: fit-content;
	margin-bottom: 32px;
	font-family: var(--font-heading);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* About
   ========================================================================== */

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.about-body {
	color: var(--muted);
	font-size: 17px;
}

.about-body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 860px) {
	.about-grid {
		grid-template-columns: 1fr;
	}
}

/* Services
   ========================================================================== */

.services {
	background: var(--bg-alt);
}

.service-list {
	display: grid;
	gap: clamp(56px, 8vw, 104px);
}

.service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.service:nth-child(even) .service-media {
	order: 2;
}

.service--no-media {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
}

.service-media {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	aspect-ratio: 4 / 3;
}

.service-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.service:hover .service-media img {
	transform: scale(1.04);
}

.service-media::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--line);
	border-radius: inherit;
	pointer-events: none;
}

.service-index {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 10px;
	background: rgba(4, 6, 48, 0.8);
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--mint);
	letter-spacing: 0.1em;
}

.service-icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--accent);
}

.service-icon .icon {
	width: 26px;
	height: 26px;
}

.service-title {
	font-size: clamp(22px, 2.3vw, 28px);
	font-weight: 500;
	color: var(--heading);
}

.service-lede {
	font-size: 17px;
	color: var(--muted);
}

.deliver-label {
	margin: 24px 0 12px;
	font-family: var(--font-heading);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.check-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.check-list li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-top: 1px solid var(--line-soft);
	font-size: 15px;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 18px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}

@media (max-width: 860px) {
	.service {
		grid-template-columns: 1fr;
	}

	.service:nth-child(even) .service-media {
		order: 0;
	}
}

/* Products
   ========================================================================== */

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(28px, 4vw, 48px);
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}

.product-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--mint);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
}

.product-card:hover {
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow);
}

.product-card:hover::before {
	transform: scaleX(1);
}

.product-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin-bottom: 12px;
}

.product-name {
	margin: 0;
	font-size: clamp(32px, 4vw, 48px);
	color: var(--title);
	letter-spacing: 0.02em;
}

.product-title {
	font-family: var(--font-heading);
	font-size: 17px;
	color: var(--heading);
}

.product-summary {
	color: var(--muted);
	flex-grow: 1;
	margin-bottom: 32px;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: var(--font-heading);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
}

.eyebrow .status-pill::before {
	content: none;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 0 rgba(166, 213, 189, 0.6);
	animation: artha-pulse 2s infinite;
}

@keyframes artha-pulse {
	0% { box-shadow: 0 0 0 0 rgba(166, 213, 189, 0.6); }
	70% { box-shadow: 0 0 0 8px rgba(166, 213, 189, 0); }
	100% { box-shadow: 0 0 0 0 rgba(166, 213, 189, 0); }
}

@media (max-width: 860px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
}

/* Sectors
   ========================================================================== */

.sectors {
	background: var(--bg-alt);
}

.sector-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.sector-list li {
	padding: 32px 24px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 500;
	color: var(--heading);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.sector-list li:hover {
	background: var(--hover-bg);
	color: var(--accent);
}

@media (max-width: 860px) {
	.sector-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.sector-list {
		grid-template-columns: 1fr;
	}
}

/* CTA band
   ========================================================================== */

.cta-band {
	padding: clamp(56px, 7vw, 88px) 0;
	background: var(--navy-700);
	background: linear-gradient(110deg, var(--navy-700), var(--navy-600));
}

.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.cta-text {
	margin: 0;
	max-width: 760px;
	font-family: var(--font-heading);
	font-size: clamp(20px, 2.4vw, 28px);
	line-height: 1.35;
	color: var(--heading);
}

.cta-text span {
	display: block;
	color: var(--accent);
}

@media (max-width: 860px) {
	.cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Product pages: shared blocks
   ========================================================================== */

.stat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.stat {
	padding: 28px;
	border-top: 2px solid var(--accent);
	background: var(--bg-alt);
}

.stat-value {
	margin-bottom: 8px;
	font-family: var(--font-heading);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 700;
	line-height: 1;
	color: var(--title);
}

.stat-label {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.two-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 56px);
	color: var(--muted);
	font-size: 17px;
}

.callout {
	padding-left: 24px;
	border-left: 2px solid var(--accent);
	color: var(--heading);
}

.card-grid {
	display: grid;
	gap: 24px;
}

.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
	padding: 32px 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 15px;
	transition: border-color 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease;
}

.card:hover {
	border-color: var(--line-strong);
	background: var(--hover-bg);
	transform: translateY(-3px);
}

.card p:last-child {
	margin-bottom: 0;
}

.card-title {
	font-size: 19px;
	font-weight: 500;
	color: var(--heading);
}

.card-index {
	display: block;
	margin-bottom: 16px;
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--accent);
	letter-spacing: 0.1em;
}

.card--pillar .card-index {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	opacity: 0.9;
}

.card-benefit {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
	color: var(--heading);
}

.card-benefit strong {
	color: var(--accent);
	font-weight: 600;
}

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

.spec-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.spec-row dt {
	font-family: var(--font-heading);
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.spec-row dd {
	margin: 0;
	color: var(--text);
}

.section--alt + .section-note,
.section .section-note.reveal {
	margin-top: 24px;
}

@media (max-width: 1024px) {
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.stat-grid,
	.two-col,
	.card-grid--2 {
		grid-template-columns: 1fr;
	}

	.spec-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

@media (max-width: 600px) {
	.card-grid--4 { grid-template-columns: 1fr; }
}

/* Footer / contact
   ========================================================================== */

.site-footer {
	padding-bottom: 0;
	background: var(--bg);
	border-top: 1px solid var(--line);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(40px, 6vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.footer-intro .lead {
	max-width: 560px;
	margin-bottom: 32px;
	color: var(--muted);
}

.site-logo--footer {
	height: 64px;
	margin-bottom: 32px;
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-list li {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--line-soft);
	color: var(--muted);
	word-break: break-word;
}

.contact-list .icon {
	margin-top: 3px;
	color: var(--accent);
}

.footer-bottom {
	padding: 24px 0;
	border-top: 1px solid var(--line-soft);
	font-size: 14px;
	color: var(--muted);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom a {
	color: var(--muted);
}

.footer-bottom a:hover {
	color: var(--accent);
}

@media (max-width: 860px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* Generic pages
   ========================================================================== */

.entry-content {
	color: var(--muted);
}

.entry-content a {
	text-decoration: underline;
}

.entry + .entry {
	margin-top: 48px;
}

/* Product diagrams: shared
   ========================================================================== */

.diagram-split {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: center;
}

@media (max-width: 1024px) {
	.diagram-split {
		grid-template-columns: 1fr;
	}
}

/* The navy disc at the centre of both diagrams (dark in both themes). */
.hub-center,
.rings-center {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 0 5%;
	border-radius: 50%;
	text-align: center;
	color: #fff;
	background: radial-gradient(circle at 30% 25%, #2f4fae 0%, #1a2d7a 45%, #0f1a47 100%);
	box-shadow: 0 0 0 1px rgba(166, 213, 189, 0.35), 0 0 90px var(--halo);
	transform: translate(-50%, -50%);
}

.hub-center strong,
.rings-center strong {
	position: relative;
	padding-bottom: 0.45em;
	margin-bottom: 0.5em;
	color: #fff;
	line-height: 1.15;
}

.hub-center strong::after,
.rings-center strong::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 2.4em;
	max-width: 80%;
	height: 2px;
	background: var(--mint);
	transform: translateX(-50%);
}

.hub-center span,
.rings-center span {
	color: rgba(237, 239, 248, 0.85);
	line-height: 1.4;
}

.hub-lines,
.rings-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hub-lines *,
.rings-art * {
	vector-effect: non-scaling-stroke;
}

/* Hub diagram (Cymph: playbook conversion)
   ========================================================================== */

.hub {
	position: relative;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 1;
	margin: 0 auto;
	container-type: inline-size;
}

.hub-ring {
	fill: none;
	stroke: var(--line);
	stroke-width: 1.5;
}

.hub-ring--inner {
	stroke-dasharray: 3 6;
}

.hub-arrow {
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.8;
}

.hub-center {
	width: 34%;
}

.hub-center strong {
	font-size: clamp(20px, 6.4cqi, 36px);
	letter-spacing: 0.04em;
}

.hub-center span {
	font-size: clamp(10px, 2.5cqi, 14px);
}

.hub-nodes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hub-item {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 12.5%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
}

.hub-node {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--node-bg);
	color: var(--accent);
	box-shadow: var(--shadow);
	transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.hub-node .icon {
	width: 44%;
	height: 44%;
	stroke-width: 1.8;
}

.hub-item:hover .hub-node {
	border-color: var(--accent);
	transform: scale(1.08);
}

/* Label sits outside the node, pushed outward along the spoke. */
.hub-label {
	position: absolute;
	left: calc(50% + var(--dx) * 92%);
	top: calc(50% + var(--dy) * 92%);
	transform: translate(calc(-50% + var(--dx) * 50%), calc(-50% + var(--dy) * 50%));
	font-size: clamp(11px, 2.5cqi, 14px);
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.hub {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 28px;
		aspect-ratio: auto;
	}

	.hub-lines {
		display: none;
	}

	.hub-center {
		position: static;
		width: 200px;
		transform: none;
	}

	.hub-nodes {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 12px;
		width: 100%;
	}

	.hub-item {
		position: static;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		width: auto;
		aspect-ratio: auto;
		transform: none;
	}

	.hub-node {
		width: 56px;
		height: 56px;
	}

	.hub-label {
		position: static;
		transform: none;
		font-size: 12px;
	}
}

/* Rings diagram (Cymph: single source of truth)
   ========================================================================== */

.rings {
	position: relative;
	width: 100%;
	max-width: 580px;
	aspect-ratio: 1;
	margin: 0 auto;
	container-type: inline-size;
}

.rings-outer {
	fill: var(--ring-1);
	stroke: var(--line);
	stroke-width: 1.5;
}

.rings-inner {
	fill: var(--ring-2);
	stroke: var(--line);
	stroke-width: 1.5;
}

.rings-tick {
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
}

.rings-center {
	width: 33%;
}

.rings-center strong {
	font-size: clamp(13px, 3.6cqi, 21px);
}

.rings-center span {
	font-size: clamp(10px, 2.4cqi, 14px);
}

.rings-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rings-pill,
.rings-tool {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -50%);
	font-weight: 600;
}

.rings-pill {
	padding: 0.35em 0.9em;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--node-bg);
	box-shadow: var(--shadow);
	font-size: clamp(10px, 2.2cqi, 13px);
	color: var(--heading);
	white-space: nowrap;
}

.rings-tool {
	max-width: 8em;
	font-size: clamp(10px, 2.3cqi, 14px);
	line-height: 1.2;
	text-align: center;
	color: var(--muted);
}

@media (max-width: 600px) {
	.rings {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		aspect-ratio: auto;
	}

	.rings-art {
		display: none;
	}

	.rings-center {
		position: static;
		width: 200px;
		transform: none;
	}

	.rings-list {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
	}

	.rings-list::before {
		content: attr(data-caption);
		width: 100%;
		margin-bottom: 4px;
		font-size: 12px;
		letter-spacing: 0.16em;
		text-align: center;
		text-transform: uppercase;
		color: var(--accent);
	}

	.rings-pill,
	.rings-tool {
		position: static;
		transform: none;
		font-size: 12px;
	}

	.rings-tool {
		max-width: none;
		padding: 0.35em 0.9em;
		border: 1px dashed var(--line-strong);
		border-radius: 999px;
	}
}

/* Numbered feature cards beside the diagrams
   ========================================================================== */

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

.feature-card {
	position: relative;
	padding: 28px 28px 28px 32px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.feature-card:hover {
	border-color: var(--line-strong);
	transform: translateX(4px);
}

.feature-card p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.feature-title {
	margin-bottom: 8px;
	font-size: clamp(19px, 1.8vw, 22px);
	font-weight: 600;
}

.feature-list--bars .feature-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	bottom: 18px;
	width: 3px;
	background: var(--accent);
	opacity: calc(0.4 + var(--step, 0) * 0.2);
}

.feature-list--bars .feature-index {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.feature-list--circles .feature-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 32px 28px;
}

.feature-list--circles .feature-index {
	display: grid;
	place-items: center;
	flex: 0 0 64px;
	height: 64px;
	border-radius: 50%;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	background: #1a2d7a;
	box-shadow: 0 0 0 1px rgba(166, 213, 189, 0.3);
}

.feature-list--circles .feature-card:nth-child(2) .feature-index {
	background: #2f6a95;
}

.feature-list--circles .feature-card:nth-child(3) .feature-index {
	background: var(--mint);
	color: #040630;
}

/* NIRES framework
   ========================================================================== */

.framework-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.framework-card {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
	padding: 16px 32px 16px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.framework-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-3px);
}

.framework-art {
	padding: 12px;
	background-color: var(--bg);
	background-image:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 30px 30px;
}

.framework-art svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.framework-index {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.framework-title {
	position: relative;
	margin: 8px 0 20px;
	padding-bottom: 16px;
	font-size: clamp(19px, 1.8vw, 24px);
	font-weight: 600;
}

.framework-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 2px;
	background: var(--accent);
}

.framework-body p {
	margin: 0;
	color: var(--muted);
}

/* Illustration strokes and fills (follow the theme). */
.ill-t,
.ill-a,
.ill-line,
.ill-soft-stroke {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ill-t { stroke: var(--ill-1); stroke-width: 5; }
.ill-a { stroke: var(--ill-2); stroke-width: 5; }
.ill-thin { stroke-width: 3; }
.ill-hole { fill: var(--bg); }
.ill-ft { fill: var(--ill-1); }
.ill-fa { fill: var(--ill-2); }
.ill-soft { fill: var(--ill-soft); }
.ill-soft-stroke { stroke: var(--ill-soft); stroke-width: 16; }
.ill-gauge { stroke-width: 16; }
.ill-line { stroke: var(--line-strong); stroke-width: 3; }

@media (max-width: 1100px) {
	.framework-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.framework-card {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 16px 16px 28px;
	}
}

/* NIRES process flow
   ========================================================================== */

.flow {
	position: relative;
	padding-bottom: 88px;
}

.flow-grid {
	display: grid;
	grid-template-columns: 0.8fr repeat(5, 1fr);
	gap: 28px;
}

.flow-source {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 80px;
	padding: 28px 14px;
	text-align: center;
	color: #fff;
	background: linear-gradient(170deg, #1a2d7a, #0f1a47);
	border: 1px solid rgba(166, 213, 189, 0.3);
	border-radius: var(--radius);
}

.flow-source .icon {
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	color: var(--mint);
	stroke-width: 1.4;
}

.flow-source strong {
	font-size: 16px;
	line-height: 1.3;
}

.flow-source span {
	font-size: 12px;
	color: rgba(237, 239, 248, 0.75);
}

.flow-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 16px;
	background: var(--stage-bg);
}

/* Arrow from the previous column. */
.flow-stage::before {
	content: "";
	position: absolute;
	left: -21px;
	top: calc(50% + 40px);
	border: 7px solid transparent;
	border-left: 11px solid var(--accent);
	transform: translateY(-50%);
}

.flow-stage-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	background: #1a2d7a;
}

.flow-stage-head span {
	opacity: 0.75;
}

.flow-stage:nth-child(3) .flow-stage-head { background: #23478f; }
.flow-stage:nth-child(4) .flow-stage-head { background: #2f6a95; }
.flow-stage:nth-child(5) .flow-stage-head { background: #5fa39a; color: #040630; }
.flow-stage:nth-child(6) .flow-stage-head { background: var(--mint); color: #040630; }

.flow-modules {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.flow-module {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
}

.flow-module-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.flow-module-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: var(--hover-bg);
	color: var(--accent);
}

.flow-module-icon .icon {
	width: 18px;
	height: 18px;
}

.flow-module-no {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
}

.flow-module-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--heading);
}

/* Feedback loop: from under the last stage back up into the database. */
.flow-loop {
	position: absolute;
	left: calc((100% - 140px) / 5.8 * 0.4);
	right: calc((100% - 140px) / 5.8 * 0.5);
	bottom: 24px;
	height: 64px;
	border: 2px solid var(--accent);
	border-top: 0;
	border-radius: 0 0 16px 16px;
}

.flow-loop::before {
	content: "";
	position: absolute;
	left: -8px;
	top: -12px;
	border: 7px solid transparent;
	border-bottom: 11px solid var(--accent);
	border-top: 0;
}

.flow-loop-label {
	position: absolute;
	left: 50%;
	bottom: -17px;
	padding: 6px 16px;
	border: 1.5px solid var(--accent);
	border-radius: 999px;
	background: var(--bg);
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	white-space: nowrap;
	transform: translateX(-50%);
}

@media (max-width: 1100px) {
	.flow {
		padding-bottom: 0;
	}

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

	.flow-source {
		margin-top: 0;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px 16px;
	}

	.flow-source .icon {
		width: 40px;
		height: 40px;
		margin: 0;
	}

	.flow-source span {
		width: 100%;
	}

	.flow-stage::before {
		left: 50%;
		top: -23px;
		border: 7px solid transparent;
		border-top: 11px solid var(--accent);
		transform: translateX(-50%);
	}

	.flow-modules {
		flex-direction: row;
		flex-wrap: wrap;
		padding: 0 16px;
	}

	.flow-module {
		flex: 1 1 200px;
	}

	.flow-loop {
		position: static;
		height: auto;
		margin-top: 24px;
		border: 0;
		text-align: center;
	}

	.flow-loop::before {
		content: none;
	}

	.flow-loop-label {
		position: static;
		display: inline-block;
		white-space: normal;
		transform: none;
	}

	.flow-loop-label::before {
		content: "\21BA  ";
	}
}

/* Blog: index, archives, cards
   ========================================================================== */

.blog-head .section-title {
	font-size: clamp(36px, 5.6vw, 72px);
	line-height: 1.05;
	margin-bottom: 24px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.post-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.post-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--line);
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.post-card:hover .post-card-media img {
	transform: scale(1.05);
}

/* No featured image: brand pattern instead of an empty box. */
.post-card-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
		radial-gradient(ellipse at 30% 20%, var(--glow), transparent 70%),
		var(--bg-alt);
}

.post-card-placeholder img {
	width: 72px;
	height: auto;
	opacity: 0.8;
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 32px 32px 36px;
}

.post-card-title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.post-card-title a {
	color: var(--heading);
}

.post-card-title a:hover {
	color: var(--accent);
}

.post-card-date {
	display: block;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

.post-card-excerpt {
	flex: 1;
	margin-bottom: 28px;
	color: var(--muted);
}

.post-card-excerpt p {
	margin: 0;
}

.read-more {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--line-strong);
	font-weight: 600;
	color: var(--accent);
}

.read-more .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease);
}

.read-more:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.read-more:hover .icon {
	transform: translateX(4px);
}

.blog-empty {
	padding: 48px;
	border: 1px dashed var(--line);
	color: var(--muted);
	text-align: center;
}

.pagination {
	margin-top: 56px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	color: var(--text);
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--accent);
	background: var(--hover-bg);
	color: var(--accent);
}

@media (max-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.post-grid {
		grid-template-columns: 1fr;
	}

	.post-card-body {
		padding: 24px;
	}
}

/* Single post
   ========================================================================== */

.single-head {
	padding-bottom: 40px;
}

.single-title {
	font-size: clamp(32px, 4.6vw, 56px);
	line-height: 1.12;
	margin-bottom: 20px;
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

.single-media {
	margin: 0 0 56px;
	border: 1px solid var(--line);
	overflow: hidden;
}

.single-media img {
	width: 100%;
}

.single-body {
	padding-top: 0;
}

.entry-content {
	font-size: 16px;
	line-height: 1.8;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2em;
}

.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--accent);
	color: var(--heading);
	font-size: 18px;
}

.entry-content img,
.entry-content figure {
	max-width: 100%;
	height: auto;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

.entry-content pre,
.entry-content code {
	background: var(--bg-alt);
	font-family: var(--font-heading);
}

.entry-content pre {
	padding: 20px;
	overflow-x: auto;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

.post-tags a {
	padding: 6px 12px;
	border: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

.post-tags a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.post-navigation {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.post-navigation .nav-next {
	text-align: right;
	grid-column: 2;
}

.post-navigation a {
	display: block;
	color: var(--heading);
	font-weight: 600;
}

.post-navigation a:hover {
	color: var(--accent);
}

.post-navigation .nav-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

@media (max-width: 600px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 1;
		text-align: left;
	}
}

/* Scroll reveal
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* Tiny screens
   ========================================================================== */

@media (max-width: 480px) {
	:root {
		--gutter: 16px;
		--header-h: 68px;
	}

	.site-logo {
		height: 36px;
	}

	.hero-actions .btn {
		width: 100%;
		justify-content: center;
	}
}
