/**
 * Matt Shoup — shared design tokens and styles for the coded templates.
 *
 * Everything is namespaced (--ms-* tokens, .ms-* classes) and scoped to the
 * coded chrome so Elementor-built page content is never restyled.
 *
 * 1. Tokens
 * 2. Layout primitives
 * 3. Buttons
 * 4. Masthead + brand switcher
 * 5. Header
 * 6. Footer
 * 6b. Header dropdowns
 * 7. Responsive: 1400 / 1280 (menu panel) / 1024 / 820 / 400
 */

/* 1. Tokens
   ------------------------------------------------------------------ */
:root {
	--ms-brand: #081d3c;
	--ms-brand-soft: #1e2f47;
	--ms-brand-deep: #050f24;
	--ms-on-brand: #ffffff;
	--ms-on-brand-muted: #b8c4d6;
	--ms-surface: #ffffff;
	--ms-surface-alt: #e9eff7;
	--ms-surface-card: #f6f8fb;
	--ms-ink: #16213a;
	--ms-ink-muted: #5a6678;
	--ms-line: #d5dde8;
	--ms-accent: #2c6eb2;
	--ms-accent-soft: #8fc1ff;
	--ms-cta: #f75902;
	--ms-on-cta: #081d3c;
	--ms-cta-deep: #c74400;

	--ms-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--ms-font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

	/* Container: 1440px outer, 48px gutters = 1344px of content. */
	--ms-container: 1440px;
	--ms-gutter: 48px;

	/* Spacing scale, rebalanced for the wider container. */
	--ms-space-section: 120px;
	--ms-gap-grid: 40px;
	--ms-gap-split: 80px;

	/* Text measures: keep line length readable inside wide columns. */
	--ms-measure-lead: 620px;
	--ms-measure-body: 520px;
	--ms-measure-narrow: 420px;

	--ms-radius-xs: 2px;
	--ms-radius-md: 8px;
	--ms-radius-lg: 16px;
	--ms-shadow-card: 0 10px 30px rgba(8, 29, 60, 0.08);
	--ms-shadow-lift: 0 24px 60px rgba(8, 29, 60, 0.16);
	--ms-shadow-stage: 0 40px 90px rgba(5, 15, 36, 0.45);

	/* Tints the white logo PNG to brand navy. */
	--ms-logo-to-navy: brightness(0) saturate(100%) invert(15%) sepia(12%) saturate(2198%) hue-rotate(176deg) brightness(99%) contrast(111%);
}

/* 2. Layout primitives
   ------------------------------------------------------------------ */
.ms-masthead,
.ms-footer {
	font-family: var(--ms-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ms-masthead *,
.ms-masthead *::before,
.ms-masthead *::after,
.ms-footer *,
.ms-footer *::before,
.ms-footer *::after {
	box-sizing: border-box;
}

.ms-container {
	width: 100%;
	max-width: var(--ms-container);
	margin: 0 auto;
	padding: 0 var(--ms-gutter);
}

.ms-masthead ul,
.ms-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-masthead li,
.ms-footer li {
	margin: 0;
	padding: 0;
}

.ms-masthead a,
.ms-footer a {
	text-decoration: none;
	box-shadow: none;
}

.ms-masthead :focus-visible,
.ms-footer :focus-visible {
	outline: 2px solid var(--ms-accent-soft);
	outline-offset: 2px;
}

/* 3. Buttons
   ------------------------------------------------------------------ */
.ms-masthead .ms-btn,
.ms-footer .ms-btn,
.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 32px;
	border: 2px solid transparent;
	border-radius: var(--ms-radius-xs);
	font-family: var(--ms-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ms-masthead .ms-btn--cta,
.ms-btn--cta {
	background: var(--ms-cta);
	color: var(--ms-on-cta);
	border-color: var(--ms-cta);
}

.ms-masthead .ms-btn--cta:hover,
.ms-btn--cta:hover {
	background: var(--ms-cta-deep);
	color: var(--ms-on-brand);
	border-color: var(--ms-cta-deep);
}

.ms-masthead .ms-btn--ghost,
.ms-btn--ghost {
	height: 46px;
	padding: 0 24px;
	background: transparent;
	color: var(--ms-on-brand);
	border-color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
}

.ms-masthead .ms-btn--ghost:hover,
.ms-btn--ghost:hover {
	background: var(--ms-on-brand);
	color: var(--ms-brand);
	border-color: var(--ms-on-brand);
}

/* 4. Masthead + brand switcher
   ------------------------------------------------------------------ */
.ms-masthead {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--ms-on-brand);
	background:
		radial-gradient(1000px 680px at 76% 92%, rgba(44, 110, 178, 0.42), rgba(44, 110, 178, 0) 62%),
		linear-gradient(180deg, var(--ms-brand) 0%, var(--ms-brand-deep) 100%);
}

.ms-masthead::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(1100px 760px at 70% 70%, #000 30%, transparent 80%);
	mask-image: radial-gradient(1100px 760px at 70% 70%, #000 30%, transparent 80%);
}

/* Every page without a coded hero: plain navy bar, no hero treatment. */
.ms-masthead--solid {
	z-index: 100; /* Dropdowns overlay the page content below. */
	overflow: visible;
	background: var(--ms-brand);
}

.ms-masthead--solid::before {
	display: none;
}

.ms-switcher {
	background: rgba(5, 15, 36, 0.75);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
	line-height: 1.2;
	color: var(--ms-on-brand-muted);
}

.ms-switcher__row {
	display: flex;
	align-items: stretch;
	min-height: 44px;
}

.ms-tabs {
	display: flex;
	margin-left: -20px;
}

.ms-tabs__list {
	display: flex;
	align-items: stretch;
}

.ms-tabs__list > li {
	display: flex;
}

.ms-masthead .ms-tabs__list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	border-bottom: 2px solid transparent;
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-on-brand-muted);
	transition: color 0.15s, background 0.15s;
}

.ms-masthead .ms-tabs__list a:hover {
	color: var(--ms-on-brand);
}

/* The tab for this site. Set with the "is-active" CSS class on the menu item. */
.ms-masthead .ms-tabs__list > li.is-active > a {
	color: var(--ms-on-brand);
	border-bottom-color: var(--ms-accent);
	background: rgba(255, 255, 255, 0.05);
}

.ms-switcher__right {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.ms-switcher__list {
	display: flex;
	align-items: center;
	gap: 28px;
}

.ms-masthead .ms-switcher__list a {
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-on-brand-muted);
	transition: color 0.15s;
}

.ms-masthead .ms-switcher__list a:hover {
	color: var(--ms-on-brand);
}

/* 5. Header
   ------------------------------------------------------------------ */
.ms-header {
	position: relative;
	z-index: 3;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ms-masthead--solid .ms-header {
	border-bottom: 0;
}

.ms-header__bar {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 108px;
}

.ms-header__logo {
	display: block;
	flex: none;
	padding-top: 4px;
	line-height: 0;
}

.ms-masthead .ms-header__logo img {
	display: block;
	width: auto;
	height: 80px;
	max-width: none;
}

.ms-header__sitename {
	font-family: var(--ms-font-display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: var(--ms-on-brand);
}

.ms-nav {
	display: flex;
	align-items: center;
}

.ms-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ms-masthead .ms-nav__list a {
	display: block;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: var(--ms-on-brand-muted);
	transition: color 0.15s;
}

.ms-masthead .ms-nav__list a:hover,
.ms-masthead .ms-nav__list a[aria-current="page"],
.ms-masthead .ms-nav__list .current-menu-item > a,
.ms-masthead .ms-nav__list .current-menu-ancestor > a,
.ms-masthead .ms-nav__list .current-page-ancestor > a {
	color: var(--ms-on-brand);
}

.ms-masthead .ms-nav__list > li > a {
	white-space: nowrap;
}

/* Utility links only show inside the mobile panel. */
.ms-nav__list--extra {
	display: none;
}

.ms-header__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
}

/* Explicit resets: the parent theme styles every <button>. */
.ms-masthead .ms-nav-toggle,
.ms-masthead .ms-nav-toggle:hover,
.ms-masthead .ms-nav-toggle:focus {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--ms-on-brand);
	cursor: pointer;
}

.ms-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 1px;
	background: var(--ms-on-brand);
	transition: transform 0.2s, opacity 0.2s;
}

.ms-header.is-open .ms-nav-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ms-header.is-open .ms-nav-toggle span:nth-child(2) {
	opacity: 0;
}

.ms-header.is-open .ms-nav-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* 6. Footer
   ------------------------------------------------------------------ */
.ms-footer {
	position: relative;
	padding: 96px 0 40px;
	color: var(--ms-on-brand-muted);
	background: linear-gradient(180deg, var(--ms-brand) 0%, var(--ms-brand-deep) 100%);
}

.ms-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ms-accent), var(--ms-brand-soft) 60%, transparent);
}

.ms-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--ms-gap-split);
	align-items: start;
}

.ms-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ms-footer__logo {
	display: block;
	align-self: flex-start;
	line-height: 0;
}

.ms-footer .ms-footer__logo img {
	display: block;
	width: auto;
	height: 80px;
	max-width: none;
}

.ms-footer .ms-footer__brand p {
	max-width: var(--ms-measure-narrow);
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ms-on-brand-muted);
}

.ms-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ms-footer .ms-footer__social-list a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--ms-on-brand-muted);
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ms-footer .ms-footer__social-list a:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--ms-on-brand);
}

.ms-footer .ms-footer__heading {
	margin: 0 0 20px;
	padding: 0;
	font: 700 13px/1 var(--ms-font-body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ms-accent-soft);
}

.ms-footer__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ms-footer .ms-footer__list a {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ms-on-brand-muted);
	transition: color 0.15s;
}

.ms-footer .ms-footer__list a:hover {
	color: var(--ms-on-brand);
}

.ms-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 72px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	line-height: 1.4;
}

/* 6b. Header dropdowns (desktop)
   ------------------------------------------------------------------ */
.ms-nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 0;
}

/* Explicit resets: the parent theme styles every <button>. */
.ms-masthead .ms-nav__sub-toggle,
.ms-masthead .ms-nav__sub-toggle:hover,
.ms-masthead .ms-nav__sub-toggle:focus {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--ms-radius-xs);
	box-shadow: none;
	color: var(--ms-on-brand-muted);
	cursor: pointer;
}

.ms-nav__sub-toggle span {
	display: block;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.ms-masthead .ms-nav__list > li:hover > .ms-nav__sub-toggle,
.ms-masthead .ms-nav__list > li.is-sub-open > .ms-nav__sub-toggle {
	color: var(--ms-on-brand);
}

.ms-nav__list > li.is-sub-open > .ms-nav__sub-toggle span {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.ms-masthead .ms-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 20;
	display: block;
	min-width: 264px;
	padding: 10px;
	background: #0b2445;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--ms-radius-md);
	box-shadow: 0 24px 48px rgba(5, 15, 36, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.ms-masthead .ms-nav__list > li:hover > .sub-menu,
.ms-masthead .ms-nav__list > li:focus-within > .sub-menu,
.ms-masthead .ms-nav__list > li.is-sub-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Closed with Escape: stay closed until pointer or focus leaves. */
.ms-masthead .ms-nav__list > li.is-sub-dismissed > .sub-menu {
	opacity: 0;
	visibility: hidden;
}

.ms-masthead .ms-nav__list .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	color: var(--ms-on-brand-muted);
}

.ms-masthead .ms-nav__list .sub-menu a:hover,
.ms-masthead .ms-nav__list .sub-menu a:focus-visible,
.ms-masthead .ms-nav__list .sub-menu .current-menu-item > a {
	background: rgba(255, 255, 255, 0.08);
	color: var(--ms-on-brand);
}

/* The last dropdowns open leftwards so they stay inside the viewport. */
.ms-masthead .ms-nav__list > li:nth-last-child(-n+3) > .sub-menu {
	right: -18px;
	left: auto;
}

/* 7. Responsive
   ------------------------------------------------------------------ */

/* Compact desktop: nine top-level items need tighter spacing. */
@media (max-width: 1400px) {
	.ms-header__bar {
		gap: 28px;
	}

	.ms-nav__list {
		gap: 18px;
	}

	.ms-masthead .ms-nav__list > li > a {
		font-size: 14.5px;
	}

	.ms-masthead .ms-header__actions .ms-btn {
		padding: 0 18px;
	}
}

/* Below this the menu no longer fits on one line: hamburger panel. */
@media (max-width: 1280px) {
	:root {
		--ms-gutter: 32px;
		--ms-space-section: 104px;
		--ms-gap-grid: 32px;
		--ms-gap-split: 56px;
	}

	.ms-header__bar {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		align-items: center;
		gap: 0 16px;
		min-height: 96px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.ms-masthead .ms-nav-toggle,
	.ms-masthead .ms-nav-toggle:hover,
	.ms-masthead .ms-nav-toggle:focus {
		display: inline-flex;
		grid-column: 1;
		grid-row: 1;
	}

	.ms-header__logo {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		padding-top: 0;
	}

	.ms-masthead .ms-header__logo img {
		height: 68px;
	}

	.ms-header__actions {
		grid-column: 3;
		grid-row: 1;
		margin: 0;
	}

	.ms-nav {
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.ms-header.is-open .ms-nav {
		display: block;
		width: 100%;
		margin: 14px 0 4px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.ms-header.is-open .ms-nav__list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ms-nav__list > li {
		flex-wrap: wrap;
		gap: 0;
		padding: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.ms-masthead .ms-nav__list > li > a {
		flex: 1 1 0;
		min-width: 0;
		padding: 15px 0;
		font-size: 18px;
		white-space: normal;
	}

	.ms-masthead .ms-nav__sub-toggle,
	.ms-masthead .ms-nav__sub-toggle:hover,
	.ms-masthead .ms-nav__sub-toggle:focus {
		width: 48px;
		height: 48px;
	}

	.ms-nav__sub-toggle span {
		width: 9px;
		height: 9px;
	}

	/* Sub-items expand in place; hover and focus do not open them here. */
	.ms-masthead .ms-nav__list .sub-menu,
	.ms-masthead .ms-nav__list > li:hover > .sub-menu,
	.ms-masthead .ms-nav__list > li:focus-within > .sub-menu {
		position: static;
		display: none;
		flex: 0 0 100%;
		min-width: 0;
		padding: 0 0 10px 16px;
		background: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.ms-masthead .ms-nav__list > li.is-sub-open > .sub-menu {
		display: block;
	}

	.ms-masthead .ms-nav__list .sub-menu a {
		padding: 11px 0;
		font-size: 16px;
		white-space: normal;
	}

	.ms-masthead .ms-nav__list .sub-menu a:hover,
	.ms-masthead .ms-nav__list .sub-menu a:focus-visible,
	.ms-masthead .ms-nav__list .sub-menu .current-menu-item > a {
		background: none;
	}

	.ms-header.is-open .ms-nav__list--extra {
		margin-top: 10px;
	}

	.ms-masthead .ms-header.is-open .ms-nav__list--extra > li > a {
		padding: 12px 0;
		font-size: 15px;
		color: var(--ms-on-brand-muted);
	}
}

@media (max-width: 1024px) {
	:root {
		--ms-gap-split: 48px;
	}

	.ms-footer {
		padding-top: 80px;
	}

	.ms-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.ms-footer__brand {
		grid-column: 1 / -1;
	}

	.ms-footer__bottom {
		margin-top: 56px;
	}
}

/* Tablet and phone: equal brand tabs, smaller header. */
@media (max-width: 820px) {
	:root {
		--ms-gutter: 20px;
		--ms-space-section: 72px;
		--ms-gap-grid: 24px;
		--ms-gap-split: 36px;
	}

	.ms-switcher__row {
		min-height: 0;
	}

	.ms-switcher__right {
		display: none;
	}

	.ms-tabs {
		width: 100%;
		margin: 0;
	}

	.ms-tabs__list {
		width: 100%;
	}

	.ms-tabs__list > li {
		flex: 1 1 0;
		min-width: 0;
	}

	.ms-masthead .ms-tabs__list a {
		flex: 1 1 auto;
		justify-content: center;
		padding: 13px 6px;
		font-size: 12px;
		letter-spacing: 0.01em;
		text-align: center;
		white-space: nowrap;
	}

	.ms-header__bar {
		gap: 0 12px;
		min-height: 76px;
	}

	.ms-masthead .ms-header__logo img {
		height: 50px;
	}

	.ms-masthead .ms-header__actions .ms-btn {
		height: 40px;
		padding: 0 14px;
		font-size: 12px;
	}

	/* Footer: logo, blurb, socials and Resources only. */
	.ms-footer {
		padding: 56px 0 28px;
	}

	.ms-footer__grid {
		grid-template-columns: 1fr;
	}

	.ms-footer__col--site {
		display: none;
	}

	.ms-footer .ms-footer__logo img {
		height: 64px;
	}

	.ms-footer__bottom {
		margin-top: 40px;
	}
}

@media (max-width: 400px) {
	:root {
		--ms-gutter: 16px;
	}

	.ms-masthead .ms-tabs__list a {
		padding: 12px 4px;
		font-size: 11px;
	}

	.ms-header__bar {
		gap: 0 8px;
	}

	.ms-masthead .ms-header__actions .ms-btn {
		padding: 0 10px;
		letter-spacing: 0.04em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-masthead *,
	.ms-footer * {
		transition: none !important;
	}
}

/* ==================================================================
   Coded page templates (templates/template-home.php, template-about.php)
   8.  Page base + type
   9.  Shared components: sections, heads, buttons, contact
   10. Homepage
   11. About / media kit
   12. Responsive for 8-11
   Scoped to .ms-page (the <main>) and .ms-masthead (the hero).
   ================================================================== */

/* 8. Page base + type
   ------------------------------------------------------------------ */
.ms-page {
	background: var(--ms-surface);
	color: var(--ms-ink);
	font-family: var(--ms-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

html:has(.ms-page) {
	scroll-behavior: smooth;
}

.ms-page img,
.ms-masthead img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ms-page p {
	margin: 0;
}

.ms-page a:not([class]) {
	color: var(--ms-accent);
	text-decoration: none;
}

.ms-page a:not([class]):hover {
	color: var(--ms-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ms-page :focus-visible {
	outline: 2px solid var(--ms-accent);
	outline-offset: 2px;
}

/* On navy panels the outline switches to the light accent to stay visible. */
.ms-page :is(.ms-stage, .ms-vid--pod) :focus-visible,
.ms-page .ms-tile:focus-visible {
	outline: 3px solid var(--ms-accent-soft);
	outline-offset: 3px;
}

.ms-page .ms-btn:focus-visible,
.ms-masthead .ms-btn:focus-visible {
	outline-width: 3px;
	outline-offset: 3px;
}

:is(.ms-page, .ms-masthead) :is(h1, h2, h3) {
	margin: 0;
	padding: 0;
	font-family: var(--ms-font-display);
	color: var(--ms-ink);
	text-transform: none;
}

:is(.ms-page, .ms-masthead) h1 {
	font-size: clamp(42px, 5vw, 76px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.012em;
}

:is(.ms-page, .ms-masthead) h2 {
	font-size: clamp(32px, 3.3vw, 48px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.005em;
}

:is(.ms-page, .ms-masthead) h3 {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

:is(.ms-page, .ms-masthead) .ms-lead {
	margin: 0;
	font-size: 21px;
	line-height: 1.5;
}

:is(.ms-page, .ms-masthead) .ms-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--ms-font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ms-accent);
}

.ms-eyebrow::before {
	content: "";
	flex: none;
	width: 28px;
	height: 2px;
	background: currentColor;
	opacity: 0.7;
}

:is(.ms-page, .ms-masthead) .ms-eyebrow--on-brand {
	color: var(--ms-accent-soft);
}

.ms-eyebrow--center {
	justify-content: center;
}

.ms-eyebrow--center::before {
	display: none;
}

/* 9. Shared components
   ------------------------------------------------------------------ */
.ms-section {
	position: relative;
	padding: var(--ms-space-section) 0;
}

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

.ms-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.ms-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 56px;
	text-align: center;
}

.ms-page .ms-head__sub {
	max-width: var(--ms-measure-lead);
	color: var(--ms-ink-muted);
}

.ms-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	margin-top: 10px;
}

.ms-page .ms-btn--cta {
	background: var(--ms-cta);
	color: var(--ms-on-cta);
	border-color: var(--ms-cta);
}

.ms-page .ms-btn--cta:hover {
	background: var(--ms-cta-deep);
	color: var(--ms-on-brand);
	border-color: var(--ms-cta-deep);
}

.ms-page .ms-btn--ghost {
	height: 46px;
	padding: 0 24px;
	background: transparent;
	color: var(--ms-on-brand);
	border-color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
}

.ms-page .ms-btn--ghost:hover {
	background: var(--ms-on-brand);
	color: var(--ms-brand);
	border-color: var(--ms-on-brand);
}

.ms-page .ms-btn--accent {
	height: 46px;
	padding: 0 24px;
	background: transparent;
	color: var(--ms-accent);
	border-color: var(--ms-accent);
	font-size: 14px;
}

.ms-page .ms-btn--accent:hover {
	background: var(--ms-accent);
	color: var(--ms-on-brand);
}

.ms-page .ms-btn--brand {
	height: 46px;
	padding: 0 24px;
	background: var(--ms-brand);
	color: var(--ms-on-brand);
	border-color: var(--ms-brand);
	font-size: 14px;
}

.ms-page .ms-btn--brand:hover {
	background: var(--ms-brand-soft);
	border-color: var(--ms-brand-soft);
	color: var(--ms-on-brand);
}

:is(.ms-page, .ms-masthead) .ms-textlink {
	font-weight: 600;
	color: var(--ms-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

:is(.ms-page, .ms-masthead) .ms-textlink:hover {
	color: var(--ms-brand);
}

:is(.ms-page, .ms-masthead) .ms-textlink--on-brand {
	color: var(--ms-accent-soft);
}

:is(.ms-page, .ms-masthead) .ms-textlink--on-brand:hover {
	color: var(--ms-on-brand);
}

.ms-ratio {
	position: relative;
	overflow: hidden;
	padding-top: 56.25%;
	background: var(--ms-brand-deep);
}

.ms-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Contact: copy beside the Keap form panel. */
.ms-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: var(--ms-gap-split);
	align-items: start;
}

.ms-page .ms-contact__text {
	max-width: var(--ms-measure-body);
}

.ms-page .ms-contact__email {
	margin-top: 8px;
	font-size: 15px;
	color: var(--ms-ink-muted);
}

.ms-form {
	padding: 48px;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-lift);
}

/* Keap renders its fields inside an iframe; only the frame can be styled. */
.ms-form__embed iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	min-height: 420px;
	border: 0;
}

.ms-page .ms-form__placeholder {
	padding: 32px;
	border: 2px dashed var(--ms-line);
	border-radius: var(--ms-radius-xs);
	background: var(--ms-surface-card);
	font-size: 15px;
	font-weight: 600;
	color: var(--ms-ink-muted);
	text-align: center;
}

/* 10. Homepage
   ------------------------------------------------------------------ */
.ms-hero {
	position: relative;
	padding-top: 64px;
}

.ms-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 64px;
	align-items: end;
}

.ms-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-bottom: 152px;
}

.ms-masthead .ms-hero__copy h1 {
	max-width: 780px;
	color: var(--ms-on-brand);
	text-shadow: 0 2px 24px rgba(5, 15, 36, 0.4);
}

.ms-masthead .ms-hero__copy .ms-lead {
	max-width: var(--ms-measure-lead);
	color: var(--ms-on-brand-muted);
}

.ms-hero__photo {
	position: relative;
	display: flex;
	align-self: end;
	justify-content: center;
	padding-bottom: 64px;
}

.ms-hero__photo::before {
	content: "";
	position: absolute;
	bottom: 24px;
	left: 50%;
	z-index: 0;
	width: 120%;
	height: 150px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(5, 15, 36, 0.85), rgba(5, 15, 36, 0));
	transform: translateX(-50%);
}

.ms-masthead .ms-hero__photo img {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: 660px;
	object-fit: contain;
	object-position: bottom center;
	filter: drop-shadow(0 30px 40px rgba(5, 15, 36, 0.55));
}

/* Featured in: a white card floating over the hero's bottom edge. */
.ms-featured {
	position: relative;
	z-index: 2;
	margin-top: -64px;
	padding-bottom: 8px;
}

.ms-featured__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 56px;
	padding: 32px 56px;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-lift);
}

.ms-featured__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ms-ink-muted);
}

.ms-page .ms-featured__card img {
	width: auto;
	max-width: 200px;
	height: 60px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.72;
	transition: filter 0.2s, opacity 0.2s;
}

.ms-page .ms-featured__card img:hover {
	filter: none;
	opacity: 1;
}

/* Speaking: a navy "stage" panel inside a white section. */
.ms-stage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 80px 80px 68px;
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-stage);
	color: var(--ms-on-brand);
	background:
		radial-gradient(820px 480px at 18% 30%, rgba(44, 110, 178, 0.35), rgba(44, 110, 178, 0) 60%),
		linear-gradient(135deg, var(--ms-brand-soft) 0%, var(--ms-brand) 55%, var(--ms-brand-deep) 100%);
}

.ms-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.35;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px);
}

.ms-stage__top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 72px;
	align-items: center;
}

.ms-page .ms-stage h2 {
	color: var(--ms-on-brand);
}

.ms-page .ms-stage p:not(.ms-eyebrow) {
	color: var(--ms-on-brand-muted);
}

.ms-page .ms-stage__text {
	max-width: var(--ms-measure-body);
}

.ms-video-frame {
	padding: 8px;
	background: var(--ms-surface);
	border-radius: 12px;
	box-shadow: 0 30px 60px rgba(5, 15, 36, 0.5);
	transform: translateY(-4px);
}

.ms-video-frame .ms-ratio {
	border-radius: 6px;
}

.ms-stage__topics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin-top: 56px;
	padding-top: 48px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ms-topic {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ms-topic__num {
	font-family: var(--ms-font-display);
	font-size: 30px;
	font-style: italic;
	line-height: 1;
	color: var(--ms-accent-soft);
}

.ms-topic__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ms-on-brand);
}

.ms-page .ms-topic p {
	max-width: 360px;
	font-size: 16px;
	line-height: 1.5;
}

/* Books: lifted covers on mist. */
.ms-books__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ms-gap-grid);
	padding-top: 80px;
}

.ms-book {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 48px 40px 40px;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-card);
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.ms-book:hover {
	box-shadow: var(--ms-shadow-lift);
	transform: translateY(-4px);
}

.ms-page .ms-book img {
	width: 200px;
	height: auto;
	margin-top: -88px;
	filter: drop-shadow(0 18px 24px rgba(8, 29, 60, 0.28));
}

.ms-page .ms-book h3 {
	margin-top: 10px;
}

.ms-page .ms-book p {
	max-width: 340px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ms-ink-muted);
}

.ms-page .ms-book .ms-btn {
	margin-top: auto;
}

/* Letter: a sheet with a subtle paper gradient. */
.ms-letter {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 880px;
	margin: 0 auto;
	padding: 72px 104px 80px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-lift);
}

.ms-letter::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 6px;
	border-radius: 8px 8px 0 0;
	background: linear-gradient(90deg, var(--ms-brand), var(--ms-accent));
}

.ms-page .ms-letter p {
	font-size: 20px;
	line-height: 1.55;
}

.ms-letter__logo {
	align-self: center;
	margin-bottom: 16px;
}

.ms-page .ms-letter__logo img {
	width: auto;
	height: 64px;
	filter: var(--ms-logo-to-navy);
}

.ms-page .ms-letter .ms-letter__pull {
	padding-left: 24px;
	border-left: 3px solid var(--ms-accent);
	font-family: var(--ms-font-display);
	font-size: 26px;
	font-style: italic;
	line-height: 1.45;
	color: var(--ms-brand);
}

.ms-page .ms-letter .ms-letter__sign {
	font-family: var(--ms-font-display);
	font-size: 38px;
	font-style: italic;
	line-height: 1;
	color: var(--ms-brand);
}

/* Fork: two tiles with directional gradient and lift. */
.ms-fork__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ms-gap-grid);
}

.ms-page .ms-tile {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-height: 300px;
	padding: 56px;
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
	color: var(--ms-on-brand);
	text-decoration: none;
	background: linear-gradient(135deg, var(--ms-brand-soft) 0%, var(--ms-brand) 60%, var(--ms-brand-deep) 100%);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ms-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.9;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(135deg, transparent 35%, #000 100%);
	mask-image: linear-gradient(135deg, transparent 35%, #000 100%);
}

.ms-page .ms-tile:hover {
	box-shadow: var(--ms-shadow-lift);
	color: var(--ms-on-brand);
	text-decoration: none;
	transform: translateY(-4px);
}

.ms-tile__title {
	font-family: var(--ms-font-display);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.12;
	color: var(--ms-on-brand);
}

.ms-tile__body {
	max-width: var(--ms-measure-body);
	color: var(--ms-on-brand-muted);
}

.ms-tile__go {
	margin-top: auto;
	padding-top: 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ms-on-brand);
}

.ms-page .ms-fork__podcast {
	margin-top: 48px;
	text-align: center;
	color: var(--ms-ink-muted);
}

/* 11. About / media kit
   ------------------------------------------------------------------ */
.ms-page-hero {
	padding: 80px 0 200px;
}

.ms-page-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.ms-masthead .ms-page-hero h1 {
	font-size: clamp(34px, 4.2vw, 62px);
	white-space: nowrap;
	color: var(--ms-on-brand);
	text-shadow: 0 2px 24px rgba(5, 15, 36, 0.4);
}

.ms-masthead .ms-page-hero .ms-lead {
	max-width: 720px;
	color: var(--ms-on-brand-muted);
}

/* Intro: the portrait rises out of the hero on the left, bio on the right. */
.ms-section.ms-intro {
	z-index: 2;
	padding: 0 0 var(--ms-space-section);
}

.ms-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 96px;
	align-items: start;
}

.ms-portrait {
	position: sticky;
	top: 24px;
	margin-top: -152px;
}

.ms-portrait__card {
	max-width: 480px;
	padding: 12px;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-lift);
}

.ms-page .ms-portrait__card img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.ms-page .ms-portrait__caption {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--ms-ink-muted);
}

.ms-bio {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: 780px;
	padding-top: 80px;
}

.ms-page .ms-bio h2 {
	font-size: clamp(28px, 2.7vw, 40px);
}

.ms-bio__roles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 6px;
}

.ms-bio__roles span {
	padding: 6px 10px;
	border-radius: var(--ms-radius-xs);
	background: var(--ms-surface-alt);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ms-accent);
}

.ms-bio__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 10px;
}

.ms-page .ms-bio__more {
	margin-top: 6px;
	font-size: 17px;
}

/* Photos (grid kept for reuse; not used on the Meet Matt page) */
.ms-photos__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.ms-page .ms-photo {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border-radius: var(--ms-radius-md);
	background: var(--ms-brand-soft);
	box-shadow: var(--ms-shadow-card);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ms-page .ms-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.4s;
}

.ms-page .ms-photo:hover {
	box-shadow: var(--ms-shadow-lift);
	transform: translateY(-4px);
}

.ms-page .ms-photo:hover img {
	transform: scale(1.03);
}

.ms-photo__dl {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: var(--ms-radius-xs);
	background: rgba(8, 29, 60, 0.88);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ms-on-brand);
}

.ms-photo__dl span {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ms-on-brand-muted);
}

.ms-page .ms-photos__note {
	margin-top: 32px;
	font-size: 15px;
	text-align: center;
	color: var(--ms-ink-muted);
}

/* Videos */
.ms-videos__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ms-gap-grid);
}

.ms-vid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ms-vid__frame {
	padding: 6px;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-card);
}

.ms-vid__frame .ms-ratio {
	border-radius: 4px;
}

.ms-page .ms-vid h3 {
	font-size: 20px;
}

.ms-page .ms-vid p:not(.ms-eyebrow) {
	font-size: 15px;
	color: var(--ms-ink-muted);
}

.ms-vid--pod {
	justify-content: space-between;
	align-items: flex-start;
	min-height: 100%;
	padding: 36px;
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-card);
	color: var(--ms-on-brand);
	background: linear-gradient(135deg, var(--ms-brand-soft) 0%, var(--ms-brand) 60%, var(--ms-brand-deep) 100%);
}

.ms-vid--pod > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ms-page .ms-vid--pod h3 {
	color: var(--ms-on-brand);
}

.ms-page .ms-vid--pod p:not(.ms-eyebrow) {
	color: var(--ms-on-brand-muted);
}

.ms-page .ms-vid--pod .ms-btn {
	margin-top: 16px;
}

/* 12. Responsive for 8-11
   ------------------------------------------------------------------ */
@media (max-width: 1280px) {
	.ms-hero__grid {
		gap: 48px;
	}

	.ms-hero__copy {
		padding-bottom: 136px;
	}

	.ms-featured__card {
		justify-content: center;
		gap: 20px 44px;
		padding: 28px 40px;
	}

	.ms-featured__label {
		flex: 0 0 100%;
		text-align: center;
	}

	.ms-page .ms-featured__card img {
		height: 56px;
		max-width: 190px;
	}

	.ms-stage {
		padding: 64px 64px 56px;
	}

	.ms-stage__top {
		gap: 56px;
	}

	.ms-stage__topics {
		gap: 32px;
	}

	.ms-letter {
		padding: 64px 80px 72px;
	}

	.ms-page .ms-tile {
		padding: 44px;
		min-height: 260px;
	}

	.ms-tile__title {
		font-size: 32px;
	}

	.ms-intro__grid {
		gap: 72px;
	}

	.ms-form {
		padding: 40px;
	}
}

@media (max-width: 1024px) {
	.ms-hero__grid,
	.ms-stage__top,
	.ms-contact__grid,
	.ms-fork__grid {
		grid-template-columns: 1fr;
	}

	.ms-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ms-videos__grid .ms-vid--pod {
		grid-column: 1 / -1;
	}

	.ms-hero__copy {
		padding-bottom: 56px;
	}

	.ms-hero__photo {
		padding-bottom: 40px;
	}

	.ms-masthead .ms-hero__photo img {
		max-height: 480px;
	}

	.ms-featured {
		margin-top: -40px;
	}

	.ms-stage {
		padding: 40px 32px;
	}

	.ms-stage__top {
		gap: 40px;
	}

	.ms-stage__topics {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 40px;
		padding-top: 32px;
	}

	.ms-page .ms-topic p {
		max-width: none;
	}

	.ms-books__grid {
		gap: 24px;
	}

	.ms-letter {
		padding: 56px 36px;
	}

	.ms-intro__grid {
		grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
		gap: 48px;
	}

	.ms-photos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.ms-vid--pod {
		min-height: 240px;
	}
}

@media (max-width: 820px) {
	.ms-head {
		margin-bottom: 40px;
	}

	.ms-videos__grid {
		grid-template-columns: 1fr;
	}

	.ms-books__grid {
		grid-template-columns: 1fr;
		gap: 104px;
		max-width: 520px;
		margin: 0 auto;
	}

	:is(.ms-page, .ms-masthead) .ms-lead {
		font-size: 19px;
	}

	.ms-hero {
		padding-top: 40px;
	}

	.ms-actions {
		gap: 20px;
	}

	.ms-featured__card {
		padding: 24px;
	}

	.ms-page .ms-featured__card img {
		height: 40px;
		max-width: 140px;
	}

	.ms-featured__card {
		gap: 16px 28px;
	}

	.ms-page-hero {
		padding: 44px 0 120px;
	}

	.ms-intro__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ms-portrait {
		position: static;
		margin-top: -96px;
	}

	.ms-portrait__card {
		max-width: 384px;
	}

	.ms-bio {
		padding-top: 0;
	}

	.ms-masthead .ms-page-hero h1 {
		white-space: normal;
	}

	.ms-page .ms-letter p {
		font-size: 18px;
	}

	.ms-page .ms-letter .ms-letter__pull {
		font-size: 22px;
	}

	.ms-page .ms-tile {
		padding: 32px;
		min-height: 0;
	}

	.ms-tile__title {
		font-size: 28px;
	}

	.ms-form {
		padding: 24px;
	}
}

@media (max-width: 400px) {
	:is(.ms-page, .ms-masthead) h1 {
		font-size: 38px;
	}

	.ms-masthead .ms-page-hero h1 {
		font-size: 32px;
	}

	.ms-masthead .ms-btn--cta,
	.ms-page .ms-btn--cta {
		padding: 0 22px;
	}

	.ms-stage {
		padding: 28px 20px;
	}

	.ms-letter {
		padding: 44px 22px;
	}

	.ms-photos__grid {
		gap: 12px;
	}

	.ms-photo__dl {
		right: 8px;
		bottom: 8px;
		left: 8px;
		padding: 8px 10px;
		font-size: 12px;
	}

	.ms-page .ms-vid--pod {
		padding: 24px;
	}
}

/* 13. Program page (Spain): video card, trip cards, quote
   ------------------------------------------------------------------ */
.ms-feature {
	position: relative;
	z-index: 2;
	margin-top: -120px;
	padding-bottom: var(--ms-space-section);
}

.ms-feature .ms-container {
	max-width: 1180px;
}

.ms-video-card {
	padding: 10px;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-lift);
}

.ms-video-card .ms-ratio {
	border-radius: 10px;
}

.ms-page .ms-video-card__meta {
	padding: 18px 14px 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ms-ink);
}

.ms-programs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ms-gap-grid);
}

.ms-program {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ms-surface);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-card);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ms-program:hover {
	transform: translateY(-4px);
	box-shadow: var(--ms-shadow-lift);
}

.ms-program__photo {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ms-brand-soft);
}

.ms-page .ms-program__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.ms-program__tag {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 10px;
	background: rgba(8, 29, 60, 0.85);
	border-radius: var(--ms-radius-xs);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ms-on-brand);
}

.ms-program__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 28px 28px 32px;
}

.ms-page .ms-program__body h3 {
	font-size: 26px;
}

.ms-page .ms-program__body p {
	flex: 1;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ms-ink-muted);
}

.ms-page .ms-program__body .ms-program__meta {
	flex: 0 0 auto;
	font-size: 14px;
}

.ms-page .ms-program__meta b {
	color: var(--ms-ink);
}

.ms-page .ms-program .ms-btn {
	margin-top: 10px;
}

.ms-programs__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 56px;
	text-align: center;
}

.ms-page .ms-programs__cta small {
	font-size: 14px;
	color: var(--ms-ink-muted);
}

.ms-quote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 916px;
	text-align: center;
}

.ms-page .ms-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--ms-font-display);
	font-size: clamp(24px, 2.6vw, 34px);
	font-style: italic;
	line-height: 1.4;
	color: var(--ms-brand);
}

.ms-page .ms-quote cite {
	font-size: 15px;
	font-style: normal;
	color: var(--ms-ink-muted);
}

@media (max-width: 1024px) {
	.ms-programs__grid {
		gap: 24px;
	}

	.ms-program__body {
		padding: 22px 20px 26px;
	}

	.ms-page .ms-program__body h3 {
		font-size: 22px;
	}
}

@media (max-width: 820px) {
	.ms-feature {
		margin-top: -72px;
		padding-bottom: 72px;
	}

	.ms-programs__grid {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-program,
	.ms-program:hover {
		transform: none;
		transition: none;
	}
}
