/*--------------------------------------------------------------
  AtlasGoat — main stylesheet
  Structure:
  01. Design tokens
  02. Reset & base
  03. Typography
  04. Layout (containers, sections)
  05. Components (buttons, eyebrow, forms)
  06. Header & navigation
  07. Footer
  08. Page hero, cards, pagination
  09. Utilities (a11y, reveal-on-scroll)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
  01. Design tokens
--------------------------------------------------------------*/
:root {
	/* Brand palette */
	--c-terracotta:       #C15A3C;  /* decorative accents & large type */
	--c-terracotta-dark:  #A04A30;  /* small accent text & buttons (AA on cream) */
	--c-terracotta-deep:  #8A3F28;  /* button hover */
	--c-terracotta-light: #D9755A;  /* small accent text on dark slate (AA) */
	--c-slate:            #1E2A32;
	--c-slate-light:      #3A4A54;
	--c-cream:            #F6F1E9;
	--c-cream-2:          #FBF8F3;  /* raised surfaces (cards) */
	--c-sand:             #E4D5C0;
	--c-charcoal:         #16181A;
	--c-stone:            #5D6673;  /* muted text — AA (4.5:1+) on warm cream */
	--c-mist:             #A9B6BF;  /* muted text on dark slate */

	/* Semantic aliases */
	--bg:            var(--c-cream);
	--bg-dark:       var(--c-slate);
	--surface:       var(--c-cream-2);
	--text:          var(--c-charcoal);
	--text-muted:    var(--c-stone);
	--text-on-dark:  var(--c-cream);
	--accent:        var(--c-terracotta);
	--accent-hover:  var(--c-terracotta-dark);
	--border:        var(--c-sand);

	/* Typography */
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Fluid type scale */
	--fs-xs:   0.8125rem;
	--fs-sm:   0.9375rem;
	--fs-base: 1.0625rem;
	--fs-md:   1.1875rem;
	--fs-lg:   clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
	--fs-xl:   clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
	--fs-2xl:  clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);
	--fs-hero: clamp(2.75rem, 2rem + 4vw, 4.75rem);

	/* Spacing */
	--space-2xs: 0.5rem;
	--space-xs:  0.75rem;
	--space-sm:  1rem;
	--space-md:  1.5rem;
	--space-lg:  2.5rem;
	--space-xl:  4rem;
	--section-pad: clamp(4rem, 3rem + 4vw, 7.5rem);

	/* Layout */
	--container:        76rem;
	--container-narrow: 46rem;
	--header-h:         4.75rem;

	/* Detail */
	--radius:    3px;
	--shadow-sm: 0 1px 2px rgba(22, 24, 26, 0.06);
	--shadow-md: 0 14px 40px -12px rgba(22, 24, 26, 0.16);
	--ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur:       0.3s;
}

/*--------------------------------------------------------------
  02. Reset & base
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
}

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

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.7;
	padding-top: var(--header-h); /* fixed header offset */
	-webkit-font-smoothing: antialiased;
}

/* Pages with a full-bleed hero let content slide under the header. */
body.has-hero {
	padding-top: 0;
}

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

::selection {
	background: var(--c-terracotta);
	color: var(--c-cream);
}

/*--------------------------------------------------------------
  03. Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: inherit;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5, h6 { font-size: var(--fs-base); }

p + p { margin-top: 1em; }

a {
	color: inherit;
	text-decoration-color: var(--accent);
	text-underline-offset: 0.2em;
	transition: color var(--dur) var(--ease);
}

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

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

/*--------------------------------------------------------------
  04. Layout
--------------------------------------------------------------*/
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.section {
	padding-block: var(--section-pad);
}

.section--flush-top {
	padding-top: 0;
}

/* Deep-slate band — alternates with the warm cream base for rhythm. */
.section--dark,
.on-dark {
	background: var(--bg-dark);
	color: var(--text-on-dark);
}

.section--dark ::selection,
.on-dark ::selection {
	background: var(--c-cream);
	color: var(--c-slate);
}

/*--------------------------------------------------------------
  05. Components
--------------------------------------------------------------*/

/* Eyebrow — small uppercase kicker above headings.
   Darker terracotta on cream, lighter on slate: both meet WCAG AA. */
.eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-terracotta-dark);
	margin-bottom: var(--space-sm);
}

.section--dark .eyebrow,
.on-dark .eyebrow {
	color: var(--c-terracotta-light);
}

/* Buttons */
.btn {
	--mx: 0px;   /* magnetic offset, set by main.js on [data-magnetic] */
	--my: 0px;
	--lift: 0px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	padding: 0.9375rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	transform: translate3d(var(--mx), calc(var(--my) + var(--lift)), 0);
	transition:
		background-color var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.btn:hover {
	--lift: -1px;
}

.btn--primary {
	background: var(--c-terracotta-dark); /* AA contrast with cream label */
	color: var(--c-cream);
}

.btn--primary:hover {
	background: var(--c-terracotta-deep);
	color: var(--c-cream);
}

.btn--outline {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

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

.on-dark .btn--outline:hover {
	background: var(--c-cream);
	border-color: var(--c-cream);
	color: var(--c-slate);
}

/* Base form fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea {
	font: inherit;
	color: inherit;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.8125rem 1rem;
	width: 100%;
	transition: border-color var(--dur) var(--ease);
}

input:focus,
textarea:focus {
	border-color: var(--accent);
	outline: none;
}

/*--------------------------------------------------------------
  06. Header & navigation
--------------------------------------------------------------*/
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition:
		border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease),
		color var(--dur) var(--ease);
}

/* The frosted background lives on a pseudo-element: backdrop-filter on the
   header itself would become the containing block for the fixed mobile
   nav panel nested inside it. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(246, 241, 233, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: opacity var(--dur) var(--ease);
}

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

/* Transparent treatment over dark heroes (front page, case studies) */
.has-hero .site-header:not(.is-scrolled) {
	color: var(--c-cream);
	--emblem-main: var(--c-cream);
}

.has-hero .site-header:not(.is-scrolled)::before {
	opacity: 0;
}

/* Keep the header clear of the WP admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	height: var(--header-h);
}

/* Keep the brand above the mobile nav panel (both live inside the header) */
.site-header__brand {
	position: relative;
	z-index: 110;
}

/* Logo */
.ag-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: inherit;
	text-decoration: none;
}

.ag-emblem {
	height: 2.125rem;
	width: auto;
	flex-shrink: 0;
}

.ag-emblem__peak--main   { fill: var(--emblem-main, var(--c-slate)); }
.ag-emblem__peak--accent { fill: var(--c-terracotta); }

.ag-wordmark {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1;
}

.ag-wordmark__dot {
	color: var(--c-terracotta);
}

/* Primary nav (desktop) */
.site-nav {
	margin-left: auto;
}

.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	padding: 0;
}

.site-nav__menu a {
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	padding-block: 0.5rem;
	position: relative;
}

.site-nav__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.125rem;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease);
}

.site-nav__menu a:hover::after,
.site-nav__menu .current-menu-item > a::after,
.site-nav__menu .current_page_item > a::after {
	transform: scaleX(1);
}

/* The CTA duplicated inside the mobile panel stays hidden on desktop */
.site-nav__cta {
	display: none;
}

/* Hamburger */
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.625rem;
	margin-right: -0.625rem;
	cursor: pointer;
	color: inherit;
	z-index: 110;
}

.nav-toggle__box {
	display: block;
	width: 24px;
}

.nav-toggle__bar {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__bar + .nav-toggle__bar {
	margin-top: 5px;
}

/* Mobile navigation */
@media (max-width: 900px) {

	.site-header__cta { display: none; }
	.nav-toggle       { display: block; }

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 90;
		display: flex;
		flex-direction: column;
		gap: var(--space-lg);
		padding: calc(var(--header-h) + var(--space-sm)) clamp(1.5rem, 6vw, 3rem) var(--space-lg);
		overflow-y: auto; /* long menus scroll inside the panel */
		background: var(--c-slate);
		color: var(--c-cream);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
	}

	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
	}

	.site-nav__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.375rem;
	}

	.site-nav__menu a {
		font-family: var(--font-display);
		font-size: clamp(1.375rem, 5.5vw, 1.75rem);
		font-weight: 500;
		line-height: 1.2;
		padding-block: 0.375rem;
	}

	.site-nav__cta { display: block; }

	/* Header chrome inverts while the slate panel is open */
	.nav-open .site-header {
		border-color: transparent;
		box-shadow: none;
		color: var(--c-cream);
		--emblem-main: var(--c-cream);
	}

	.nav-open .site-header::before {
		opacity: 0;
	}

	.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.nav-open,
	.nav-open body {
		overflow: hidden;
	}
}

/*--------------------------------------------------------------
  07. Footer
--------------------------------------------------------------*/
.site-footer {
	--emblem-main: var(--c-cream);
	padding-block: var(--space-xl) var(--space-lg);
	font-size: var(--fs-sm);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr;
	gap: var(--space-lg);
	padding-bottom: var(--space-xl);
}

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__tagline {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-md);
	margin-top: var(--space-sm);
}

.site-footer__desc {
	color: var(--c-mist);
	margin-top: var(--space-2xs);
	max-width: 34ch;
}

.site-footer__heading {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-mist);
	margin-bottom: var(--space-sm);
}

.site-footer__menu,
.site-footer__contact {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--c-cream);
	text-decoration: underline;
	text-decoration-color: var(--accent);
}

.social-links {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 0.875rem;
	margin-top: var(--space-md);
}

.social-links__link {
	display: inline-flex;
	width: 2.25rem;
	height: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-slate-light);
	border-radius: 50%;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.social-links__link svg {
	width: 1.05rem;
	height: 1.05rem;
}

.social-links__link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Newsletter placeholder */
.footer-newsletter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: var(--space-sm);
}

.footer-newsletter input[type="email"] {
	flex: 1 1 12rem;
	background: transparent;
	border-color: var(--c-slate-light);
	color: var(--c-cream);
}

.footer-newsletter input[type="email"]::placeholder {
	color: var(--c-mist);
}

.footer-newsletter input[type="email"]:focus {
	border-color: var(--c-cream);
}

.footer-newsletter__note {
	flex-basis: 100%;
	font-size: var(--fs-xs);
	color: var(--c-mist);
}

/* Bottom bar */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm) var(--space-lg);
	align-items: center;
	justify-content: space-between;
	padding-top: var(--space-md);
	border-top: 1px solid rgba(246, 241, 233, 0.14);
	font-size: var(--fs-xs);
	color: var(--c-mist);
}

.site-footer__legal {
	list-style: none;
	padding: 0;
	display: flex;
	gap: var(--space-md);
}

/*--------------------------------------------------------------
  08. Page hero, cards, pagination
--------------------------------------------------------------*/
.page-hero {
	padding-block: var(--section-pad) var(--space-xl);
}

.page-hero__title {
	font-size: var(--fs-hero);
	font-weight: 500;
	max-width: 20ch;
}

/* Editorial post cards */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: var(--space-lg);
}

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

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--c-sand);
	overflow: hidden;
}

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

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: var(--c-slate);
}

.post-card__placeholder .ag-emblem {
	height: 3rem;
	opacity: 0.5;
	--emblem-main: var(--c-cream);
}

.post-card__body {
	padding: var(--space-md);
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	flex: 1;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.post-card__category {
	color: var(--c-terracotta-dark);
	text-decoration: none;
}

.post-card__title {
	font-size: var(--fs-lg);
}

.post-card__title a {
	text-decoration: none;
}

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

.post-card__excerpt {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.post-card__more {
	margin-top: auto;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-terracotta-dark);
}

/* No-results block */
.no-results {
	text-align: center;
	max-width: 34rem;
	margin-inline: auto;
	display: grid;
	gap: var(--space-sm);
	justify-items: center;
	padding-block: var(--space-xl);
}

/* Pagination */
.pagination {
	margin-top: var(--space-xl);
}

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

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 2.5rem;
	justify-content: center;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pagination .page-numbers.current {
	background: var(--c-slate);
	border-color: var(--c-slate);
	color: var(--c-cream);
}

.pagination .page-numbers:hover:not(.current) {
	border-color: var(--accent);
	color: var(--accent);
}

/*--------------------------------------------------------------
  08b. Blog, Consulting & Contact (Phase 6)
--------------------------------------------------------------*/

/* Muted lead for cream page heroes */
.page-hero__lead--muted {
	color: var(--text-muted);
	font-size: var(--fs-md);
	max-width: 52ch;
	margin-top: var(--space-sm);
}

/* Featured post — large split card at the top of Insights */
.featured-post {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: var(--space-xl);
	transition: box-shadow var(--dur) var(--ease);
}

.featured-post:hover {
	box-shadow: var(--shadow-md);
}

.featured-post__media {
	display: block;
	min-height: 20rem;
	background: var(--c-sand);
}

.featured-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-post__body {
	padding: var(--space-lg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-sm);
}

.featured-post__flag {
	background: var(--c-terracotta-dark);
	color: var(--c-cream);
	padding: 0.1875rem 0.625rem;
	border-radius: 999px;
	font-size: var(--fs-xs);
	font-weight: 700;
}

.featured-post__title {
	font-size: var(--fs-xl);
}

.featured-post__title a {
	text-decoration: none;
}

.featured-post__title a:hover {
	color: var(--accent);
}

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

	.featured-post__media {
		min-height: 14rem;
		aspect-ratio: 3 / 2;
	}
}

/* Single article */
.post-hero {
	padding-block: calc(var(--section-pad) * 0.8) var(--space-lg);
}

.post-hero__title {
	font-size: var(--fs-2xl);
	max-width: 24ch;
	margin-top: var(--space-sm);
}

.post-featured-img {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: var(--space-xl);
}

.post-featured-img img {
	width: 100%;
}

/* Rich text from the editor */
.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: var(--fs-lg);
}

.entry-content h3 {
	margin-top: 1.75em;
	font-size: var(--fs-md);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.375rem;
	display: grid;
	gap: 0.5rem;
}

.entry-content li::marker {
	color: var(--accent);
}

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

.entry-content blockquote {
	border-left: 3px solid var(--accent);
	padding-left: var(--space-md);
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-md);
	margin-block: 2em;
}

.entry-content img {
	border-radius: var(--radius);
}

/* Share row */
.share-row {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-top: var(--space-xl);
	padding-top: var(--space-md);
	border-top: 1px solid var(--border);
}

.share-row__label {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-right: 0.375rem;
}

.share-row__link {
	display: inline-flex;
	width: 2.25rem;
	height: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.share-row__link svg {
	width: 1rem;
	height: 1rem;
}

.share-row__link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.share-row__copy.is-copied {
	border-color: var(--accent);
	color: var(--accent);
}

/* Author box */
.author-box {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-md);
	margin-top: var(--space-lg);
}

.author-box__avatar img {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	object-fit: cover;
}

.author-box__label {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.author-box__name {
	font-family: var(--font-display);
	font-size: var(--fs-md);
	font-weight: 500;
}

.author-box__bio {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	margin-top: 0.25rem;
}

/* Prev / next navigation */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-md);
	margin-top: var(--space-lg);
}

.post-nav a {
	display: block;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-md);
	text-decoration: none;
	transition: border-color var(--dur) var(--ease);
}

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

.post-nav__next {
	text-align: right;
}

.post-nav__dir {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-terracotta-dark);
}

.post-nav__title {
	display: block;
	margin-top: 0.375rem;
	font-family: var(--font-display);
	font-size: var(--fs-md);
	font-weight: 500;
}

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

	.post-nav__next {
		text-align: left;
	}
}

/* Engagement model cards (Consulting) */
.plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--space-md);
	align-items: stretch;
}

.plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-lg);
}

.plan-card--featured {
	border-color: var(--accent);
	box-shadow: var(--shadow-md);
}

.plan-card__badge {
	position: absolute;
	top: -0.8125rem;
	left: var(--space-lg);
	background: var(--c-terracotta-dark);
	color: var(--c-cream);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
}

.plan-card__type {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.plan-card__desc {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.plan-card .btn {
	margin-top: auto;
	justify-content: center;
}

/* Booking / contact layout */
.booking-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: var(--space-lg);
	align-items: start;
}

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

.booking-grid__aside {
	display: grid;
	gap: var(--space-md);
}

.calendly-placeholder {
	border: 2px dashed var(--border);
	border-radius: var(--radius);
	min-height: 13rem;
	display: grid;
	place-items: center;
	text-align: center;
	padding: var(--space-lg);
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.contact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-lg);
	display: grid;
	gap: 0.625rem;
	font-size: var(--fs-sm);
}

.contact-card .social-links {
	margin-top: 0.25rem;
}

.contact-card .social-links__link {
	border-color: var(--border);
}

.text-muted {
	color: var(--text-muted);
}

/* Forms: Contact Form 7 + fallback */
.wpcf7-form label {
	display: block;
	font-weight: 600;
	font-size: var(--fs-sm);
	margin-bottom: 0.375rem;
}

.wpcf7-form p {
	margin-bottom: var(--space-sm);
}

.wpcf7-form input[type="submit"],
.form-fallback .btn {
	background: var(--c-terracotta-dark);
	color: var(--c-cream);
	border: 0;
	border-radius: var(--radius);
	padding: 0.9375rem 1.75rem;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease);
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--accent-hover);
}

.form-fallback {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-lg);
	display: grid;
	gap: var(--space-sm);
	justify-items: start;
}

/*--------------------------------------------------------------
  08c. Breadcrumbs, search, 404 (Phase 7)
--------------------------------------------------------------*/
.breadcrumbs {
	font-size: var(--fs-xs);
	margin-bottom: var(--space-sm);
}

.breadcrumbs ol {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--text-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	opacity: 0.5;
}

.breadcrumbs a {
	text-decoration: none;
}

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

.section--dark .breadcrumbs li,
.page-hero--dark .breadcrumbs li,
.cs-hero .breadcrumbs li {
	color: var(--c-mist);
}

/* Search form */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.search-form input[type="search"] {
	flex: 1 1 12rem;
}

/* 404 */
.error-404 {
	text-align: center;
}

.error-404__inner {
	position: relative;
	z-index: 2;
	display: grid;
	gap: var(--space-md);
	justify-items: center;
}

.error-404__code {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(6rem, 20vw, 12rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2.5px var(--c-terracotta);
}

@supports not (-webkit-text-stroke: 2px black) {
	.error-404__code {
		color: var(--c-terracotta);
	}
}

.error-404 .search-form {
	width: 100%;
	max-width: 28rem;
}

.error-404 .hero__actions {
	justify-content: center;
}

.error-404 .topo-art {
	color: var(--c-slate);
	opacity: 0.08;
}

/*--------------------------------------------------------------
  09. Utilities
--------------------------------------------------------------*/

/* WordPress a11y helper */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	background: var(--c-cream);
	color: var(--c-charcoal);
	padding: 0.75rem 1.25rem;
	z-index: 200;
	top: 0.5rem;
	left: 0.5rem;
	box-shadow: var(--shadow-md);
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
}

/* Required WP classes */
.sticky {}
.bypostauthor {}
.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-size: var(--fs-xs);
	color: var(--text-muted);
	padding-top: 0.5rem;
}
.alignleft  { float: left;  margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

/* Reveal-on-scroll (activated by main.js via IntersectionObserver) */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/*--------------------------------------------------------------
  10. Premium graphics & 3D
--------------------------------------------------------------*/

/* Sections hosting decorative art: art sits behind, content above */
.has-art {
	position: relative;
	overflow: hidden;
}

.has-art > .container {
	position: relative;
	z-index: 2;
}

/* Film grain — a nod to the industry. Subtle noise on dark sections. */
.texture-grain {
	position: relative;
}

.texture-grain::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	/* No mix-blend-mode: blending a tiled noise layer forces expensive
	   compositing. Low opacity alone reads the same and stays cheap. */
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 240px 240px;
}

/* Topographic contour art (Atlas motif) */
.topo-art {
	position: absolute;
	z-index: 0;
	width: min(56rem, 90%);
	aspect-ratio: 900 / 620;
	opacity: 0.13;
	pointer-events: none;
	will-change: transform;
}

.topo-art__svg {
	width: 100%;
	height: 100%;
}

/* Parallax float: main.js writes --float-y on [data-float] elements */
[data-float] { translate: 0 var(--float-y, 0px); }

.topo-art--right  { right: -12%; top: 50%; translate: 0 calc(-50% + var(--float-y, 0px)); }
.topo-art--left   { left: -12%;  top: 50%; translate: 0 calc(-50% + var(--float-y, 0px)); }
.topo-art--center { left: 50%;   top: 50%; translate: -50% calc(-50% + var(--float-y, 0px)); }

/* Service line icons */
.service-icon {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--accent);
}

/* 3D tilt cards — rotation driven by main.js via --rx / --ry */
.card-3d {
	--rx: 0deg;
	--ry: 0deg;
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transform-style: preserve-3d;
	transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
	will-change: transform;
}

.card-3d:hover {
	box-shadow: var(--shadow-md);
}

.card-3d__raise {
	transform: translateZ(28px);   /* inner content floats above the card */
}

/* Work card — dark, metric-led card used for featured case studies */
.work-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-md);
	background: linear-gradient(155deg, rgba(58, 74, 84, 0.75), rgba(30, 42, 50, 0.9));
	border: 1px solid rgba(246, 241, 233, 0.1);
	border-radius: var(--radius);
	color: var(--c-cream);
}

.work-card__sector {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-mist);
}

.work-card__title {
	font-size: var(--fs-lg);
}

.work-card__title a {
	text-decoration: none;
}

.work-card__title a:hover {
	color: var(--accent);
}

.work-card__summary {
	font-size: var(--fs-sm);
	color: var(--c-mist);
}

.work-card__metrics {
	display: flex;
	gap: var(--space-lg);
	margin-top: var(--space-2xs);
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(246, 241, 233, 0.12);
}

.metric__value {
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	font-weight: 500;
	line-height: 1;
	color: var(--accent);
}

.metric__label {
	display: block;
	margin-top: 0.375rem;
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-mist);
}

/* Checklist rendered from "one per line" fields */
.check-list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.625rem;
}

.check-list li {
	position: relative;
	padding-left: 1.75rem;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 0.875rem;
	height: 0.5rem;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}

/* Layered 3D emblem — hero centerpiece */
.emblem-3d {
	--rx: 0deg;
	--ry: 0deg;
	position: relative;
	width: clamp(14rem, 30vw, 21rem);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
	transform-style: preserve-3d;
	transition: transform 0.3s var(--ease);
	will-change: transform;
}

.emblem-3d__ring {
	position: absolute;
	inset: 5%;
	border: 1px solid currentColor;
	opacity: 0.22;
	border-radius: 50%;
	transform: translateZ(-40px);
}

.emblem-3d__contours {
	position: absolute;
	inset: -14%;
	opacity: 0.16;
	transform: translateZ(-70px);
}

.emblem-3d__shadow,
.emblem-3d__mark {
	width: 58%;
}

.emblem-3d__shadow {
	position: absolute;
	filter: blur(16px);
	opacity: 0.4;
	transform: translateZ(-16px) translateY(7%);
}

.emblem-3d__shadow .ag-emblem__peak--main,
.emblem-3d__shadow .ag-emblem__peak--accent {
	fill: #000;
}

.emblem-3d__mark {
	position: relative;
	transform: translateZ(34px);
}

.emblem-3d .ag-emblem {
	width: 100%;
	height: auto;
}

/*--------------------------------------------------------------
  11. Front page — hero, marquee, credibility, grids, steps, CTA
--------------------------------------------------------------*/

/* Hero */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
}

/* Aurora: two soft radial glows behind the hero content */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(42rem circle at 82% 18%, rgba(193, 90, 60, 0.16), transparent 62%),
		radial-gradient(48rem circle at 12% 88%, rgba(58, 74, 84, 0.55), transparent 60%);
	pointer-events: none;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: var(--space-xl);
	align-items: center;
}

.hero__title {
	font-size: clamp(3rem, 2rem + 5.5vw, 5.75rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin-top: var(--space-sm);
}

.hero__title span {
	display: block;
}

.hero__accent {
	display: block;
	font-style: italic;
	font-weight: 400;
	color: var(--accent);
}

.hero__lead {
	margin-top: var(--space-md);
	max-width: 46ch;
	font-size: var(--fs-md);
	color: var(--c-mist);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.hero__art {
	display: flex;
	justify-content: center;
}

/* Scroll cue: thin line with a falling dot */
.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	translate: -50% 0;
	width: 1px;
	height: 3.25rem;
	background: rgba(246, 241, 233, 0.2);
	overflow: hidden;
}

.hero__scroll span {
	position: absolute;
	left: 0;
	top: -30%;
	width: 100%;
	height: 30%;
	background: var(--accent);
	animation: scroll-cue 2.2s var(--ease) infinite;
}

@keyframes scroll-cue {
	0%   { top: -30%; }
	70%, 100% { top: 105%; }
}

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { order: -1; margin-top: var(--space-sm); }
	.hero { min-height: 0; }
}

/* Tilted marquee band */
.marquee {
	position: relative;
	z-index: 4;
	background: var(--accent);
	color: var(--c-cream);
	padding-block: 0.8125rem;
	overflow: hidden;
	transform: rotate(-1.4deg) scale(1.02);
	margin-block: -1.25rem;
}

.marquee__track {
	display: flex;
	align-items: center;
	gap: 2.25rem;
	width: max-content;
	white-space: nowrap;
	animation: marquee 32s linear infinite;
}

.marquee__item {
	font-family: var(--font-display);
	font-size: 1.1875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.marquee__dot {
	font-size: 0.75rem;
	opacity: 0.7;
}

@keyframes marquee {
	to { transform: translateX(-50%); }
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

/* Section heading row: title left, "view all" link right */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-md);
	flex-wrap: wrap;
	margin-bottom: var(--space-lg);
}

.section-head__link {
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
	color: var(--c-terracotta-dark);
	white-space: nowrap;
	padding-bottom: 0.375rem;
}

.section--dark .section-head__link,
.on-dark .section-head__link {
	color: var(--c-terracotta-light);
}

.text-muted { color: var(--text-muted); }

/* Credibility strip */
.credibility {
	padding-top: calc(var(--section-pad) + 1.5rem);
}

.credibility__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: var(--space-xl);
	align-items: center;
}

.credibility__grid h2 { margin-block: var(--space-sm); }

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

.badge-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: var(--space-md);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
}

.badge::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--accent);
}

/* Stats with count-up */
.stat-row {
	display: flex;
	gap: var(--space-lg);
	flex-wrap: wrap;
	justify-content: flex-end;
}

.stat__value {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-2xl);
	font-weight: 500;
	line-height: 1;
	color: var(--accent);
}

.stat__label {
	display: block;
	margin-top: 0.375rem;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

@media (max-width: 900px) {
	.stat-row { justify-content: flex-start; }
}

/* Client logo placeholder zone */
.logo-strip {
	margin-top: var(--space-xl);
}

.logo-strip__note {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: var(--space-sm);
}

.logo-strip__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--space-sm);
}

.logo-strip__slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4.5rem;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

/* Service cards */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: var(--space-md);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	overflow: hidden;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

/* Accent line that grows across the top on hover */
.service-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--ease);
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	color: inherit;
}

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

.service-card__num {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	color: transparent;
	-webkit-text-stroke: 1px var(--c-sand);
}

.service-card__title { font-size: var(--fs-md); }

.service-card__desc {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.service-card__arrow {
	margin-top: auto;
	color: var(--accent);
	font-size: var(--fs-md);
	transition: translate var(--dur) var(--ease);
}

.service-card:hover .service-card__arrow {
	translate: 0.375rem 0;
}

/* Asymmetric featured-work grid: feature card spans two rows */
.work-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: var(--space-md);
}

.work-card--feature {
	grid-row: span 2;
	min-height: 100%;
}

.work-card--feature .work-card__title { font-size: var(--fs-xl); }

/* The feature card's photo stretches to fill the two-row height */
.work-card--feature .work-card__media {
	aspect-ratio: auto;
	flex: 1 1 auto;
	min-height: 14rem;
}

.work-card__media {
	display: block;
	margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-2xs);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
}

.work-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 900px) {
	.work-grid { grid-template-columns: 1fr; }
	.work-card--feature { grid-row: auto; }
}

/* Why: three columns over a giant outlined word */
.why { overflow: hidden; }

.section-word {
	position: absolute;
	inset-inline: 0;
	top: 0.25em;
	z-index: 0;
	font-family: var(--font-display);
	font-size: clamp(6rem, 20vw, 15rem);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	letter-spacing: 0.04em;
	color: transparent;
	-webkit-text-stroke: 1px var(--c-sand);
	pointer-events: none;
	user-select: none;
}

@supports not (-webkit-text-stroke: 1px black) {
	.section-word { color: var(--c-sand); opacity: 0.3; }
}

.why__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
	margin-top: var(--space-lg);
}

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

.why__num,
.step__num {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 5vw, 4rem);
	font-weight: 600;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent);
	margin-bottom: var(--space-sm);
}

@supports not (-webkit-text-stroke: 1px black) {
	.why__num, .step__num { color: var(--accent); }
}

.why__item h3 { margin-bottom: 0.5rem; }
.why__item p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Approach steps */
.steps {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-lg);
	counter-reset: step;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
	position: relative;
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(246, 241, 233, 0.16);
}

.step h3 { margin-bottom: 0.375rem; }
.step p { color: var(--c-mist); font-size: var(--fs-sm); }

/* CTA band */
.cta-band { text-align: center; }

.cta-band__title {
	font-size: var(--fs-hero);
}

.cta-band__lead {
	margin-top: var(--space-sm);
	color: var(--c-mist);
}

.cta-band__actions {
	justify-content: center;
	margin-top: var(--space-lg);
}

/*--------------------------------------------------------------
  12. About & Services pages
--------------------------------------------------------------*/

/* Dark page hero (About, Services, singles) */
.page-hero--dark {
	position: relative;
	padding: calc(var(--header-h) + var(--section-pad)) 0 var(--section-pad);
}

.page-hero--dark .page-hero__title {
	font-size: var(--fs-hero);
	max-width: 18ch;
}

.page-hero__lead {
	margin-top: var(--space-md);
	max-width: 52ch;
	font-size: var(--fs-md);
	color: var(--c-mist);
}

/* Photographic hero variant: image behind a slate gradient scrim */
.page-hero--image {
	background-image:
		linear-gradient(100deg, rgba(30, 42, 50, 0.92) 30%, rgba(30, 42, 50, 0.55) 70%, rgba(30, 42, 50, 0.35)),
		var(--hero-image);
	background-size: cover;
	background-position: center;
}

/* Story */
.story__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: var(--space-xl);
	align-items: center;
}

.story__grid h2 { margin-block: var(--space-sm); }
.story__grid p + p { margin-top: 1em; }

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

.pullquote {
	position: relative;
	padding: var(--space-lg);
	background: var(--c-slate);
	color: var(--c-cream);
	border-radius: var(--radius);
}

.pullquote p {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-lg);
	line-height: 1.35;
}

.pullquote cite {
	display: block;
	margin-top: var(--space-sm);
	font-style: normal;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-mist);
}

.pullquote::before {
	content: "\201C";
	position: absolute;
	top: -0.35em;
	left: 0.5rem;
	font-family: var(--font-display);
	font-size: 5rem;
	color: var(--accent);
	line-height: 1;
}

/* Values */
.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-lg);
}

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

.value-card h3 { margin-bottom: 0.375rem; }
.value-card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Team */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 24rem));
	gap: var(--space-lg);
	justify-content: center;
}

.team-card {
	background: linear-gradient(155deg, rgba(58, 74, 84, 0.75), rgba(30, 42, 50, 0.9));
	border: 1px solid rgba(246, 241, 233, 0.1);
	border-radius: var(--radius);
	overflow: hidden;
}

.team-card__photo {
	aspect-ratio: 4 / 3;
	background: var(--c-slate);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__photo .post-card__placeholder {
	height: 100%;
}

.team-card__body {
	padding: var(--space-md);
	display: grid;
	gap: var(--space-xs);
}

.team-card__name { font-size: var(--fs-lg); }

.team-card__role {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.team-card__bio { font-size: var(--fs-sm); color: var(--c-mist); }

.check-list--compact { gap: 0.375rem; font-size: var(--fs-sm); }

.team-card__links {
	display: flex;
	gap: var(--space-sm);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.team-card__links a { text-decoration: none; color: var(--accent); }

/* Services page: alternating rows */
.service-rows {
	display: grid;
	gap: var(--space-xl);
}

.service-row {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: var(--space-lg);
	align-items: start;
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border);
}

.service-row:nth-child(even) {
	grid-template-columns: 2fr 1fr;
}

.service-row:nth-child(even) .service-row__icon { order: 2; }
.service-row:nth-child(even) .service-row__body { order: 1; }

@media (max-width: 700px) {
	.service-row,
	.service-row:nth-child(even) { grid-template-columns: 1fr; }
	.service-row:nth-child(even) .service-row__icon { order: 0; }
}

.service-row__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.service-row__icon .service-icon {
	width: 3.5rem;
	height: 3.5rem;
}

.service-row__num {
	position: absolute;
	top: 0.75rem;
	right: 1rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: transparent;
	-webkit-text-stroke: 1px var(--c-sand);
}

.service-row__title { font-size: var(--fs-xl); }
.service-row__title a { text-decoration: none; }
.service-row__title a:hover { color: var(--accent); }

.service-row__desc {
	margin-block: var(--space-xs) var(--space-sm);
	color: var(--text-muted);
}

.service-row .check-list { margin-bottom: var(--space-sm); }

/* Single service */
.service-hero__icon .service-icon {
	width: 3rem;
	height: 3rem;
	margin-bottom: var(--space-sm);
	color: var(--accent);
}

.service-detail {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: var(--space-xl);
	align-items: start;
}

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

.service-detail__aside {
	display: grid;
	gap: var(--space-md);
}

.service-detail__box {
	padding: var(--space-md);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.service-detail__box-title {
	font-size: var(--fs-md);
	margin-bottom: var(--space-sm);
}

/* Even two-column variant of the work grid (related case studies) */
.work-grid--even { grid-template-columns: repeat(2, 1fr); }
.work-grid--even .work-card--feature { grid-row: auto; }

@media (max-width: 900px) { .work-grid--even { grid-template-columns: 1fr; } }

/*--------------------------------------------------------------
  13. Portfolio — filters, case study single, hero video
--------------------------------------------------------------*/

/* Ambient hero video (muted loop under the scrim) */
.hero--video {
	position: relative;
	overflow: hidden;
}

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

.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(30, 42, 50, 0.5), rgba(30, 42, 50, 0.85));
	pointer-events: none;
}

.hero--video > .container {
	position: relative;
	z-index: 2;
}

/* Filter bar */
.filter-bar {
	display: grid;
	gap: 0.75rem;
	margin-bottom: var(--space-lg);
}

.filter-bar__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.filter-bar__label {
	min-width: 3.75rem;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.filter-chip {
	font-family: inherit;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: inherit;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.4375rem 1.0625rem;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.filter-chip:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.filter-chip.is-active {
	background: var(--c-slate);
	border-color: var(--c-slate);
	color: var(--c-cream);
}

.work-card.is-filtered-out { display: none; }

.filter-empty {
	color: var(--text-muted);
	padding-block: var(--space-lg);
}

/* Case study hero meta */
.cs-hero .page-hero__title { max-width: 24ch; }

.cs-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-lg);
	margin: var(--space-lg) 0 0;
	padding-top: var(--space-md);
	border-top: 1px solid rgba(246, 241, 233, 0.18);
}

.cs-meta dt {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-mist);
}

.cs-meta dd {
	margin: 0.25rem 0 0;
	font-weight: 600;
}

/* Metrics band */
.metric-band {
	padding-block: var(--space-lg);
	border-top: 1px solid rgba(246, 241, 233, 0.1);
}

.metric-band__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--space-lg);
}

.metric__value--lg { font-size: var(--fs-2xl); }

/* Challenge → Approach → Results */
.cs-section {
	margin-bottom: var(--space-xl);
}

.cs-section h2 { margin-bottom: var(--space-sm); }

.cs-section .why__num {
	font-size: clamp(2.25rem, 4vw, 3rem);
	margin-bottom: 0.5rem;
}

/* Gallery */
.cs-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
}

@media (max-width: 700px) { .cs-gallery { grid-template-columns: 1fr; } }

.cs-gallery__item {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.cs-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Next case footer link */
.next-case__link {
	display: block;
	padding-block: var(--space-xl);
	text-decoration: none;
	color: var(--c-cream);
	transition: background-color var(--dur) var(--ease);
}

.next-case__link:hover {
	background: rgba(193, 90, 60, 0.14);
	color: var(--c-cream);
}

.next-case__title {
	display: inline-block;
	margin-top: 0.5rem;
	font-family: var(--font-display);
	font-size: var(--fs-2xl);
	font-weight: 500;
	line-height: 1.1;
	transition: color var(--dur) var(--ease);
}

.next-case__link:hover .next-case__title { color: var(--accent); }

/* Reveal stagger delays */
.js [data-reveal-delay="1"] { transition-delay: 0.1s; }
.js [data-reveal-delay="2"] { transition-delay: 0.2s; }
.js [data-reveal-delay="3"] { transition-delay: 0.3s; }
.js [data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Motion sensitivity: kill non-essential animation */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.card-3d,
	.emblem-3d,
	.topo-art,
	.btn {
		transform: none !important;
	}

	.marquee__track,
	.hero__scroll span {
		animation: none !important;
	}

	/* Ambient video is decoration; the poster/scrim carries the design */
	.hero-video {
		display: none;
	}
}
