/* Bogard Portfolio — front end. Inherits Enfold typography; sets its own
   color + component system per BUILD_HANDOFF.md §5. */

.bogard-portfolio,
.bogard-detail {
	--bg-text: #1a1a1a;
	--bg-text-2: #5f5e5a;
	--bg-text-3: #888780;
	--bg-link: #185fa5;
	--bg-page: #fafaf7;
	--bg-surface: #f7f5ef;
	--bg-border-3: rgba( 0, 0, 0, 0.10 );
	--bg-border-2: rgba( 0, 0, 0, 0.18 );
	--bg-accent: #DE541E;
	--bg-radius: 10px;
	max-width: 1310px;
	margin: 0 auto;
	color: var( --bg-text );
	box-sizing: border-box;
}

.bogard-portfolio *,
.bogard-detail * { box-sizing: border-box; }

.bogard-h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 52px; letter-spacing: -0.015em; margin: 0 0 14px; line-height: 1.05; }
.bogard-h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 38px; letter-spacing: -0.01em; margin: 0; }
.bogard-h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 27px; margin: 24px 0 8px; }
.bogard-eyebrow { display: block; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: var( --bg-text-3 ); margin-bottom: 8px; }
.bogard-count { color: var( --bg-text-3 ); font-size: 0.6em; }

.bogard-section-head { display: flex; align-items: center; justify-content: center; text-align: center; margin: 28px 0 16px; }
.bogard-divider { border: 0; border-top: 1px solid var( --bg-border-3 ); margin: 36px 0; }

/* Stats banner */
.bogard-stats { display: grid; grid-template-columns: repeat( 4, 1fr ); gap: 16px; margin: 8px 0 28px; }
.bogard-stat { background-color: #fff; padding: 20px 30px; border-radius: 12px; text-align: center; box-shadow: rgba( 255, 255, 255, 0.1 ) 0px 1px 1px 0px inset, rgba( 50, 50, 93, 0.25 ) 0px 50px 100px -20px, rgba( 0, 0, 0, 0.3 ) 0px 30px 60px -30px; }
.bogard-stat-n { display: block; font-family: "myriad-pro-semi-condensed", sans-serif; font-weight: 800; color: #004B87; font-size: 45px; line-height: 1; font-variant-numeric: tabular-nums; }
.bogard-stat-l { display: block; font-family: "myriad-pro-semi-condensed", sans-serif !important; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 400 !important; font-size: 18px !important; line-height: 29px; color: #23282D; margin-top: 6px; }
#bogard-projects h2 { font-weight: 400 !important; letter-spacing: 0em; font-size: 30px; }

/* Cards */
.bogard-grid { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 20px; }
.bogard-related-grid { display: grid; grid-template-columns: repeat( 5, 1fr ); gap: 16px; }
.bogard-card { position: relative; display: block; border-radius: var( --bg-radius ); overflow: hidden; aspect-ratio: 540 / 379; text-decoration: none; transition: transform 0.5s cubic-bezier( 0.16, 1, 0.3, 1 ); background: var( --bg-surface ); }
.bogard-card:hover { transform: scale( 1.012 ); }
.bogard-card-link { position: absolute; inset: 0; z-index: 2; }
.bogard-card-media { position: absolute; inset: 0; display: block; }
.bogard-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier( 0.16, 1, 0.3, 1 ); }
.bogard-card:hover .bogard-card-media img { transform: scale( 1.05 ); }
.bogard-card-gradient { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient( to top, rgba( 0,0,0,0.78 ) 0%, rgba( 0,0,0,0.5 ) 25%, rgba( 0,0,0,0.18 ) 60%, transparent 100% ); }
.bogard-card-title { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.22; }
.bogard-related-grid .bogard-card-title { font-size: 15px; }

/* Glass pill + status pills */
.bogard-pill-glass { position: absolute; top: 12px; left: 12px; background: rgba( 255,255,255,0.14 ); backdrop-filter: blur( 22px ) saturate( 150% ); -webkit-backdrop-filter: blur( 22px ) saturate( 150% ); border: 0; box-shadow: inset 0 0.5px 0 rgba( 255,255,255,0.35 ), 0 2px 10px rgba( 0,0,0,0.12 ); color: rgba( 255,255,255,0.96 ); font-size: 11px; padding: 3px 13px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; line-height: 1.6; }
.bogard-pillrow { display: flex; gap: 8px; margin: 8px 0 18px; flex-wrap: wrap; }
.bogard-pill-outline { border: 1px solid var( --bg-border-2 ); color: var( --bg-text-2 ); font-size: 13px; padding: 5px 13px; border-radius: 999px; }
.bogard-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 13px; border-radius: 999px; }
.bogard-status .bogard-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bogard-status-in-progress { background: #FAEEDA; color: #854F0B; }
.bogard-status-completed { background: #EAF3DE; color: #3B6D11; }
.bogard-status-planned { background: #eee; color: #666; }

/* Filters — category pills row (kept to one line on desktop) */
.bogard-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 18px; }
.bogard-pills::-webkit-scrollbar { display: none; }
.bogard-filter-pill {
	flex: 0 0 auto;
	white-space: nowrap;
	background: #fff;
	border: 1px solid var( --bg-border-2 );
	color: var( --bg-text-2 );
	border-radius: 999px;
	padding: 8px 17px;
	font-family: "myriad-pro-semi-condensed", "Arial Narrow", sans-serif;
	font-size: 15px;
	letter-spacing: 0.01em;
	cursor: pointer;
}
.bogard-filter-pill.is-active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.bogard-pill-count { opacity: 0.55; font-size: 0.86em; margin-left: 1px; }
@media ( max-width: 1000px ) { .bogard-pills { flex-wrap: wrap; overflow: visible; } }

/* Search — reset Enfold's input chrome (background, inner shadow, search icon, height) */
.bogard-portfolio input.bogard-search,
input.bogard-search {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: 520px !important;
	height: auto !important;
	margin: 0 auto 16px !important;
	padding: 12px 18px !important;
	text-align: center !important;
	border: 1px solid var( --bg-border-2 ) !important;
	border-radius: var( --bg-radius ) !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var( --bg-text ) !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
}
.bogard-portfolio input.bogard-search:focus,
input.bogard-search:focus {
	border-color: var( --bg-text ) !important;
	outline: none !important;
	box-shadow: none !important;
}
.bogard-portfolio input.bogard-search::-webkit-search-decoration,
.bogard-portfolio input.bogard-search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Status / delivery toggles — custom checkboxes */
.bogard-toggles { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; color: var( --bg-text-2 ); }
.bogard-toggles label { display: inline-flex; align-items: center; cursor: pointer; }
.bogard-toggles .bogard-toggle {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 17px !important;
	height: 17px !important;
	margin: 0 7px 0 0 !important;
	padding: 0 !important;
	border: 1px solid var( --bg-border-2 ) !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: none !important;
	position: relative;
	cursor: pointer;
	flex: 0 0 auto;
}
.bogard-toggles .bogard-toggle:checked { background: #DE541E !important; border-color: #DE541E !important; }
.bogard-toggles .bogard-toggle:checked::after {
	content: "";
	position: absolute;
	left: 5px; top: 2px;
	width: 4px; height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}
.bogard-toggle-sep { width: 1px; height: 16px; background: var( --bg-border-2 ); }
.bogard-card.is-hidden { display: none; }
.bogard-loadmore-wrap { text-align: center; margin: 28px 0; }
.bogard-portfolio .bogard-loadmore { display: inline-block; border-radius: 999px !important; padding: 12px 30px !important; border: 1px solid var( --bg-border-2 ) !important; background: #fff !important; color: var( --bg-text ) !important; font-size: 14px !important; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.bogard-portfolio .bogard-loadmore:hover { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.bogard-noresults { text-align: center; color: var( --bg-text-3 ); padding: 30px 0; }

/* Carousel (featured + hero) */
.bogard-carousel-viewport { overflow: hidden; }
.bogard-carousel-track { display: flex; transition: transform 0.6s cubic-bezier( 0.16, 1, 0.3, 1 ); }
.bogard-featured[data-columns="1"] .bogard-carousel-slide { flex: 0 0 100%; margin-right: 0; }
.bogard-featured[data-columns="2"] .bogard-carousel-slide { flex: 0 0 calc( 50% - 10px ); margin-right: 20px; }
.bogard-featured[data-columns="3"] .bogard-carousel-slide { flex: 0 0 calc( 33.333% - 14px ); margin-right: 20px; }
/* Headless carousel — push the dots/pause to the right when there's no title */
.bogard-featured-controls.is-headless { justify-content: flex-end; margin-bottom: 14px; }
/* Static featured grid — two rows of three, no rotation */
.bogard-featured-static { margin-top: 8px; }
.bogard-featured-grid { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 20px; }
@media ( max-width: 1000px ) { .bogard-featured-grid { grid-template-columns: repeat( 2, 1fr ); } }
@media ( max-width: 600px ) { .bogard-featured-grid { grid-template-columns: 1fr; } }
.bogard-carousel-controls { display: flex; align-items: center; gap: 10px; }
.bogard-carousel-controls { gap: 12px; }
.bogard-dots { display: inline-flex; align-items: center; gap: 7px; background: rgba( 0,0,0,0.05 ); padding: 9px 13px; border-radius: 999px; }
.bogard-dot-btn { width: 9px; height: 9px; border: 0; padding: 0; border-radius: 999px; background: rgba( 0,0,0,0.22 ); cursor: pointer; transition: width 0.3s ease; position: relative; overflow: hidden; }
.bogard-dot-btn.is-active { width: 58px; border-radius: 5px; background: rgba( 0,0,0,0.14 ); }
.bogard-dot-fill { position: absolute; inset: 0; width: 0; background: var( --bg-accent ); border-radius: 5px; }
/* Pause / play toggle — clean CSS icon */
.bogard-pause { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var( --bg-border-2 ); background: #fff; cursor: pointer; position: relative; flex: 0 0 auto; transition: background 0.2s, border-color 0.2s; }
.bogard-pause:hover { border-color: var( --bg-accent ); }
.bogard-pause::before, .bogard-pause::after { content: ""; position: absolute; top: 50%; transform: translateY( -50% ); width: 4px; height: 14px; border-radius: 1px; background: var( --bg-text ); }
.bogard-pause::before { left: 13px; }
.bogard-pause::after { right: 13px; }
.bogard-pause.is-paused::before { left: 15px; width: 0; height: 0; border-radius: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var( --bg-text ); background: transparent; }
.bogard-pause.is-paused::after { display: none; }

/* Detail */
.bogard-container { padding: 0 0 60px; }
#bogard-projects { scroll-margin-top: 120px; }
.bogard-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1310px; margin: 0 auto 22px; font-size: 14px; }

/* Back to portfolio — pill button */
.bogard-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 1px solid var( --bg-border-2 ); border-radius: 999px; color: var( --bg-text ); background: #fff; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.bogard-back:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.bogard-tearsheet-link a { color: var( --bg-link ); text-decoration: none; }

/* Project counter + prev/next — more prominent. !important keeps our styling
   from being overridden by the theme's high-specificity "#top .content a"
   link rules now that the detail renders inside Enfold's content wrapper. */
.bogard-toolbar-nav { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.bogard-counter { color: var( --bg-text ); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.bogard-detail .bogard-toolbar-back { color: var( --bg-text-2 ) !important; text-decoration: none !important; }
.bogard-detail .bogard-toolbar-back:hover { color: var( --bg-accent ) !important; }
.bogard-detail .bogard-nav-arrow { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var( --bg-border-2 ) !important; color: var( --bg-text ) !important; text-decoration: none !important; font-size: 18px; background: #fff !important; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.bogard-detail .bogard-nav-arrow:hover { background: var( --bg-accent ) !important; color: #fff !important; border-color: var( --bg-accent ) !important; }
.bogard-detail .bogard-nav-arrow.is-disabled { opacity: 0.3; cursor: default; }
.bogard-detail .bogard-nav-arrow.is-disabled:hover { background: #fff !important; color: var( --bg-text ) !important; border-color: var( --bg-border-2 ) !important; }

/* Footer nav — prev/next as pill buttons */
.bogard-footer-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1310px; margin: 50px auto 0; padding-top: 28px; border-top: 1px solid var( --bg-border-3 ); font-size: 15px; }
.bogard-footer-nav a { text-decoration: none !important; }
.bogard-fn-prev, .bogard-fn-next { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 1px solid var( --bg-border-2 ) !important; border-radius: 999px; color: var( --bg-text ) !important; background: #fff !important; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.bogard-fn-prev:hover, .bogard-fn-next:hover { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.bogard-fn-all { display: inline-flex; align-items: center; gap: 8px; color: var( --bg-text-2 ) !important; font-weight: 500; }
.bogard-fn-all:hover { color: var( --bg-accent ) !important; }
.bogard-grid-icon { fill: currentColor; flex: 0 0 auto; }
.bogard-hero { display: grid; grid-template-columns: 540px 1fr; gap: 30px; align-items: start; }
.bogard-hero-left { width: 540px; max-width: 100%; }
.bogard-hero-gallery { position: relative; }
.bogard-hero-track { position: relative; aspect-ratio: 540 / 379; border-radius: var( --bg-radius ); overflow: hidden; }
.bogard-hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.6s ease; }
.bogard-hero-slide.is-active { opacity: 1; }
.bogard-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.bogard-hero-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.bogard-credit { font-size: 12px; color: var( --bg-text-3 ); }
.bogard-facts { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 14px; border-top: 1px solid var( --bg-border-3 ); border-bottom: 1px solid var( --bg-border-3 ); padding: 16px 0; margin: 16px 0; }
.bogard-fact-l { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var( --bg-text-3 ); }
.bogard-fact-v { display: block; font-size: 17px; margin-top: 3px; }
.bogard-narrative { color: var( --bg-text-2 ); line-height: 1.7; font-size: 16px; }
.bogard-scope-section { margin: 40px 0; }
.bogard-scope-grid { display: grid; grid-template-columns: repeat( 4, 1fr ); gap: 12px 24px; margin-top: 14px; }
.bogard-scope-item { display: flex; gap: 8px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var( --bg-border-3 ); font-size: 14px; }
.bogard-bullet { width: 5px; height: 5px; border-radius: 50%; background: var( --bg-text-3 ); flex: 0 0 5px; transform: translateY( -2px ); }
.bogard-related { margin-top: 50px; }
.bogard-related-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 27px; letter-spacing: -0.01em; margin: 0 0 16px; }

/* Testimonial under the gallery (matches the services-page quote style) */
.bogard-quote { margin: 22px 0 0; padding: 0; }
.bogard-quote-text { margin: 0; padding: 0; border: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 25px; line-height: 1.4; color: var( --bg-text ); }
.bogard-quote-cite { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.bogard-quote-author { display: block; font-weight: 600; color: var( --bg-text ); }
.bogard-quote-role { display: block; color: var( --bg-text-3 ); }
/* Standard-project testimonial (under the gallery) gets the orange accent rule.
   !important beats the theme's #top blockquote styling; scoped to the hero
   column so the case-study testimonial stays plain. */
.bogard-hero-left .bogard-quote { border-bottom: 3px solid var( --bg-accent ) !important; padding-bottom: 20px !important; }

/* Quick facts — shared by standard + case-study layouts (identical look) */
.bogard-quickfacts { margin-top: 22px; }
.bogard-quickfacts-title { font-family: "Inter", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var( --bg-text-2 ); text-align: center; margin: 0 0 10px; }
.bogard-quickfacts .bogard-facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* center the items; wraps cleanly to a 2nd row */
	gap: 6px 0;
	border-top: 2px solid var( --bg-accent );
	border-bottom: 2px solid var( --bg-accent );
	padding: 9px 0;
	margin: 0;
}
.bogard-quickfacts .bogard-fact { padding: 2px 20px; text-align: center; }
.bogard-quickfacts .bogard-fact-v { line-height: 1.2; }
/* Full-width row divider inserted by JS only where the facts wrap. */
.bogard-facts-sep { flex: 0 0 100%; height: 0; margin: 8px 0; border-top: 1px solid #E5E5E5 !important; }

/* Case study — Challenge / Approach / Result as horizontal accent boxes */
.bogard-cs-flow { margin: 42px 0 0; display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 24px; }
.bogard-cs-flow[data-steps="1"] { grid-template-columns: 1fr; }
.bogard-cs-flow[data-steps="2"] { grid-template-columns: repeat( 2, 1fr ); }
.bogard-cs-step {
	margin: 0;
	padding: 30px;
	background-color: rgba( 195, 210, 222, 0.3 );
	border-bottom: 3px solid var( --bg-accent ) !important; /* beat the theme's #top .main_color border rules */
	border-radius: 4px 4px 0 0;
}
.bogard-cs-step-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 600;
	font-size: 26px;
	color: var( --bg-accent ) !important;
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}
.bogard-cs-step .bogard-narrative { font-size: 15px; }
/* Case-study testimonial: centered under the Challenge/Approach/Result row,
   plain on the white background, not full width. */
.bogard-cs-testimonial { max-width: 760px; margin: 40px auto 0; padding: 0 24px; text-align: center; }
.bogard-cs-testimonial .bogard-quote { margin: 0; }
.bogard-cs-testimonial .bogard-quote-text { font-size: 27px; }
/* Strip the theme's default blockquote background/border so it sits plainly
   on the white page (case studies only). */
.bogard-cs-testimonial figure,
.bogard-cs-testimonial blockquote,
.bogard-cs-testimonial .bogard-quote,
.bogard-cs-testimonial .bogard-quote-text {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
.bogard-cs-testimonial .bogard-quote-text { margin: 0 !important; padding: 0 !important; }
@media ( max-width: 800px ) {
	.bogard-cs-flow,
	.bogard-cs-flow[data-steps="2"] { grid-template-columns: 1fr; }
	.bogard-h1 { font-size: 40px; }
}
.bogard-archive-head { max-width: 1310px; margin: 0 auto 18px; }
.bogard-archive-intro { color: var( --bg-text-2 ); max-width: 760px; }

/* Favorites floating button */
.bogard-fav-btn { position: fixed; right: 20px; bottom: 20px; z-index: 9999; background: #1a1a1a; color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-size: 13px; cursor: pointer; box-shadow: 0 6px 24px rgba( 0,0,0,0.25 ); display: none; }
.bogard-card-fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba( 255,255,255,0.85 ); cursor: pointer; font-size: 14px; line-height: 30px; text-align: center; }
.bogard-card-fav.is-saved { background: #1a1a1a; color: #fff; }
.bogard-fav-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba( 0,0,0,0.45 ); display: flex; align-items: center; justify-content: center; }
.bogard-fav-modal { background: #fff; border-radius: var( --bg-radius ); padding: 24px 28px; width: min( 480px, 90vw ); max-height: 80vh; overflow: auto; position: relative; }
.bogard-fav-modal h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 26px; margin: 0 0 14px; }
.bogard-fav-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #888; }
.bogard-fav-list { list-style: none; margin: 0; padding: 0; }
.bogard-fav-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var( --bg-border-3 ); }
.bogard-fav-list a { color: var( --bg-text ); text-decoration: none; }
.bogard-fav-remove { border: 0; background: none; color: #b32d2e; font-size: 18px; cursor: pointer; }

/* Map */
.bogard-map { width: 100%; height: 560px; border-radius: var( --bg-radius ); overflow: hidden; }
.bogard-map-wrap { max-width: 1310px; margin: 0 auto; }

/* Client logos rail */
.bogard-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; padding: 24px 0; }
.bogard-logos img { max-height: 54px; width: auto; filter: grayscale( 100% ); opacity: 0.7; transition: opacity 0.3s, filter 0.3s; }
.bogard-logos img:hover { filter: none; opacity: 1; }

/* Responsive */
@media ( max-width: 1000px ) {
	.bogard-grid { grid-template-columns: repeat( 2, 1fr ); }
	.bogard-related-grid { grid-template-columns: repeat( 3, 1fr ); }
	.bogard-hero { grid-template-columns: 1fr; }
	.bogard-hero-left { width: 100%; }
	.bogard-scope-grid { grid-template-columns: repeat( 2, 1fr ); }
	.bogard-stats { grid-template-columns: repeat( 2, 1fr ); }
	.bogard-featured[data-columns] .bogard-carousel-slide { flex-basis: calc( 100% - 20px ); }
}
@media ( max-width: 600px ) {
	.bogard-grid, .bogard-related-grid { grid-template-columns: 1fr; }
	.bogard-facts { grid-template-columns: 1fr 1fr; }

	/* Push the top toolbar clear of the fixed mobile header. */
	.bogard-toolbar { margin-top: 30px; }

	/* Smaller case-study headline so it doesn't dominate the screen. */
	.bogard-h1 { font-size: 30px; }

	/* Quick facts: drop the dividers and let the items wrap, centered. */
	.bogard-quickfacts .bogard-fact { border-left: 0; padding: 6px 14px; }
	.bogard-quickfacts .bogard-fact-v,
	.bogard-quickfacts .bogard-fact-l { font-size: 13px; }

	/* Footer nav: stack the three buttons so each label stays on one line
	   and the spacing is even. */
	.bogard-footer-nav { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 22px; }
	.bogard-footer-nav .bogard-fn-prev,
	.bogard-footer-nav .bogard-fn-next,
	.bogard-footer-nav .bogard-fn-all {
		justify-content: center;
		white-space: nowrap;
		font-size: 14px;
	}
	.bogard-footer-nav .bogard-fn-prev,
	.bogard-footer-nav .bogard-fn-next { padding: 11px 18px; }
	.bogard-footer-nav .bogard-fn-all { padding: 10px; }
	/* On mobile, put Next on top and Previous on the bottom. */
	.bogard-footer-nav .bogard-fn-next { order: -1; }
	.bogard-footer-nav .bogard-fn-all { order: 0; }
	.bogard-footer-nav .bogard-fn-prev { order: 1; }
	/* Hide the empty placeholder spans that would add blank rows when a
	   project has no previous/next neighbour. */
	.bogard-footer-nav > span:empty { display: none; }
}
