/* =============================================================
   Michael Caven — native theme stylesheet
   Brand: #1B9C85 / #178E79 — Ink: #0F172A — Body: #454F5E
   ============================================================ */

:root {
	--c-primary: #1B9C85;
	--c-primary-dark: #178E79;
	--c-ink: #0F172A;
	--c-body: #454F5E;
	--c-soft: #EDF6EE;
	--c-mint: #D4F3D7;
	--c-paper: #FFFFFF;
	--c-cream: #F8F6F1;
	--c-line: #E5E7EB;
	--c-dark: #06140C;

	--ff-head: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--ff-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;

	--container: 1200px;
	--narrow: 760px;

	--r-sm: 6px;
	--r-md: 14px;
	--r-lg: 24px;

	--shadow-sm: 0 4px 12px rgba(15,23,42,.06);
	--shadow-md: 0 18px 40px rgba(15,23,42,.10);
	--shadow-lg: 0 30px 80px rgba(15,23,42,.18);

	--ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--c-body);
	background: var(--c-paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4, h5 {
	font-family: var(--ff-head);
	color: var(--c-ink);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--narrow); }
.center { text-align: center; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--c-ink); color: #fff; padding: 12px 18px; z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px;
	font-family: var(--ff-head);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
	white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* -------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--c-line);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 76px;
}
.brand a, .brand-text {
	font-family: var(--ff-head);
	font-weight: 700;
	font-size: 20px;
	color: var(--c-ink);
	letter-spacing: -.02em;
}
.custom-logo-link img { max-height: 56px; width: auto; }

.primary-nav {
	display: flex; align-items: center; gap: 28px;
}
.primary-nav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 28px;
}
.primary-nav .menu a {
	font-family: var(--ff-head);
	font-weight: 500;
	font-size: 14px;
	color: var(--c-ink);
	text-transform: uppercase;
	letter-spacing: .06em;
	position: relative;
	padding: 4px 0;
}
.primary-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
	height: 2px; background: var(--c-primary);
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--ease);
}
.primary-nav .menu a:hover::after,
.primary-nav .menu .current-menu-item > a::after { transform: scaleX(1); }

.social-mini { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social-mini a {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--c-soft);
	color: var(--c-primary);
	transition: background .2s var(--ease), color .2s var(--ease);
}
.social-mini a:hover { background: var(--c-primary); color: #fff; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span {
	display: block; width: 100%; height: 2px;
	background: var(--c-ink); margin: 4px 0;
	transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: flex-start; gap: 16px;
		background: #fff;
		padding: 24px;
		border-bottom: 1px solid var(--c-line);
		transform: translateY(-12px); opacity: 0; pointer-events: none;
		transition: opacity .25s var(--ease), transform .25s var(--ease);
	}
	.primary-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.primary-nav .menu { flex-direction: column; gap: 14px; width: 100%; }
}

/* -------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: 100px 0; position: relative; }
.section.alt { background: var(--c-cream); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
	font-family: var(--ff-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--c-primary);
	margin: 0 0 14px;
}
.subkicker {
	font-family: var(--ff-head);
	letter-spacing: .14em;
	color: var(--c-body);
	font-size: 13px;
	text-transform: uppercase;
}
.section-title {
	font-size: clamp(32px, 4vw, 52px);
	margin: 0 0 .4em;
}
.eyebrow {
	font-family: var(--ff-head);
	font-weight: 600;
	letter-spacing: .22em;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--c-primary);
	margin: 0 0 18px;
}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
	padding: 120px 0 100px;
	background:
		radial-gradient(1100px 600px at 85% 20%, var(--c-mint) 0%, transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--c-soft) 100%);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 60px;
	align-items: center;
}
.hero-title {
	font-size: clamp(40px, 6vw, 78px);
	line-height: 1.05;
	letter-spacing: -.02em;
	margin: 0 0 22px;
}
.hero-lead {
	font-size: 19px;
	color: var(--c-body);
	max-width: 540px;
	margin-bottom: 32px;
}
.hero-image {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	transform: rotate(1.5deg);
	transition: transform .6s var(--ease);
}
.hero-image:hover { transform: rotate(0); }
.hero-image img { width: 100%; height: 560px; object-fit: cover; }
.hero-image::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,.18));
}

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-image img { height: 420px; }
}

/* -------------------------------------------------------------
   Split sections
   ------------------------------------------------------------ */
.section-split.alt { background: var(--c-cream); }
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 70px;
	align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
	width: 100%;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
	aspect-ratio: 4/5;
	object-fit: cover;
}
.split-copy p { font-size: 17px; }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 36px; }
	.split.reverse .split-media { order: 0; }
}

/* -------------------------------------------------------------
   Speaking carousel
   ------------------------------------------------------------ */
.section-speaking { background: var(--c-cream); }
.speaking-body { max-width: 800px; margin-bottom: 48px; }

.gallery-carousel {
	position: relative;
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	align-items: center;
	gap: 12px;
}
.car-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	scrollbar-width: thin;
}
.car-track::-webkit-scrollbar { height: 6px; }
.car-track::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 4px; }

.car-item {
	flex: 0 0 320px;
	scroll-snap-align: start;
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.car-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.car-item img { width: 100%; height: 360px; object-fit: cover; }

.car-btn {
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--c-ink);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.car-btn:hover { background: var(--c-primary); transform: scale(1.06); }

@media (max-width: 600px) { .car-item { flex: 0 0 80%; } .car-item img { height: 280px; } }

/* -------------------------------------------------------------
   Vanity Fair flipbook
   ------------------------------------------------------------ */
.section-vf {
	background:
		radial-gradient(700px 400px at 20% 0%, rgba(27,156,133,.08), transparent 70%),
		var(--c-paper);
}
.flipbook {
	margin: 40px auto 24px;
	max-width: 900px;
	background: var(--c-ink);
	border-radius: var(--r-lg);
	padding: 28px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	box-shadow: var(--shadow-lg);
}
.fb-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1.55 / 1;
	overflow: hidden;
	border-radius: var(--r-md);
	background: #000;
}
.fb-page {
	position: absolute; inset: 0;
	opacity: 0;
	transform: rotateY(-12deg) translateX(20px);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
	pointer-events: none;
}
.fb-page.is-active {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.fb-page img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.fb-btn {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,.4);
	font-family: var(--ff-head);
	font-weight: 600;
	font-size: 13px;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.fb-btn:hover { background: var(--c-primary); border-color: var(--c-primary); }
.fb-counter {
	grid-column: 1 / -1;
	text-align: center;
	margin: 14px 0 0;
	color: rgba(255,255,255,.7);
	font-family: var(--ff-head);
	font-size: 13px;
	letter-spacing: .12em;
}

.vf-quote {
	max-width: 760px;
	margin: 36px auto 28px;
	padding: 28px 32px;
	border-left: 4px solid var(--c-primary);
	background: var(--c-soft);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font-style: italic;
	color: var(--c-ink);
	font-size: 17px;
}

@media (max-width: 700px) {
	.flipbook { grid-template-columns: 1fr; padding: 18px; }
	.fb-btn { width: 100%; }
}

/* -------------------------------------------------------------
   Testimonial
   ------------------------------------------------------------ */
.section-testimonial {
	background: var(--c-ink);
	color: #fff;
}
.section-testimonial .quote-mark {
	color: var(--c-primary);
	width: 60px; height: 60px;
	margin: 0 auto 24px;
	display: block;
}
.testimonial {
	margin: 0;
	text-align: center;
	font-size: 22px;
	line-height: 1.55;
	color: rgba(255,255,255,.92);
	font-style: italic;
}
.testimonial p { margin-bottom: .9em; }
.testimonial footer {
	margin-top: 24px;
	font-style: normal;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-mint);
	display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.testimonial footer strong { color: #fff; font-weight: 700; }

/* -------------------------------------------------------------
   Story cards
   ------------------------------------------------------------ */
.section-story { background: var(--c-cream); }
.story-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.story-card {
	display: flex; flex-direction: column;
	background: #fff;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
	color: var(--c-ink);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--c-ink); }
.story-img {
	display: block;
	width: 100%;
	aspect-ratio: 4/3;
	background-size: cover;
	background-position: center;
}
.story-label {
	font-family: var(--ff-head);
	font-weight: 700;
	font-size: 26px;
	padding: 24px 24px 6px;
	color: var(--c-ink);
}
.story-cta {
	font-family: var(--ff-head);
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-primary);
	padding: 0 24px 24px;
}
@media (max-width: 800px) { .story-cards { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   Footer + contact form
   ------------------------------------------------------------ */
.site-footer {
	background: var(--c-ink);
	color: rgba(255,255,255,.78);
	padding: 90px 0 28px;
}
.footer-cta { max-width: 680px; margin: 0 auto; text-align: center; }
.footer-title { color: #fff; font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.footer-email {
	display: inline-block;
	color: var(--c-mint);
	font-family: var(--ff-head);
	font-size: 18px;
	margin-bottom: 36px;
	border-bottom: 1px solid rgba(212,243,215,.4);
	padding-bottom: 4px;
}
.footer-email:hover { color: #fff; border-color: #fff; }

.contact-form {
	margin-top: 28px;
	text-align: left;
	display: grid;
	gap: 14px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field span {
	font-family: var(--ff-head);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.6);
}
.contact-form input,
.contact-form textarea {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--r-sm);
	color: #fff;
	padding: 12px 14px;
	font: inherit;
	transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 0;
	border-color: var(--c-primary);
	background: rgba(255,255,255,.10);
}
.contact-form .hp { display: none; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-status {
	margin-top: 6px;
	color: var(--c-mint);
	font-size: 14px;
}

@media (max-width: 600px) {
	.contact-form .row { grid-template-columns: 1fr; }
}

.footer-bottom {
	margin-top: 60px;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.08);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
	font-size: 14px;
	color: rgba(255,255,255,.6);
}
.footer-bottom .social { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.footer-bottom .social a { color: rgba(255,255,255,.7); }
.footer-bottom .social a:hover { color: #fff; }

/* -------------------------------------------------------------
   Page hero / single
   ------------------------------------------------------------ */
.page-hero {
	min-height: 360px;
	background: var(--hero-img) center/cover no-repeat, var(--c-ink);
	display: flex; align-items: flex-end;
	padding: 80px 0 48px;
	color: #fff;
	position: relative;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,23,42,.2), rgba(15,23,42,.7));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { color: #fff; font-size: clamp(34px, 5vw, 64px); margin: 0; }

.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content blockquote {
	border-left: 4px solid var(--c-primary);
	background: var(--c-soft);
	padding: 18px 24px;
	border-radius: 0 var(--r-md) var(--r-md) 0;
	margin: 1.6em 0;
	font-style: italic;
}
.entry-content figure { margin: 1.6em 0; }

/* Posts grid */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-thumb img { width: 100%; height: 220px; object-fit: cover; }
.post-body { padding: 22px; }
.post-meta {
	font-family: var(--ff-head); font-size: 12px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--c-primary);
	margin-bottom: 8px;
}
.post-title { font-size: 22px; margin: 0 0 .4em; }
.post-title a { color: var(--c-ink); }
.post-title a:hover { color: var(--c-primary); }

.pagination, .nav-links {
	margin-top: 48px;
	display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.pagination .page-numbers, .nav-links a, .nav-links span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 999px;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--ff-head); font-weight: 600; font-size: 14px;
}
.pagination .current, .nav-links .current { background: var(--c-primary); color: #fff; }

/* search & 404 */
.section-404 { padding: 140px 0; text-align: center; }
.search-list { list-style: none; padding: 0; margin: 0; }
.search-list li { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.search-list a { color: var(--c-ink); font-weight: 600; }

/* WP core alignments */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--c-body); text-align: center; margin-top: 6px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.hero-image { transform: none; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   Sub-menu dropdowns (desktop hover, mobile accordion)
   ============================================================ */
.primary-nav .menu { position: relative; }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .menu-item-has-children > a { padding-right: 18px; }
.primary-nav .sub-arrow {
	display: inline-block;
	margin-left: 4px;
	font-size: 10px;
	transition: transform .25s var(--ease);
}
.primary-nav .menu-item-has-children:hover > a .sub-arrow,
.primary-nav .menu-item-has-children.is-open > a .sub-arrow { transform: rotate(180deg); }

.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 14px 0;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translate(-50%, -8px);
	min-width: 280px;
	max-width: 380px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-md);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
	z-index: 60;
}
.primary-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: -6px; left: 50%;
	width: 12px; height: 12px;
	background: #fff;
	border-left: 1px solid var(--c-line);
	border-top: 1px solid var(--c-line);
	transform: translateX(-50%) rotate(45deg);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a {
	display: block;
	padding: 10px 22px;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: none;
	color: var(--c-ink);
	line-height: 1.4;
	transition: background .15s var(--ease), color .15s var(--ease);
}
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover { background: var(--c-soft); color: var(--c-primary); }

@media (max-width: 900px) {
	.primary-nav .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; width: 100%; }
	.primary-nav .sub-menu {
		position: static;
		transform: none;
		min-width: 0; max-width: none;
		opacity: 1;
		pointer-events: auto;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--c-line);
		border-radius: 0;
		margin: 6px 0 0 12px;
		padding: 4px 0;
		background: transparent;
		max-height: 0;
		overflow: hidden;
		transition: max-height .35s var(--ease);
	}
	.primary-nav .sub-menu::before { display: none; }
	.primary-nav .menu-item-has-children.is-open > .sub-menu { max-height: 600px; }
	.primary-nav .sub-menu a { padding: 8px 14px; }
}

/* =============================================================
   Scroll-reveal animations
   ============================================================ */
[data-reveal] {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d( 32px, 0, 0); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================
   Carousel dots + autoplay polish
   ============================================================ */
.gallery-carousel { position: relative; }
.car-dots {
	display: flex; justify-content: center; gap: 8px;
	margin-top: 22px;
	grid-column: 1 / -1;
}
.car-dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--c-line);
	border: 0; padding: 0; cursor: pointer;
	transition: background .25s var(--ease), transform .25s var(--ease);
}
.car-dot.is-active { background: var(--c-primary); transform: scale(1.3); }
.car-dot:hover { background: var(--c-primary-dark); }

/* =============================================================
   Lightbox (speaking + flipbook)
   ============================================================ */
.mc-lightbox {
	position: fixed; inset: 0;
	background: rgba(6,20,12,.92);
	display: flex; align-items: center; justify-content: center;
	padding: 40px;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s var(--ease);
}
.mc-lightbox.is-open { opacity: 1; pointer-events: auto; }
.mc-lightbox img {
	max-width: 100%; max-height: 100%;
	object-fit: contain;
	border-radius: var(--r-md);
	box-shadow: var(--shadow-lg);
}
.mc-lightbox-close,
.mc-lightbox-nav {
	position: absolute;
	background: rgba(255,255,255,.12);
	color: #fff;
	border: 0;
	width: 48px; height: 48px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.mc-lightbox-close { top: 24px; right: 24px; }
.mc-lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.mc-lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.mc-lightbox-close:hover, .mc-lightbox-nav:hover { background: var(--c-primary); }
.mc-lightbox-nav.prev:hover { transform: translateY(-50%) scale(1.08); }
.mc-lightbox-nav.next:hover { transform: translateY(-50%) scale(1.08); }

/* =============================================================
   Podcasts grid
   ============================================================ */
.section-podcasts { background: var(--c-cream); }
.podcasts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
	margin-top: 48px;
}
.podcast-card {
	margin: 0;
	background: #fff;
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.podcast-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.podcast-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}
.podcast-frame iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
}
.podcast-card figcaption {
	padding: 16px 20px;
	font-family: var(--ff-head);
	font-weight: 600;
	font-size: 15px;
	color: var(--c-ink);
}

/* Embedded YouTube on inner pages */
.mc-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--r-md);
	overflow: hidden;
}
.mc-video-embed iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
}

/* =========================================================================
   Live-site parity additions (matches https://michaelcaven.com homepage)
   ===================================================================== */

/* Centered text section (Writing) */
.section-text { padding: 96px 0; background: #fff; }
.section-text .section-head { margin-bottom: 28px; }
.section-text .section-body p { margin: 0 0 20px; font-size: 17px; line-height: 1.75; color: var(--c-body); }
.section-text .section-body p:last-child { margin-bottom: 0; }

/* Media gallery layout */
.section-media { padding: 96px 0; background: var(--c-soft, #EDF6EE); }
.section-media .section-head { text-align: left; margin-bottom: 32px; }
.media-feature { margin: 0 0 32px; border-radius: var(--r-md, 14px); overflow: hidden; box-shadow: var(--shadow-md, 0 18px 45px rgba(0,0,0,.10)); }
.media-feature img { display: block; width: 100%; height: auto; }
.media-feature-link { display: block; }
.media-list { font-size: 17px; line-height: 1.75; color: var(--c-body); margin-bottom: 32px; }
.media-list ul { margin: 12px 0 0; padding-left: 22px; }
.media-list li { margin: 6px 0; }
.media-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 14px;
}
.media-gallery .media-thumb {
        display: block; overflow: hidden;
        border-radius: 12px;
        background: #000;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
        transition: transform .25s ease, box-shadow .25s ease;
}
.media-gallery .media-thumb:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.media-gallery .media-thumb img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* Podcast featured (full-width) above the 2x2 grid */
.podcast-feature { margin: 0 0 28px; border-radius: var(--r-md, 14px); overflow: hidden; box-shadow: var(--shadow-md, 0 18px 45px rgba(0,0,0,.10)); }
.podcast-feature .podcast-frame { aspect-ratio: 16 / 9; background: #000; position: relative; }
.podcast-feature iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonial: side-by-side image */
.section-testimonial .testimonial-grid {
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        gap: 56px;
        align-items: center;
}
.section-testimonial .testimonial-media img {
        width: 100%; height: auto; display: block;
        border-radius: var(--r-md, 14px);
        box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.section-testimonial .testimonial-copy .section-head { margin-bottom: 16px; }
.section-testimonial .testimonial p { font-size: 18px; line-height: 1.7; }
@media (max-width: 900px) {
        .section-testimonial .testimonial-grid { grid-template-columns: 1fr; gap: 32px; }
        .section-testimonial .testimonial-media { order: -1; max-width: 360px; margin: 0 auto; }
}

/* Story: composite desktop image with floating CTA buttons */
.story-map-wrapper { position: relative; max-width: 1280px; margin: 0 auto; }
.story-desktop { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.10); }
.story-desktop > img { width: 100%; height: auto; display: block; }
.story-cta-layer { position: absolute; left: 0; right: 0; bottom: 18px; height: 78px; pointer-events: none; }
.story-cta { position: absolute; left: var(--l); width: var(--w); bottom: 0; display: flex; justify-content: center; pointer-events: auto; }
.story-cta a {
        display: inline-flex; align-items: center; justify-content: center; gap: 10px;
        padding: 16px 22px;
        font-family: var(--ff-head, 'Montserrat', sans-serif);
        font-size: 15px; font-weight: 700; line-height: 1;
        border-radius: 999px;
        text-decoration: none; white-space: nowrap;
        background: #F1FAEE; color: #1D3557;
        border: 1px solid rgba(29,53,87,.18);
        box-shadow: 0 16px 38px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.6) inset;
        transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
        animation: ctaFloat 2.6s ease-in-out infinite;
}
.story-cta:nth-child(2) a { animation-delay: .25s; }
.story-cta:nth-child(3) a { animation-delay: .5s; }
.story-cta a:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 50px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.8) inset; }
.story-cta .arrow { font-size: 16px; opacity: .85; transition: transform .18s ease; }
.story-cta a:hover .arrow { transform: translateX(4px); }
@keyframes ctaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Mobile fallback: stacked image cards */
.story-mobile { display: none; }
@media (max-width: 900px) {
        .story-map-wrapper { display: none; }
        .story-mobile { display: grid; gap: 16px; }
        .story-mobile .story-card {
                display: block; position: relative;
                border-radius: 14px; overflow: hidden;
                box-shadow: 0 10px 30px rgba(0,0,0,.12);
                background: #000; color: #fff;
                text-decoration: none;
        }
        .story-mobile .story-card img { width: 100%; height: auto; display: block; }
        .story-mobile .story-cta-mobile {
                position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
                background: #F1FAEE; color: #1D3557;
                padding: 12px 18px;
                font-family: var(--ff-head, 'Montserrat', sans-serif);
                font-weight: 700; font-size: 14px;
                border-radius: 999px;
                box-shadow: 0 12px 30px rgba(0,0,0,.25);
                white-space: nowrap;
        }
}

/* Hero refinement: no bg image / no eyebrow / no CTA on live */
.hero { background: #fff; padding: 88px 0; }
.hero .hero-grid { gap: 56px; align-items: center; }
.hero .hero-image img { max-width: 500px; width: 100%; height: auto; margin-left: auto; display: block; border-radius: 16px; }
.hero .hero-title { margin: 0 0 24px; }
.hero .hero-lead p { font-size: 18px; line-height: 1.7; color: var(--c-body); }

@media (prefers-reduced-motion: reduce) {
        .story-cta a { animation: none; }
}
