/*!
Theme Name: BM Digital
Theme URI: https://benmeyer.digital
Author: Ben Meyer
Author URI: https://benmeyer.digital
Description: A small, minimalist consultancy theme.
Version: 2.0.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bm_digital
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root {
	--blue:      #12355b;
	--aero:      #5bc0eb;
	--saffron:   #f4c95d;
	--crimson:   #d72638;
	--off-white: #f5f5f3;
	--off-black: #262424;
	--mid:       #5e6e82;
	--border:    rgba(18, 53, 91, 0.1);

	--pad-x-desktop: 64px;
	--pad-x-tablet:  40px;
	--pad-x-mobile:  24px;

	--section-y-desktop: 96px;
	--section-y-tablet:  72px;
	--section-y-mobile:  56px;

	--display: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--body:    'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	background: var(--off-white);
	color: var(--blue);
	line-height: 1.72;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-weight: 900;
	color: var(--blue);
	line-height: 1.05;
	margin: 0;
	letter-spacing: -0.02em;
}
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* =========================================================
   LAYOUT UTILS
   ========================================================= */
.rule { border: none; border-top: 1px solid var(--border); margin: 0; }
.pad-x { padding-left: var(--pad-x-desktop); padding-right: var(--pad-x-desktop); }

.col-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid);
	padding-top: 7px;
	font-family: var(--body);
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px var(--pad-x-desktop);
	transition: background 0.3s, padding 0.3s, border-color 0.3s;
	border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
	padding: 18px var(--pad-x-desktop);
	background: rgba(245, 245, 243, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom-color: var(--border);
}
.site-nav .nav-logo img {
	height: 26px;
	display: block;
	mix-blend-mode: multiply;
}
.site-nav .nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
}
.site-nav .nav-links a {
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: var(--blue);
	transition: color 0.2s, opacity 0.2s;
}
.site-nav .nav-links a:hover { opacity: 0.65; }
.site-nav .nav-cta {
	background: var(--saffron);
	color: var(--blue) !important;
	padding: 10px 20px;
	border-radius: 40px;
	font-weight: 700 !important;
	font-family: var(--display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11.5px !important;
	transition: transform 0.2s, box-shadow 0.2s;
}
.site-nav .nav-cta:hover {
	transform: scale(1.04);
	box-shadow: 0 4px 20px rgba(244, 201, 93, 0.5);
	opacity: 1;
}
.site-nav .nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--blue);
	padding: 8px;
}

/* =========================================================
   HERO — Homepage
   ========================================================= */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 var(--pad-x-desktop) 80px;
	background-color: var(--off-white);
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 56px 56px;
	position: relative;
}
.hero::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 60%;
	background: linear-gradient(to bottom, transparent, var(--off-white));
	pointer-events: none;
	z-index: 1;
}
.hero-submark {
	position: absolute;
	right: -4%;
	top: 50%;
	transform: translateY(-50%) rotate(-8deg);
	height: 78vh;
	max-height: 720px;
	width: auto;
	opacity: 0;
	pointer-events: none;
	filter: none;
	mix-blend-mode: multiply;
	z-index: 0;
	animation: heroSubmarkIn 1.4s 0.5s ease-out forwards;
}
@keyframes heroSubmarkIn {
	from { opacity: 0; transform: translateY(-45%) rotate(-12deg); }
	to   { opacity: 0.28; transform: translateY(-50%) rotate(-8deg); }
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mid);
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	gap: 12px;
	opacity: 0;
	animation: up 0.6s 0.15s forwards;
	font-family: var(--body);
}
.hero-label::before {
	content: '';
	width: 24px;
	height: 1px;
	background: var(--mid);
}
.hero h1 {
	font-size: clamp(48px, 7.5vw, 112px);
	line-height: 0.95;
	letter-spacing: -0.04em;
	margin-bottom: 40px;
	opacity: 0;
	animation: up 0.7s 0.25s forwards;
}
.hero h1 em { color: var(--crimson); font-weight: 900; }
.hero-sub {
	font-size: 18px;
	line-height: 1.72;
	color: var(--mid);
	max-width: 540px;
	font-weight: 400;
	opacity: 0;
	animation: up 0.6s 0.42s forwards;
}

/* =========================================================
   TWO-COL sections
   ========================================================= */
.two-col {
	padding: var(--section-y-desktop) var(--pad-x-desktop);
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 80px;
	align-items: start;
}

.about-body p,
.two-col .section-inner > p,
.two-col .section-inner > .wp-block-paragraph {
	font-size: 19px;
	line-height: 1.76;
	color: var(--blue);
	font-weight: 400;
	margin-bottom: 20px;
}
.about-body p:last-child,
.two-col .section-inner > p:last-child { margin-bottom: 0; }

.work-list { display: flex; flex-direction: column; }
.work-item {
	display: grid;
	grid-template-columns: 220px 1fr 160px;
	gap: 24px;
	align-items: baseline;
	padding: 22px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}
.work-list .work-item:first-child { border-top: 1px solid var(--border); }
.work-item:hover { opacity: 0.6; }
.work-client {
	font-family: var(--display);
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--blue);
	text-transform: uppercase;
	line-height: 1.25;
}
.work-desc { font-size: 16px; color: var(--mid); line-height: 1.6; }
.work-sector { font-size: 13px; color: var(--mid); text-align: right; font-style: italic; line-height: 1.4; }

.journal-list { display: flex; flex-direction: column; }
.journal-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 20px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}
.journal-list .journal-item:first-child { border-top: 1px solid var(--border); }
.journal-item:hover { opacity: 0.6; }
.journal-title { font-size: 16px; font-weight: 500; color: var(--blue); line-height: 1.4; }
.journal-meta { font-size: 13px; color: var(--mid); }
.journal-all {
	display: inline-block;
	margin-top: 24px;
	font-size: 13px;
	font-weight: 600;
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
	padding-bottom: 2px;
	width: fit-content;
	transition: border-color 0.2s;
}
.journal-all:hover { border-color: var(--blue); }

/* CONTACT */
.contact {
	padding: var(--section-y-desktop) var(--pad-x-desktop);
	background: var(--blue);
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 80px;
	align-items: start;
	color: var(--off-white);
}
.contact .col-label { color: rgba(245, 245, 243, 0.35); }
.contact h2 {
	color: var(--off-white);
	font-size: clamp(38px, 4.2vw, 60px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin-bottom: 40px;
}
.contact h2 em { color: var(--saffron); font-weight: 900; }
.contact-email {
	display: block;
	font-size: 20px;
	color: var(--saffron);
	text-decoration: none;
	margin-bottom: 12px;
	font-weight: 500;
	transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.8; }
.contact-phone {
	display: block;
	font-size: 16px;
	color: rgba(245, 245, 243, 0.7);
	text-decoration: none;
	margin-bottom: 8px;
	transition: opacity 0.2s;
}
.contact-phone:hover { opacity: 0.8; color: rgba(245, 245, 243, 0.9); }
.contact-note { font-size: 13px; color: rgba(245, 245, 243, 0.45); margin-top: 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
	background: var(--off-black);
	color: var(--off-white);
	padding: 40px var(--pad-x-desktop);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.site-footer .footer-logo img {
	height: 28px;
	mix-blend-mode: screen;
	filter: brightness(3.5);
}
.site-footer .footer-links {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-footer .footer-links li { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-links a {
	font-size: 13px;
	color: var(--off-white);
	text-decoration: none;
	transition: opacity 0.2s;
	opacity: 0.75;
}
.site-footer .footer-links a:hover { opacity: 1; }
.site-footer small {
	font-size: 12px;
	color: rgba(245, 245, 243, 0.65);
}

/* =========================================================
   PAGE HERO
   ========================================================= */
.page-hero {
	padding: 160px var(--pad-x-desktop) 96px;
	background-color: var(--off-white);
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 48px 48px;
	position: relative;
}
.page-hero::after {
	content: '';
	position: absolute;
	inset: auto 0 -1px 0;
	height: 40%;
	background: linear-gradient(to bottom, transparent, var(--off-white));
	pointer-events: none;
}
.page-hero-inner {
	max-width: 780px;
	position: relative;
	z-index: 1;
}
.section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--aero);
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--body);
}
.section-label::before {
	content: '';
	width: 18px;
	height: 2px;
	background: var(--aero);
}
.section-label.blue { color: var(--blue); }
.section-label.blue::before { background: var(--blue); }
.page-hero h1 {
	font-size: clamp(38px, 5vw, 68px);
	line-height: 1.04;
	margin-bottom: 24px;
}
.page-hero .lede {
	font-size: 19px;
	line-height: 1.72;
	color: var(--mid);
	max-width: 620px;
	font-weight: 400;
}

/* =========================================================
   ARTICLE ARCHIVE
   ========================================================= */
.filter-bar {
	padding: 32px var(--pad-x-desktop);
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--border);
}
.filter-btn {
	font-family: var(--display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 8px 18px;
	border: 2px solid var(--border);
	border-radius: 30px;
	background: transparent;
	color: var(--blue);
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	text-decoration: none;
}
.filter-btn:hover { border-color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--off-white); }

.archive-grid-section { padding: 72px var(--pad-x-desktop); }
.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.acard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s, box-shadow 0.25s;
}
.acard:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(18, 53, 91, 0.1);
}
.acard.featured { grid-column: span 2; flex-direction: row; }
.acard-thumb {
	background: var(--blue);
	background-image:
		linear-gradient(rgba(91, 192, 235, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(91, 192, 235, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	line-height: 1;
	color: var(--off-white);
	position: relative;
	overflow: hidden;
}
.acard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acard.featured .acard-thumb { font-size: 96px; }
.acard-thumb img.emoji { width: 72px; height: 72px; margin: 0; position: static; object-fit: contain; border-radius: 0; }
.acard.featured .acard-thumb img.emoji { width: 108px; height: 108px; }
.banner-inner img.emoji { width: 96px; height: 96px; margin: 0 auto 8px; display: block; }
.acard.saffron .acard-thumb { background-color: var(--saffron); color: var(--blue); }
.acard.aero .acard-thumb { background-color: var(--aero); color: var(--blue); }
.acard.featured .acard-thumb {
	flex: 0 0 45%;
	aspect-ratio: auto;
	min-height: 320px;
}
.acard-body {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.acard-body h2, .acard-body h3 {
	font-size: 20px;
	line-height: 1.22;
	letter-spacing: -0.01em;
}
.acard.featured .acard-body h2 { font-size: 26px; line-height: 1.15; }
.acard-body p { font-size: 14.5px; color: var(--mid); line-height: 1.6; margin: 0; }
.acard-footer {
	margin-top: auto;
	padding-top: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12.5px;
	color: var(--mid);
}
.acard-arrow {
	width: 32px;
	height: 32px;
	border: 1px solid var(--border);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
	color: var(--blue);
}
.acard:hover .acard-arrow {
	background: var(--saffron);
	border-color: var(--saffron);
	transform: rotate(-45deg);
}

.tag {
	display: inline-block;
	font-family: var(--body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	background: var(--aero);
	color: var(--blue);
	text-decoration: none;
	width: fit-content;
}
.tag.blue { background: var(--blue); color: var(--off-white); }
.tag.saffron { background: var(--saffron); color: var(--blue); }
.tag.crimson { background: var(--crimson); color: var(--off-white); }

.newsletter-strip {
	margin: 0 var(--pad-x-desktop) 96px;
	padding: 72px;
	background-color: var(--blue);
	background-image:
		linear-gradient(rgba(91, 192, 235, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(91, 192, 235, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	color: var(--off-white);
	border-radius: 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.newsletter-strip h2 { color: var(--off-white); font-size: clamp(30px, 3vw, 44px); margin-bottom: 12px; }
.newsletter-strip p { color: rgba(245, 245, 243, 0.75); font-size: 15px; margin: 0; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
	flex: 1;
	padding: 16px 24px;
	border-radius: 40px;
	border: 1px solid rgba(245, 245, 243, 0.2);
	background: rgba(245, 245, 243, 0.06);
	color: var(--off-white);
	font-family: var(--body);
	font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(245, 245, 243, 0.5); }
.newsletter-form button {
	background: var(--saffron);
	color: var(--blue);
	border: none;
	padding: 16px 28px;
	border-radius: 40px;
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 12px;
	transition: transform 0.2s, box-shadow 0.2s;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244, 201, 93, 0.45); }

/* =========================================================
   ARTICLE (single blog post)
   ========================================================= */
.article-hero { padding: 140px var(--pad-x-desktop) 72px; background: var(--off-white); }
.article-hero-inner { max-width: 780px; }
.article-meta-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--mid);
}
.article-meta-top .article-date + .article-read::before {
	content: '·';
	margin-right: 12px;
	color: var(--border);
}
.article-hero h1 {
	font-size: clamp(32px, 3.6vw, 52px);
	line-height: 1.08;
	margin-bottom: 24px;
}
.article-hero .lede {
	font-size: 20px;
	line-height: 1.66;
	color: var(--mid);
	font-weight: 400;
}
.article-banner {
	margin: 0 var(--pad-x-desktop);
	height: 380px;
	background-color: var(--blue);
	background-image:
		linear-gradient(rgba(91, 192, 235, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(91, 192, 235, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	border-radius: 20px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.article-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 40%, rgba(91, 192, 235, 0.35), transparent 60%);
	pointer-events: none;
}
.article-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}
.banner-inner { position: relative; z-index: 1; text-align: center; color: var(--off-white); }
.banner-inner .big-icon { font-size: 72px; display: block; margin-bottom: 8px; }
.banner-inner p { color: rgba(245, 245, 243, 0.55); font-size: 13px; }

.article-layout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 72px var(--pad-x-desktop);
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 72px;
	align-items: start;
}
.article-body { min-width: 0; }
.article-body > * + * { margin-top: 1em; }
.article-body h2 {
	font-size: 28px;
	line-height: 1.2;
	margin-top: 48px;
	letter-spacing: -0.01em;
}
.article-body h3 {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	margin-top: 32px;
	letter-spacing: -0.005em;
}
.article-body p {
	font-size: 17px;
	line-height: 1.82;
	color: #333;
}
.article-body a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-color: var(--border);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body strong { color: var(--blue); font-weight: 600; }
.article-body blockquote {
	margin: 32px 0;
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--saffron);
	font-family: var(--display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.5;
	color: var(--blue);
	letter-spacing: -0.01em;
}
.article-body blockquote p { font-size: inherit; color: inherit; }
.article-body ul, .article-body ol {
	padding-left: 0;
	list-style: none;
	margin: 24px 0;
}
.article-body ul li,
.article-body ol li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
	font-size: 17px;
	line-height: 1.76;
	color: #333;
}
.article-body ul li::before {
	content: '→';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--aero);
	font-weight: 700;
}
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
	content: counter(item);
	position: absolute;
	left: 0;
	top: 4px;
	width: 22px;
	height: 22px;
	background: var(--blue);
	color: var(--saffron);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--display);
	font-weight: 700;
	font-size: 12px;
}
.article-body .callout {
	margin: 32px 0;
	padding: 20px 24px;
	background: rgba(18, 53, 91, 0.04);
	border-left: 3px solid var(--blue);
	border-radius: 4px;
}
.article-body .callout.saffron { background: rgba(244, 201, 93, 0.12); border-left-color: var(--saffron); }
.article-body hr, .article-body .divider {
	border: none;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}
.article-body img { border-radius: 12px; margin: 32px 0; }
.article-body figure { margin: 32px 0; }
.article-body figcaption {
	font-size: 13px;
	color: var(--mid);
	margin-top: 8px;
	text-align: center;
}
.article-body code {
	background: rgba(18, 53, 91, 0.06);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}
.article-body pre {
	background: var(--off-black);
	color: var(--off-white);
	padding: 20px 24px;
	border-radius: 12px;
	overflow-x: auto;
	margin: 32px 0;
}
.article-body pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

.article-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px;
}
.sidebar-widget h3 {
	font-family: var(--display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mid);
	margin-bottom: 16px;
}
.sidebar-widget.author-widget {
	background: var(--blue);
	color: var(--off-white);
	border-color: var(--blue);
}
.sidebar-widget.author-widget h3 { color: rgba(245, 245, 243, 0.7); }
.author-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--aero);
	color: var(--blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--display);
	font-weight: 900;
	font-size: 16px;
	margin-bottom: 14px;
}
.author-name { font-family: var(--display); font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.author-bio { font-size: 13px; line-height: 1.6; color: rgba(245, 245, 243, 0.75); }

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
	display: block;
	color: var(--blue);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	padding-left: 18px;
	position: relative;
	transition: color 0.2s;
}
.toc-list a::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--aero);
}
.toc-list a:hover { color: var(--aero); }

.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

.related-section { padding: 72px var(--pad-x-desktop); background: var(--off-white); border-top: 1px solid var(--border); }
.related-section > h2 {
	font-size: 26px;
	margin-bottom: 32px;
	letter-spacing: -0.01em;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rcard {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 28px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.25s, box-shadow 0.25s;
}
.rcard:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 24px rgba(18, 53, 91, 0.08);
}
.rcard h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.005em; }
.rcard p { font-size: 14px; color: var(--mid); line-height: 1.55; margin: 0; }

/* =========================================================
   GENERIC PAGE
   ========================================================= */
.generic-page {
	padding: 140px var(--pad-x-desktop) 96px;
	max-width: 820px;
	margin: 0 auto;
}
.generic-page h1 {
	font-size: clamp(38px, 5vw, 60px);
	margin-bottom: 24px;
	line-height: 1.05;
}
.generic-page .page-content { font-size: 17px; line-height: 1.82; color: #333; }
.generic-page .page-content > * + * { margin-top: 1em; }
.generic-page .page-content h2 { font-size: 24px; margin-top: 40px; }
.generic-page .page-content h3 { font-size: 19px; margin-top: 32px; font-weight: 800; }
.generic-page .page-content ul { padding-left: 24px; }
.generic-page .page-content a { color: var(--blue); text-decoration: underline; }

/* =========================================================
   404
   ========================================================= */
.error-page {
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 140px var(--pad-x-desktop) 96px;
}
.error-page .eyebrow {
	font-family: var(--body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--aero);
	margin-bottom: 24px;
}
.error-page h1 { font-size: clamp(48px, 6vw, 84px); margin-bottom: 16px; }
.error-page p { font-size: 18px; color: var(--mid); margin-bottom: 32px; max-width: 480px; }
.error-page .btn {
	background: var(--saffron);
	color: var(--blue);
	padding: 14px 32px;
	border-radius: 40px;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
	transition: transform 0.2s, box-shadow 0.2s;
}
.error-page .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244, 201, 93, 0.45); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
	.hero-submark { opacity: 0.28; }
}

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--blue);
	color: var(--off-white);
	padding: 12px 20px;
	z-index: 999;
	font-size: 13px;
	text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	:root {
		--pad-x-desktop: var(--pad-x-tablet);
		--section-y-desktop: var(--section-y-tablet);
	}
	.two-col, .contact { grid-template-columns: 1fr; gap: 32px; }
	.article-layout { grid-template-columns: 1fr; gap: 48px; }
	.article-sidebar { position: static; }
	.newsletter-strip { grid-template-columns: 1fr; gap: 24px; padding: 48px; }
	.archive-grid { grid-template-columns: repeat(2, 1fr); }
	.acard.featured { grid-column: span 2; flex-direction: column; }
	.acard.featured .acard-thumb { flex: none; min-height: auto; aspect-ratio: 16 / 9; }
	.related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
	.hero-submark { right: -12%; height: 60vh; opacity: 0.22; }
}
@media (max-width: 768px) {
	:root {
		--pad-x-desktop: var(--pad-x-mobile);
		--section-y-desktop: var(--section-y-mobile);
	}
	.hero { padding-bottom: 56px; }
	.hero h1 { font-size: clamp(40px, 10vw, 64px); }
	.hero-submark {
		right: -30%;
		height: 46vh;
		opacity: 0.16;
	}
	.work-item { grid-template-columns: 1fr; gap: 6px; }
	.work-sector { text-align: left; }
	.filter-bar { padding: 20px var(--pad-x-desktop); }
	.archive-grid { grid-template-columns: 1fr; }
	.newsletter-form { flex-direction: column; }
	.newsletter-form button { padding: 14px 20px; }
	.site-nav { padding: 18px var(--pad-x-desktop); }
	.site-nav .nav-links { display: none; }
	.site-nav.nav-open .nav-links {
		display: flex;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		flex-direction: column;
		background: var(--off-white);
		border-bottom: 1px solid var(--border);
		padding: 20px var(--pad-x-mobile);
		gap: 20px;
	}
	.site-nav .nav-toggle { display: inline-flex; }
	.article-banner { height: 240px; margin: 0 var(--pad-x-desktop); }
	.article-body h2 { font-size: 24px; margin-top: 36px; }
	.article-body h3 { font-size: 19px; }
	.article-body p, .article-body ul li, .article-body ol li { font-size: 16px; }
	.site-footer { flex-direction: column; text-align: center; }
	.generic-page { padding-top: 120px; }
}

.article-body .alignwide { max-width: 1180px; }
.article-body .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
