header{
	border-bottom: var(--border-width) solid #444a51;
}
.page_jumps .container, header .wrapper{
	max-width: 1200px;
}
header .wrapper{
	display: flex;
	width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.split_hero, .split_section{
	display: flex;
	align-items: center;
}
.split_hero{
	height: 85vh;
}
.split_section{
	display: flex;
	min-height: 90vh;
/*	background-color: var(--primary-background);*/
	align-items: stretch;
}
.split_hero > *, .split_section > *{
	flex: 1;
}
.split_section img {
	display: block;
	width: 100%;
	height: auto;
	background-color: var(--neutral-background); /* <-- Fallback background color */
	object-fit: cover;
}
.split_hero h1{
	margin-bottom: var(--spacing-unit-3x);
	color: var(--secondary-text-color);
	font-size: var(--font-size-3);
}
.split_hero p{
	font-size: calc(var(--font-size-2) / 1.3);
}
.split_hero .label{
	margin-bottom: var(--spacing-unit-2x);
}
.split_hero .header_description, .split_section .content_container{
	box-sizing: border-box;
	margin: var(--spacing-unit-7x);
}
.page_jumps {
  display: flex;
  box-sizing: border-box;
  padding: var(--spacing-unit-3x) 0;
  background-color: var(--secondary-background);
  color: var(--link-default-color);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page_jumps .container {
  display: flex;
  margin: 0 auto;
  align-items: center;
  gap: 1.5rem;
}

.page_jumps h2 {
  display: inline;
  margin: 0;
  color: var(--light-text-color);
  font-size: var(--font-size-1);
  font-family: var(--body-font);
  white-space: nowrap;
  flex-shrink: 0;
}

.page_jumps nav {
  display: flex;
  gap: 1.5rem;
}

.page_jumps nav a {
  transition: color 0.2s ease;
  white-space: nowrap;
}

.page_jumps nav a.is-active {
  color: #f9d8ae;
  font-weight: 600;
}
.content_wrapper{
	max-width: 960px;
}
.content_wrapper h2, .split_section h2{
	font-size: var(--font-size-3);
}
.split_section h2{
/*	color: var(--accent-color);*/
}
.split_section p, .split_section li{
/*	color: var(--accent-color);*/
	letter-spacing: 1.5px;
	word-spacing: 1.5px;
}
.content_wrapper h3, .content_wrapper h4, .split_section h3{
	color: var(--secondary-text-color);
	font-family: var(--body-font);
}

.split_section h3{
	color: var(--accent-color);
}
.content_wrapper h3, .split_section h3{
	margin: var(--spacing-unit-2x) 0;
	font-size: var(--font-size-2);
	font-weight: 500;
}
.content_wrapper h4{
	margin: var(--spacing-unit) 0;
	font-size: var(--font-size-1);
}

.content_wrapper p{
	margin: var(--spacing-unit) 0 var(--spacing-unit-2x);
}

.colored_section.neutral{
	background-color: var(--neutral-background);
}
.colored_section.secondary{
	background-color: var(--secondary-background);
	color: var(--accent-color);
}
.colored_section.accent{
	background-color: var(--accent-color);
}
.colored_section.pulled_quote{
	font-size: calc( var(--font-size-2) / 1.3);
}
.colored_section.secondary h2, 
.colored_section.secondary h3,
.colored_section.secondary h4{
	color: var(--accent-color);
}
.light_card{
	width: 80%;
	padding: var(--spacing-unit-7x);
	box-shadow: var(--light-box-shadow);
	background-color: var(--white-background);
}
.light_card h2{
	margin-top:0;
}
.page_jumps nav, .related_case_studies{
	display: flex;
}
.related_case_studies > *{
	flex: 1;
	box-sizing: border-box;
	padding: var(--spacing-unit-7x);
	border-top: var(--border-width) solid var(--card-border-color);
	border-left: var(--border-width) solid var(--card-border-color);
	transition: background-color 0.8s ease;
}
.related_case_studies > *:last-child{
	border-right: var(--border-width) solid var(--card-border-color);
}
.related_case_studies > *:hover{
	background-color: var(--white-background);
}
.related_case_studies h3{
	font-size: var(--font-size-0);
	font-weight: 600;
	margin-top: 0;
}
.content_wrapper .related_case_studies p{
	margin: 0;
	margin-top: var(--spacing-unit-2x);
	color: var(--dark-link-text-color);
	font-size: var(--font-size-0);
}
.related_resources .content_wrapper{
	padding-block: 0;
	padding-block-start: var(--spacing-unit-8x);
}
.related_resources{
	border-bottom: var(--border-width) solid var(--card-border-color);
}

.flush-top .content_wrapper{
	padding-block-start: var(--spacing-unit-5x);
 }
/*#about_cta .content_wrapper a{
	color: #000;
}*/
/*#about_cta .content_wrapper a:hover{
	text-decoration: underline;
	transition: opacity .4s;
}*/

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    z-index: 9999;
    background: #e7b97a;
}

#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.08);
  color: #111;

  font-size: 18px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    background 0.2s ease,
    transform 0.2s ease;

  z-index: 999;
}


/* show when active */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}


/* hover — use your accent */
#backToTop:hover {
  background: #f9d8ae;
  transform: translateY(-2px);
}

.split_hero img{
	min-width: 0;
	min-height: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	border-left: 1px solid var(--card-border-color);
}
/* Base image block */
.case-study-image {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

/* Full-width before/after */
.case-study-image--full img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--card-border-color);
  cursor: pointer;
  transition: opacity 200ms ease;
}

.case-study-image--full img:hover {
  opacity: 0.92;
}

/* Side-by-side pair wrapper */
.case-study-image--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

/* Individual detail image */
.case-study-image--detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.case-study-image--detail img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--card-border-color);
}

/* Before/after label */
.case-study-image__label {
  display: inline-block;
  font-size: var(--button-font-size);
  letter-spacing: var(--letter-spacing-body-copy);
  text-transform: uppercase;
  color: var(--secondary-text-color);
  border: var(--border-width) solid var(--dark-neutral-background);
  padding: 4px 10px;
  align-self: flex-start;
}

/* Caption */
.case-study-image__caption {
  font-size: 12px;
  letter-spacing: var(--letter-spacing-body-copy);
/*  color: var(--dark-neutral-background);*/
  line-height: 1.6;
  margin: 0;
}

/* Expand hint overlay on hover */
.case-study-image--full {
  position: relative;
}

.case-study-image--full::after {
  content: 'Expand';
  position: absolute;
  bottom: 42px;
  right: 12px;
  font-family: var(--body-font);
  font-size: var(--button-font-size);
  letter-spacing: var(--letter-spacing-body-copy);
  text-transform: uppercase;
  color: var(--light-text-color);
  background: rgba(26, 30, 35, 0.8);
  padding: 4px 10px;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.case-study-image--full:hover::after {
  opacity: 1;
}

/* =========================
   Lightbox trigger behavior
   ========================= */

.lightbox-trigger {
  cursor: pointer;
  transition: opacity 200ms ease;
}

.case-study-image--full {
  position: relative;
}

.case-study-image--full .lightbox-trigger:hover,
.case-study-image--full .lightbox-trigger:focus-visible {
  opacity: 0.92;
}

.case-study-image--full::after {
  content: "EXPAND";
  position: absolute;
  right: 16px;
  bottom: 44px;
  padding: 6px 10px;
  background: rgba(26, 30, 35, 0.8);
  color: var(--light-text-color);
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: var(--letter-spacing-body-copy);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 2;
}

.case-study-image--full:hover::after,
.case-study-image--full:focus-within::after {
  opacity: 1;
}

/* =========================
   Lightbox overlay
   ========================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 30, 35, 0.92);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 250ms ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  height: 100%;
  outline: none;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 32px;
  box-sizing: border-box;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  width: auto;
}

.lightbox-image-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pinch-zoom;
  outline: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #949494 transparent;
}

.lightbox-image-wrapper::-webkit-scrollbar {
  width: 8px;
}

.lightbox-image-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-image-wrapper::-webkit-scrollbar-thumb {
  background: #949494;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: none;
  border: 1px solid var(--card-border-color);
  transform: scale(0.96);
  transition: transform 250ms ease;
}

.lightbox-overlay.is-open .lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 12px;
  color: #c9c9c9;
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  max-width: 72ch;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--card-border-color);
  background: transparent;
  color: var(--light-text-color);
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: var(--letter-spacing-body-copy);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.lightbox-overlay[hidden] {
  display: none;
  pointer-events: none;
}

/* =========================
   Mobile adjustments
   ========================= */

@media (max-width: 767px) {
  .lightbox-dialog {
    padding: 80px 12px 24px;
  }

  .lightbox-content {
    max-width: 95vw;
  }

  .lightbox-image-wrapper {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-image {
    max-width: 95vw;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    min-width: 44px;
    min-height: 44px;
  }

  .case-study-image--full::after {
    right: 12px;
    bottom: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .case-study-image--pair {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width:500px ){
	#case-studies .item{
		width: 100%;
	}
	
	#case-studies .item h3{
		font-size: var(--font-size-2);
	}
	#case-studies .item p{
		font-size: var(--font-size-1);
	}
	.split_hero, .split_section{
		flex-direction: column;
	}
	.split_hero .header_description{
		margin: var(--spacing-unit-6x);
	}
	.split_hero h1{
		font-size: calc(var(--font-size-3) / 1.1);
	}
	.split_hero p{
		font-size: var(--font-size-mobile);
	}
	.content_wrapper h2, .split_section h2{
		font-size: calc(var(--font-size-3) / 1.2);
	}
	.content_wrapper h3{
		font-size: calc(var(--font-size-2) / 1.1);
	}
	.split_hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 85dvh;
	}
	.split_hero > * {
		flex: initial;
	}
	.page_jumps{
		display: none;
	}
	.split_section .content_container{
		margin: var(--spacing-unit-8x) var(--spacing-unit-6x);
	}
	.content_wrapper{
		width: 100%;
		margin: 0 var(--spacing-unit-6x);
	}
	.content_wrapper:has(.light_card){
		margin: 0;
	}
	p, li{
		max-width: 42ch;
		line-height: 1.5;
	}
	.related_case_studies{
		flex-direction: column;
	}
	.colored_section:has(#case-studies) .content_wrapper {
		margin: 0;
	}
	.colored_section:has(#case-studies) h2 {
		margin: 0 var(--spacing-unit-6x);
	}
}