/* ==========================================================================
   Augur Global – main stylesheet
   --------------------------------------------------------------------------
   1. Tokens          6. Hero              11. Sidebar
   2. Base            7. Front sections    12. Forms
   3. Typography      8. Page banner       13. Client portal
   4. Buttons/utils   9. Layout & content  14. Prefooter & footer
   5. Header & nav   10. Templates         15. Motion & responsive
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--c-red: #d62f2f;
	--c-red-dark: #b42424;
	--c-red-tint: rgba(214, 47, 47, 0.08);
	--c-black: #000;
	--c-header: rgba(0, 0, 0, 0.9);
	--c-dark: #252525;
	--c-deeper: #1c1c1c;
	--c-heading: #1c1c1c;
	--c-text: #767676;
	--c-text-dark: #4a4a4a;
	--c-on-dark: #ccc;
	--c-on-dark-muted: #999;
	--c-border: #e0e0e0;
	--c-muted-bg: #f5f5f5;
	--c-white: #fff;

	--f-head: "Hanken Grotesk", "Hanken Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Source Sans 3", "Source Sans Pro", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-h1: clamp(36px, 4.4vw, 52px);
	--fs-h2: clamp(30px, 3.4vw, 42px);
	--fs-h3: clamp(24px, 2.5vw, 32px);
	--fs-h4: clamp(20px, 1.9vw, 25px);
	--fs-h5: 20px;
	--fs-h6: 18px;
	--fs-body: 16px;
	--fs-nav: 13px;

	--container: 1200px;
	--gutter: 24px;
	--header-h: 88px;
	--header-h-scrolled: 72px;
	--radius: 2px;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-scrolled) + 16px); }

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: var(--fs-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

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

svg.icon { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: middle; }

a { color: var(--c-red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-red-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--c-border); margin: 48px 0; }

address { font-style: normal; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 100000; top: 12px; left: 12px; padding: 14px 22px;
	background: var(--c-red); color: #fff; font-weight: 700;
}

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

/* 3. Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--f-head);
	color: var(--c-heading);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}
h1, .h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.35; }
h5, .h5 { font-size: var(--fs-h5); text-transform: uppercase; letter-spacing: 0.04em; }
h6, .h6 { font-size: var(--fs-h6); font-weight: 600; letter-spacing: 0.02em; }

p { margin: 0 0 1.4em; }

.lead {
	font-family: var(--f-body);
	font-size: var(--fs-h4);
	line-height: 1.5;
	color: var(--c-dark);
	font-weight: 400;
	margin-bottom: 1.2em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--c-red);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--c-red); }
.eyebrow--light { color: #fff; }

.section-heading { margin-bottom: 56px; max-width: 760px; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading .section-title { margin-bottom: 0; }
.section-heading .section-intro { margin: 18px 0 0; font-size: 18px; }

.text-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--f-head); font-size: 13px; font-weight: 700;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-red);
}
.text-link svg { transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

.muted { color: var(--c-on-dark-muted); }

/* 4. Buttons -------------------------------------------------------------- */
.btn,
.wp-block-button__link,
input[type="submit"],
button.button,
.login-submit .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 28px;
	border: 2px solid var(--c-red);
	border-radius: var(--radius);
	background: var(--c-red);
	color: #fff;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.login-submit .button:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); color: #fff; }

.btn--outline { background: transparent; color: var(--c-red); }
.btn--outline:hover { background: var(--c-red); color: #fff; }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--c-black); }

.btn--dark { background: var(--c-deeper); border-color: var(--c-deeper); color: #fff; }
.btn--dark:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn--lg { min-height: 58px; padding: 0 34px; }
.btn--block { width: 100%; }

.is-style-outline .wp-block-button__link { background: transparent; color: var(--c-red); }

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0 100px; }
.section--muted { background: var(--c-muted-bg); }
.section-cta { text-align: center; margin-top: 56px; }

/* 5. Header & navigation -------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	height: var(--header-h);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
	transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled {
	height: var(--header-h-scrolled);
	background: var(--c-header);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.25);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.site-branding { flex: 0 0 auto; }
.site-branding .custom-logo-link { display: block; }
.site-branding img { width: auto; height: 54px; transition: height .35s var(--ease); }
.site-header.is-scrolled .site-branding img { height: 46px; }

.main-nav { margin-left: auto; }
.primary-menu,
.primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 4px; }
.primary-menu > li { position: relative; display: flex; align-items: center; }
.primary-menu a {
	display: block;
	color: #fff;
	font-family: var(--f-head);
	font-size: var(--fs-nav);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.primary-menu > li > a { position: relative; padding: 12px 14px; }
.primary-menu > li > a::after {
	content: "";
	position: absolute; left: 14px; right: 14px; bottom: 4px;
	height: 2px; background: var(--c-red);
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--ease);
}
.primary-menu > li:hover > a::after,
.primary-menu > li:focus-within > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after,
.primary-menu > .current-menu-parent > a::after,
.primary-menu > .current_page_item > a::after { transform: scaleX(1); }
.primary-menu > .menu-item-has-children > a { padding-right: 4px; }
.primary-menu > .menu-item-has-children > a::after { right: 4px; }

.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 32px; padding: 0; margin-right: 6px;
	border: 0; background: none; color: rgba(255, 255, 255, 0.75); cursor: pointer;
}
.submenu-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

.primary-menu .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 250px;
	padding: 10px 0;
	background: var(--c-deeper);
	border-top: 2px solid var(--c-red);
	box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.5);
	opacity: 0; visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu,
.primary-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu > li:hover > .submenu-toggle svg,
.primary-menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-menu .sub-menu a {
	padding: 11px 24px;
	font-size: 12.5px;
	color: var(--c-on-dark);
	border-left: 2px solid transparent;
	transition: background .2s, color .2s, border-color .2s, padding .2s;
}
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	border-left-color: var(--c-red);
	padding-left: 28px;
}

/* Client login menu item: lock + subtle pill. */
.primary-menu > .menu-item--login > a {
	display: inline-flex; align-items: center; gap: 8px;
	margin-left: 8px; padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius);
}
.primary-menu > .menu-item--login > a::before {
	content: "";
	width: 13px; height: 13px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.primary-menu > .menu-item--login > a::after { display: none; }
.primary-menu > .menu-item--login > a:hover { border-color: var(--c-red); background: var(--c-red); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-cta { margin-left: 8px; }

.main-nav__panel-head,
.main-nav__mobile-extra { display: none; }

.nav-toggle {
	display: none;
	width: 48px; height: 48px; padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius);
	background: transparent; cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; margin: 0 auto; }
.nav-toggle__bars span { display: block; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle__bars span:nth-child(2) { width: 70%; justify-self: end; }

.nav-overlay {
	position: fixed; inset: 0; z-index: 999;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0; transition: opacity .3s var(--ease);
}
.nav-is-open .nav-overlay { opacity: 1; }

/* 6. Hero ----------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 640px;
	height: 100vh;
	max-height: 960px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--c-black);
	color: #fff;
}
.hero__slides,
.hero__slide,
.hero__vignette,
.hero__grid-lines { position: absolute; inset: 0; }
.hero__slide {
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity 1.4s var(--ease), transform 9s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__vignette {
	background:
		radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.85) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.2) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 35%);
}
.hero__grid-lines {
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: calc(100% / 6) 100%;
	pointer-events: none;
}
.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero__content > * { max-width: 760px; }
.hero__title { color: #fff; font-size: clamp(38px, 5vw, 52px); margin-bottom: 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero__subtitle {
	font-family: var(--f-head);
	font-size: var(--fs-h4);
	font-weight: 500;
	color: var(--c-on-dark);
	letter-spacing: 0.01em;
	margin-bottom: 18px;
	padding-left: 18px;
	border-left: 3px solid var(--c-red);
}
.hero__text { font-size: 18px; color: var(--c-on-dark); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__controls {
	position: absolute; left: 0; right: 0; bottom: 44px; z-index: 3;
	display: flex; align-items: center; gap: 18px;
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 56px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hero__dot span { position: relative; display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--c-red); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { animation: augur-progress var(--hero-interval, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
.hero__pause { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__pause span { width: 8px; height: 9px; border-left: 2px solid #fff; border-right: 2px solid #fff; }
.hero.is-paused .hero__pause span { width: 0; height: 0; border: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
@keyframes augur-progress { to { transform: scaleX(1); } }

.hero__scroll { position: absolute; z-index: 3; right: var(--gutter); bottom: 40px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 1px; animation: augur-scroll 1.8s infinite; }
@keyframes augur-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 1300px) { .hero__scroll { right: calc((100vw - var(--container)) / 2); } }

/* 7. Front page sections -------------------------------------------------- */
.credentials { background: var(--c-deeper); color: var(--c-on-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.credentials__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.credential { position: relative; padding: 40px 28px 38px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.credential:last-child { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.credential::before { content: ""; position: absolute; top: 0; left: 28px; width: 32px; height: 3px; background: var(--c-red); }
.credential__value { display: block; font-family: var(--f-head); font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.credential__label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-on-dark-muted); line-height: 1.5; }

.mission__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 88px; align-items: center; }
.mission__text .entry-content p:last-child { margin-bottom: 0; }
.mission__media { position: relative; padding: 0 0 56px 0; }
.mission__media .framed-image { margin-right: 22px; }
.mission__media .framed-image img { aspect-ratio: 5 / 4; object-position: 28% center; }

.framed-image { position: relative; margin: 0; z-index: 0; }
.framed-image::before {
	content: "";
	position: absolute; z-index: -1;
	top: 22px; left: 22px; right: -22px; bottom: -22px;
	border: 2px solid var(--c-red);
}
.framed-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.framed-image--wide img { aspect-ratio: 16 / 9; }
.framed-image--wide { margin: 40px 22px 64px 0; }

.mission__quote {
	position: absolute; left: -40px; bottom: 0; z-index: 2;
	max-width: 360px; margin: 0;
	padding: 28px 30px;
	background: var(--c-black);
	color: #fff;
	border-left: 4px solid var(--c-red);
	box-shadow: var(--shadow);
}
.mission__quote svg { width: 26px; height: 26px; color: var(--c-red); margin-bottom: 12px; }
.mission__quote p { margin: 0; font-family: var(--f-head); font-size: 18px; line-height: 1.45; font-weight: 500; }

/* Service grid */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { position: relative; background: #fff; border: 1px solid var(--c-border); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__link { display: flex; flex-direction: column; height: 100%; padding: 44px 36px 36px; color: inherit; }
.service-card__link:hover { color: inherit; }
.service-card__num { position: absolute; top: 28px; right: 32px; font-family: var(--f-head); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: #c9c9c9; }
.service-card__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 28px; background: var(--c-red-tint); color: var(--c-red); transition: background .35s, color .35s; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--c-red); color: #fff; }
.service-card__title { font-size: 22px; margin-bottom: 12px; }
.service-card__text { margin-bottom: 26px; flex: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-red); }
.service-card__more svg { transition: transform .25s var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(5px); }

/* Insight */
.insight__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.insight__head .section-heading { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-grid--1 { grid-template-columns: 1fr; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__media { display: block; overflow: hidden; background: var(--c-deeper); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: 0.92; }
.post-card:hover .post-card__media img { transform: scale(1.04); opacity: 1; }
.post-card__body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.post-card__cat { display: inline-block; padding: 4px 10px; background: var(--c-red); color: #fff; font-family: var(--f-head); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.post-card__title { font-size: 22px; line-height: 1.3; }
.post-card__title a { color: var(--c-heading); }
.post-card__title a:hover { color: var(--c-red); }
.post-card__excerpt { flex: 1; }
.post-card--featured { flex-direction: row; }
.post-card--featured .post-card__media { flex: 0 0 46%; }
.post-card--featured .post-card__media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.post-card--featured .post-card__body { padding: 48px 52px; justify-content: center; }
.post-card--featured .post-card__title { font-size: var(--fs-h3); }
.post-list { display: grid; gap: 28px; }
.post-list .post-card--featured .post-card__media img { min-height: 260px; }
.post-list .post-card--featured .post-card__title { font-size: 24px; }
.post-list .post-card--featured .post-card__body { padding: 34px 38px; }

/* 8. Page banner ---------------------------------------------------------- */
.page-banner {
	position: relative;
	min-height: 350px;
	display: flex;
	align-items: flex-end;
	padding: calc(var(--header-h) + 40px) 0 56px;
	background-color: var(--c-deeper);
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}
.page-banner__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%); }
.page-banner__overlay::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.page-banner__inner { position: relative; z-index: 2; }
.page-banner__title { color: #fff; margin: 0; max-width: 900px; }
.page-banner__subtitle { margin: 14px 0 0; max-width: 720px; font-size: 19px; color: var(--c-on-dark); }
.page-banner__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 20px; font-size: 14px; color: var(--c-on-dark); }
.post-meta__item { display: inline-flex; align-items: center; gap: 8px; }
.post-meta__item svg { color: var(--c-red); }

.breadcrumbs { margin-bottom: 18px; font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; color: #fff; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px; border-top: 1.5px solid var(--c-red); border-right: 1.5px solid var(--c-red); transform: rotate(45deg); }
.breadcrumbs a { color: var(--c-on-dark); }
.breadcrumbs a:hover { color: #fff; }

/* 9. Layout & content ----------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); gap: 72px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout--full .layout__main { max-width: 900px; }
.layout--full .entry-content--wide,
.page-template-template-full-width .layout--full .layout__main { max-width: none; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(28px, 3vw, 36px); margin-top: 1.4em; }
.entry-content h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 1.4em; }
.entry-content h4 { margin-top: 1.4em; }
.entry-content ul:not(.check-list):not([class*="wp-block"]),
.entry-content ol:not([class*="wp-block"]) { margin: 0 0 1.6em; padding-left: 0; list-style: none; }
.entry-content ul:not(.check-list):not([class*="wp-block"]) li,
.entry-content ol:not([class*="wp-block"]) li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.entry-content ul:not(.check-list):not([class*="wp-block"]) li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px; background: var(--c-red); }
.entry-content ol:not([class*="wp-block"]) { counter-reset: augur-ol; }
.entry-content ol:not([class*="wp-block"]) li { counter-increment: augur-ol; }
.entry-content ol:not([class*="wp-block"]) li::before { content: counter(augur-ol, decimal-leading-zero); position: absolute; left: 0; font-family: var(--f-head); font-weight: 700; font-size: 13px; color: var(--c-red); top: 0.2em; }
.entry-content blockquote,
.wp-block-quote {
	margin: 2em 0;
	padding: 6px 0 6px 28px;
	border-left: 4px solid var(--c-red);
	font-family: var(--f-head);
	font-size: 21px;
	line-height: 1.5;
	color: var(--c-heading);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--c-text); }
.entry-content strong { color: var(--c-dark); }
.entry-content img { margin: 0 auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 14px; margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
.entry-content th,
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; }
.entry-content th { font-family: var(--f-head); color: var(--c-heading); }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.page-links { margin-top: 24px; }

/* 10. Template components ------------------------------------------------- */
.service-intro { display: flex; align-items: flex-start; gap: 28px; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--c-border); }
.service-intro__icon { flex: 0 0 72px; height: 72px; display: grid; place-items: center; background: var(--c-red); color: #fff; }
.service-intro__icon svg { width: 34px; height: 34px; }
.service-intro .lead { margin: 0; }

.callout { display: flex; gap: 22px; align-items: flex-start; margin: 48px 0; padding: 34px 38px; background: var(--c-black); color: #fff; border-left: 4px solid var(--c-red); }
.callout svg { width: 30px; height: 30px; color: var(--c-red); flex: 0 0 auto; margin-top: 2px; }
.callout p { margin: 0; font-family: var(--f-head); font-size: 21px; line-height: 1.45; font-weight: 500; }

.deliverables { margin: 56px 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--c-muted-bg); border-left: 2px solid var(--c-red); color: var(--c-text-dark); line-height: 1.5; }
.check-list svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--c-red); color: #fff; stroke-width: 3; }
.deliverables__note { margin: 24px 0 0; }

.process { margin: 56px 0; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 0; position: relative; counter-reset: none; }
.process__steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: calc(100% / var(--steps, 5) - 24px); height: 2px; background: var(--c-border); }
.process__step { position: relative; padding: 0 18px 0 0; }
.process__num { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border: 2px solid var(--c-red); border-radius: 50%; background: #fff; color: var(--c-red); font-family: var(--f-head); font-weight: 700; font-size: 15px; transition: background .3s, color .3s; }
.process__step:hover .process__num { background: var(--c-red); color: #fff; }
.process__title { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.process__text { font-size: 15px; line-height: 1.55; margin: 0; }

.service-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--c-border); }
.service-pager__link { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--c-border); color: var(--c-heading); font-family: var(--f-head); font-weight: 600; font-size: 18px; transition: border-color .25s, background .25s; }
.service-pager__link small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text); margin-bottom: 2px; }
.service-pager__link svg { width: 22px; height: 22px; color: var(--c-red); }
.service-pager__link:hover { border-color: var(--c-red); color: var(--c-red); }
.service-pager__link--next { justify-content: flex-end; text-align: right; }

.overview-services { margin-top: 56px; }
.service-grid-wrap--compact .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-grid-wrap--compact .service-card__link { padding: 36px 30px 30px; }

.about-intro--media { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.about-intro__media { margin-top: 8px; margin-right: 22px; }
.team-panel { margin: 56px 0; padding: 40px 44px; background: var(--c-muted-bg); border-top: 3px solid var(--c-red); }
.team-panel__head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.team-panel__head > svg { width: 44px; height: 44px; padding: 10px; flex: 0 0 auto; background: var(--c-black); color: #fff; }
.team-panel__head h2 { margin-bottom: 8px; }
.team-panel__head p { margin: 0; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li { padding: 9px 16px; background: #fff; border: 1px solid var(--c-border); font-family: var(--f-head); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--c-heading); }

.values { margin-top: 72px; }
.values .section-heading { margin-bottom: 36px; }
.values__list { display: grid; gap: 18px; }
.value-card { display: flex; gap: 28px; padding: 34px 36px; border: 1px solid var(--c-border); background: #fff; transition: border-color .3s, box-shadow .3s; }
.value-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.value-card__icon { flex: 0 0 64px; height: 64px; display: grid; place-items: center; background: var(--c-red-tint); color: var(--c-red); }
.value-card__icon svg { width: 30px; height: 30px; }
.value-card__num { margin: 0 0 4px; font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--c-red); }
.value-card__title { font-size: var(--fs-h4); margin-bottom: 10px; }
.value-card p:last-child { margin-bottom: 0; }

.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.office-card { position: relative; padding: 40px 36px 36px; border: 1px solid var(--c-border); background: #fff; }
.office-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 64px; height: 3px; background: var(--c-red); }
.office-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.office-card__icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--c-black); color: #fff; }
.office-card__icon svg { width: 22px; height: 22px; }
.office-card__label { font-size: var(--fs-h5); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.office-card__address { margin-bottom: 22px; line-height: 1.75; }
.office-card__address strong { color: var(--c-heading); }
.office-card__contact { list-style: none; margin: 0 0 18px; padding: 18px 0 0; border-top: 1px solid var(--c-border); }
.office-card__contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.office-card__contact svg { color: var(--c-red); }
.office-card__contact .label { min-width: 46px; font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-heading); }
.office-card__contact a { color: var(--c-text-dark); word-break: break-word; }
.office-card__contact a:hover { color: var(--c-red); }
.contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 40px; padding: 36px 40px; background: var(--c-dark); color: var(--c-on-dark); }
.contact-cta h2 { color: #fff; margin-bottom: 6px; }
.contact-cta p { margin: 0; }
.contact-cta .btn { flex: 0 0 auto; white-space: nowrap; }

.single-post__image { margin: 0 0 40px; }
.single-post__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.single-post__share { display: flex; gap: 16px; align-items: center; font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.single-post__share span { color: var(--c-heading); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tag-list a { display: inline-block; padding: 5px 12px; border: 1px solid var(--c-border); font-size: 13px; color: var(--c-text-dark); }
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 22px 24px; border: 1px solid var(--c-border); }
.post-navigation a:hover { border-color: var(--c-red); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text); }
.post-navigation .nav-title { display: block; font-family: var(--f-head); color: var(--c-heading); font-weight: 600; margin-top: 4px; line-height: 1.35; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--c-border); color: var(--c-heading); font-family: var(--f-head); font-weight: 600; }
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.empty-state { text-align: center; padding: 40px 0; }
.empty-state > svg { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--c-red); }
.empty-state .search-form { max-width: 460px; margin: 28px auto 0; }
.empty-state__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.notice-inline { padding: 16px 20px; background: #fff8e5; border-left: 4px solid #e0a800; }

.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }

/* 11. Sidebar ------------------------------------------------------------- */
.sidebar { display: grid; gap: 28px; align-content: start; }
.widget { margin: 0; }
.widget-title { font-size: 28px; margin-bottom: 18px; }
.widget ul { list-style: none; margin: 0; padding: 0; }

.widget--services { border: 1px solid var(--c-border); }
.widget--services .widget-title { margin: 0; padding: 20px 24px; background: var(--c-black); color: #fff; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.services-nav li + li { border-top: 1px solid var(--c-border); }
.services-nav a { display: flex; align-items: center; gap: 14px; padding: 15px 22px; color: var(--c-heading); font-family: var(--f-head); font-weight: 600; font-size: 15px; transition: background .2s, color .2s, padding .2s; }
.services-nav a > svg:first-child { width: 20px; height: 20px; color: var(--c-red); }
.services-nav__arrow { margin-left: auto; width: 16px !important; height: 16px !important; opacity: 0.4; }
.services-nav a:hover { background: var(--c-muted-bg); padding-left: 26px; color: var(--c-red); }
.services-nav .is-current a { background: var(--c-red); color: #fff; }
.services-nav .is-current a svg { color: #fff; opacity: 1; }

.widget--testimonial { position: relative; padding: 40px 34px 34px; background: var(--c-deeper); color: var(--c-on-dark); overflow: hidden; }
.widget--testimonial::after { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 3px; background: var(--c-red); }
.widget--testimonial .widget-title { color: #fff; }
.widget--testimonial .widget-title { padding-right: 56px; }
.testimonial { margin: 0; }
.testimonial__mark { position: absolute; top: 22px; right: 26px; height: 56px; font-family: Georgia, serif; font-size: 110px; line-height: 0.9; color: var(--c-red); opacity: 0.55; pointer-events: none; }
.testimonial__quote { margin: 0 0 24px; padding: 0; border: 0; font-family: var(--f-body); font-size: 17px; font-style: italic; line-height: 1.7; color: var(--c-on-dark); }
.testimonial__quote p { margin: 0; }
.testimonial__cite { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.testimonial__cite strong { display: block; color: #fff; font-family: var(--f-head); font-weight: 600; }
.testimonial__cite span { display: block; font-size: 14px; color: var(--c-on-dark-muted); line-height: 1.5; margin-top: 2px; }

.widget--cta { position: relative; padding: 36px 34px; border: 1px solid var(--c-border); border-top: 3px solid var(--c-red); background: #fff; }
.widget--cta__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; background: var(--c-red-tint); color: var(--c-red); }
.widget--cta__icon svg { width: 24px; height: 24px; }
.widget--cta__phone { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.widget--cta__phone svg { color: var(--c-red); }
.widget--cta__phone a { color: var(--c-heading); }
.widget--cta__phone a:hover { color: var(--c-red); }

/* Default WP widgets in sidebar-1 */
.sidebar .widget:not(.widget--services):not(.widget--testimonial):not(.widget--cta) { padding: 30px; border: 1px solid var(--c-border); }
.sidebar .widget li { padding: 8px 0; border-bottom: 1px solid var(--c-border); }

.search-form { display: flex; border: 1px solid var(--c-border); background: #fff; }
.search-form__input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; background: transparent; font: inherit; color: var(--c-heading); }
.search-form__input:focus { outline: none; }
.search-form:focus-within { border-color: var(--c-red); }
.search-form__submit { width: 54px; border: 0; background: var(--c-red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-form__submit svg { width: 20px; height: 20px; }

/* 12. Forms --------------------------------------------------------------- */
.form-panel { padding: 48px; border: 1px solid var(--c-border); background: #fff; }
.form-panel__head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--c-border); }
.form-panel__icon { flex: 0 0 56px; height: 56px; display: grid; place-items: center; background: var(--c-red); color: #fff; }
.form-panel__icon svg { width: 28px; height: 28px; }
.form-panel__title { font-size: var(--fs-h3); margin-bottom: 8px; }
.form-panel__head p { margin: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-field { display: flex; flex-direction: column; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field > label,
.form-checks legend,
.login-username label,
.login-password label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--f-head);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-heading);
}
.req { color: var(--c-red); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"]:not(.search-form__input),
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 52px;
	padding: 13px 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fafafa;
	color: var(--c-heading);
	font: inherit;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--c-red); background: #fff; box-shadow: 0 0 0 3px rgba(214, 47, 47, 0.15); }
.has-error input,
.has-error textarea { border-color: var(--c-red); background: #fff6f6; }

.form-checks { margin: 0; padding: 0; border: 0; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--c-border); background: #fafafa; cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: #bbb; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: 0 0 20px; height: 20px; display: grid; place-items: center; border: 2px solid #bbb; background: #fff; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.check__box svg { width: 13px; height: 13px; stroke-width: 3.5; }
.check__label { font-size: 15px; color: var(--c-heading); line-height: 1.3; }
.check input:checked ~ .check__box { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.check:has(input:checked) { border-color: var(--c-red); background: #fff; }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--c-red); outline-offset: 2px; }

.form-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-privacy { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; max-width: 420px; line-height: 1.5; }
.form-privacy svg { color: var(--c-red); flex: 0 0 auto; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; margin-bottom: 28px; border-left: 4px solid; }
.form-alert p { margin: 0; }
.form-alert ul { margin: 8px 0 0; padding-left: 18px; }
.form-alert--success { background: #effaf3; border-color: #1f8a4c; color: #1b5e37; }
.form-alert--success svg { width: 22px; height: 22px; color: #1f8a4c; flex: 0 0 auto; margin-top: 2px; }
.form-alert--error { background: #fff4f4; border-color: var(--c-red); color: #8f1f1f; }

/* 13. Client portal ------------------------------------------------------- */
.auth-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border: 1px solid var(--c-border); box-shadow: var(--shadow); background: #fff; }
.auth-card__aside { position: relative; padding: 56px 48px; background: var(--c-black); color: var(--c-on-dark); overflow: hidden; }
.auth-card__aside::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000); -webkit-mask-image: linear-gradient(180deg, transparent, #000); }
.auth-card__aside > * { position: relative; }
.auth-card__aside > svg { width: 52px; height: 52px; padding: 12px; margin-bottom: 28px; background: var(--c-red); color: #fff; }
.auth-card__aside h2 { color: #fff; font-size: var(--fs-h3); }
.auth-card__main { padding: 56px 48px; }
.auth-card__help { margin: 24px 0 0; font-size: 14px; }
#augur-login p { margin: 0 0 18px; }
#augur-login .login-remember label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--c-heading); cursor: pointer; }
#augur-login .login-remember input { width: 18px; height: 18px; accent-color: var(--c-red); }
#augur-login .login-submit .button { width: 100%; }
.post-password-form .form-field { margin-bottom: 20px; }
.auth-form__intro { margin-bottom: 22px; }

.portal-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--c-border); }
.portal-welcome h2 { margin: 0; }
.portal-welcome .eyebrow { margin-bottom: 8px; }
.briefs { margin-top: 48px; }
.brief-list li + li { margin-top: 10px; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--c-border); color: var(--c-heading); transition: border-color .2s, background .2s; }
.brief-list a:hover { border-color: var(--c-red); background: #fffafa; }
.brief-list a > svg:first-child { width: 22px; height: 22px; color: var(--c-red); }
.brief-list__title { font-family: var(--f-head); font-weight: 600; flex: 1; }
.brief-list time { font-size: 14px; color: var(--c-text); }

/* 14. Pre-footer & footer ------------------------------------------------- */
.prefooter { padding: 90px 0; background: var(--c-dark); color: var(--c-on-dark); }
.prefooter__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 10px; }
.prefooter-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 48px 48px 44px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); transition: border-color .3s, background .3s; }
.prefooter-card:hover { border-color: rgba(214, 47, 47, 0.6); background: rgba(0, 0, 0, 0.42); }
.prefooter-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border: 1px solid rgba(214, 47, 47, 0.5); color: var(--c-red); }
.prefooter-card__icon svg { width: 24px; height: 24px; }
.prefooter-card__title { color: #fff; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; max-width: 420px; margin-bottom: 30px; flex: 1; }

.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); font-size: 15px; }
.site-footer__top { padding: 72px 0 64px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 56px; }
.footer-title { position: relative; margin: 0 0 26px; padding-bottom: 16px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--c-red); }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; line-height: 1.6; }
.footer-contact svg { color: var(--c-red); margin-top: 4px; }
.footer-contact strong { color: #fff; font-weight: 600; }
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: #fff; }
.footer-legal { margin: 0 0 24px; }
.footer-legal div { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.footer-legal div:first-child { padding-top: 0; }
.footer-legal dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-on-dark-muted); }
.footer-legal dd { margin: 2px 0 0; color: #fff; font-family: var(--f-head); font-weight: 500; }
.footer-badge { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.5; }
.footer-badge svg { width: 22px; height: 22px; color: var(--c-red); }
.footer-insight { padding: 24px; background: rgba(0, 0, 0, 0.25); border-left: 3px solid var(--c-red); }
.footer-insight__date { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-insight__title { margin: 0 0 10px; font-size: 18px; line-height: 1.4; }
.site-footer .footer-insight__title a { color: #fff; }
.site-footer .footer-insight__title a:hover { color: var(--c-red); }
.footer-insight__excerpt { margin: 0 0 14px; line-height: 1.6; }
.site-footer .text-link { color: var(--c-red); }

.site-footer__bottom { background: var(--c-deeper); }
.colophon { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; }
.colophon__copy { margin: 0; }
.colophon__nav { margin-left: auto; }
.colophon__nav .menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.back-to-top { display: grid; place-items: center; width: 44px; height: 44px; background: var(--c-red); color: #fff !important; transition: background .25s, transform .25s; }
.colophon__copy + .back-to-top { margin-left: auto; }
.back-to-top:hover { background: var(--c-red-dark); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* 15. Motion ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .service-card[data-reveal],
.js .service-grid .service-card { transition-delay: calc(var(--i, 0) * 70ms); }
.js .service-grid .service-card { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.js .service-grid.is-visible .service-card { opacity: 1; transform: none; }
.js .service-grid.is-visible .service-card:hover { transform: translateY(-6px); transition-delay: 0s; }

.hero__content > * { animation: augur-rise 1s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .36s; }
.hero__content > *:nth-child(5) { animation-delay: .48s; }
@keyframes augur-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js [data-reveal], .js .service-grid .service-card { opacity: 1; transform: none; }
	.hero__slide { transform: none !important; }
}

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1199px) {
	.header-cta { display: none; }
	.primary-menu > li > a { padding: 12px 10px; }
	.primary-menu > li > a::after { left: 10px; right: 10px; }
	.mission__grid { gap: 60px; }
	.layout { gap: 48px; }
	.about-intro--media { grid-template-columns: 1fr; }
	.about-intro__media { max-width: 280px; }
}

/* Mobile navigation trigger: < 992px */
@media (max-width: 991px) {
	:root { --header-h: 76px; --header-h-scrolled: 66px; }
	.site-branding img { height: 46px; }
	.site-header.is-scrolled .site-branding img { height: 40px; }
	.nav-toggle { display: inline-grid; place-items: center; }
	/* backdrop-filter would make the fixed drawer position relative to the header. */
	.site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.94); }
	.site-header__actions { margin-left: auto; }

	.main-nav { margin: 0; }
	.main-nav__panel {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002;
		width: min(380px, 88vw);
		display: flex; flex-direction: column;
		padding: 0 0 32px;
		background: var(--c-deeper);
		border-left: 2px solid var(--c-red);
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .4s var(--ease), visibility .4s;
	}
	.nav-is-open .main-nav__panel { transform: none; visibility: visible; }
	.admin-bar .main-nav__panel { top: 46px; }

	.main-nav__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
	.main-nav__panel-title { font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-on-dark-muted); }
	.nav-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); background: none; color: #fff; cursor: pointer; }
	.nav-close svg { width: 20px; height: 20px; }

	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
	.primary-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
	.primary-menu > li > a { flex: 1; padding: 18px 24px; font-size: 14px; }
	.primary-menu > li > a::after { display: none; }
	.primary-menu > .current-menu-item > a,
	.primary-menu > .current-menu-ancestor > a { color: var(--c-red); }
	.submenu-toggle { width: 56px; height: 56px; margin: 0; border-left: 1px solid rgba(255, 255, 255, 0.06); }
	.submenu-toggle svg { width: 18px; height: 18px; }
	.primary-menu > li:hover > .submenu-toggle svg { transform: none; }
	.primary-menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.primary-menu .sub-menu { position: static; flex: 0 0 100%; min-width: 0; display: none; padding: 0 0 10px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: rgba(0, 0, 0, 0.25); }
	.primary-menu > li:hover > .sub-menu,
	.primary-menu > li:focus-within > .sub-menu { display: none; }
	.primary-menu > li.is-open > .sub-menu { display: block; }
	.primary-menu .sub-menu a { padding: 12px 24px 12px 38px; font-size: 13px; }
	.primary-menu .sub-menu a:hover { padding-left: 42px; }
	.primary-menu > .menu-item--login > a { margin: 16px 24px 8px; padding: 14px 18px; justify-content: center; }
	.primary-menu > .menu-item--login { border-bottom: 0; }

	.main-nav__mobile-extra { display: grid; gap: 14px; margin-top: auto; padding: 24px; }
	.main-nav__mobile-extra a:not(.btn) { display: flex; align-items: center; gap: 12px; color: var(--c-on-dark); font-size: 15px; }
	.main-nav__mobile-extra svg { color: var(--c-red); }
	.main-nav__mobile-extra .btn { margin-top: 8px; }

	.section { padding: 80px 0; }
	.section--tight { padding: 56px 0 72px; }
	.credentials__grid { grid-template-columns: repeat(2, 1fr); }
	.credential:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
	.credential:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
	.mission__grid { grid-template-columns: 1fr; }
	.mission__media { max-width: 560px; padding-bottom: 0; }
	.mission__quote { position: relative; left: auto; bottom: auto; margin: -40px 0 0 24px; }
	.framed-image img { aspect-ratio: 4 / 3; }
	.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid { grid-template-columns: 1fr; }
	.post-card--featured { flex-direction: column; }
	.post-card--featured .post-card__media { flex-basis: auto; }
	.post-card--featured .post-card__media img { min-height: 0; aspect-ratio: 16 / 9; }
	.post-card--featured .post-card__body { padding: 32px; }
	.layout { grid-template-columns: 1fr; gap: 56px; }
	.sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.process__steps { grid-template-columns: 1fr; gap: 22px; }
	.process__steps::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 2px; height: auto; }
	.process__step { display: grid; grid-template-columns: 50px 1fr; column-gap: 20px; padding: 0; }
	.process__num { grid-row: span 2; margin: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-col--insight { grid-column: 1 / -1; }
	.auth-card { grid-template-columns: 1fr; }
}

/* Single-column collapse: < 768px */
@media (max-width: 767px) {
	:root { --gutter: 20px; }
	.admin-bar .site-header { top: 46px; }
	body { font-size: 16px; }
	.hero { min-height: 600px; height: 92vh; }
	.hero__subtitle { font-size: 20px; }
	.hero__actions .btn { width: 100%; }
	.hero__controls { bottom: 28px; }
	.hero__scroll { display: none; }
	.hero__grid-lines { background-size: 33.333% 100%; }
	.credential { padding: 30px 20px 28px; }
	.credential::before { left: 20px; }
	.credential__value { font-size: 28px; }
	.section-heading { margin-bottom: 40px; }
	.service-grid,
	.service-grid-wrap--compact .service-grid,
	.prefooter__grid,
	.footer-grid,
	.office-grid,
	.check-list,
	.form-grid,
	.sidebar,
	.post-grid--2 { grid-template-columns: 1fr; }
	.check-grid { grid-template-columns: 1fr 1fr; }
	.service-card__link { padding: 36px 28px 30px; }
	.insight__head { flex-direction: column; align-items: flex-start; }
	.page-banner { min-height: 300px; padding-bottom: 40px; }
	.service-intro { flex-direction: column; gap: 20px; }
	.callout { flex-direction: column; padding: 28px; }
	.team-panel { padding: 30px 24px; }
	.value-card { flex-direction: column; gap: 18px; padding: 28px; }
	.service-pager { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.form-panel { padding: 28px 22px; }
	.form-panel__head { flex-direction: column; gap: 16px; }
	.contact-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
	.prefooter { padding: 64px 0; }
	.prefooter-card { padding: 36px 28px; }
	.auth-card__aside,
	.auth-card__main { padding: 36px 26px; }
	.colophon { flex-wrap: wrap; justify-content: center; text-align: center; padding-top: 22px; padding-bottom: 22px; }
	.colophon__nav { margin: 0; width: 100%; }
	.colophon__nav .menu { justify-content: center; }
	.colophon__copy + .back-to-top,
	.back-to-top { margin: 0; }
	.alignwide { margin-left: 0; margin-right: 0; }
	.framed-image::before { top: 14px; left: 14px; right: -14px; bottom: -14px; }
	.framed-image--wide { margin-right: 14px; }
	.mission__quote { margin: -32px 0 0 14px; }
}

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

@media print {
	.site-header, .prefooter, .site-footer__bottom, .sidebar, .hero__controls { display: none !important; }
	.page-banner { min-height: 0; padding: 20px 0; background: none !important; color: #000; }
	.page-banner__title { color: #000; }
}
