/* --- CSS Reset (Improved) --- */

/* Box sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root defaults */
html {
  -webkit-text-size-adjust: 100%; /* Fix font scaling on iOS */
  text-rendering: optimizeLegibility;
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  min-height: 100vh;

}

/* Media elements */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fade-in linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(440px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Misc */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus {
  outline: 2px solid Highlight;
  outline-offset: 2px;
}

/* Ensure sections behave as true blocks */
section {
  display: block;
  width: 100%;
  position: relative;
  min-height: 1px;
}

/* Ensure each section clears previous layout */
section::after {
  content: "";
  display: block;
  clear: both;
}

hr {
	border: .5px solid rgba(0, 0, 0, 0.08);
	margin: 3rem 0;
}

.uppercase {
	text-transform: uppercase;
}

.bullet {
	list-style-type: square;
	margin-left: 1.1rem;
	margin-bottom: .5rem;
}


/* --- GRID FOR PAGE STRUCTURE + FLEX FOR COMPONENTS --- */

/* Grid Container */
.container {
  width: 100%;
  margin: 0 auto;
}

.wrap {
	margin: 0 4rem;
}

.spacer {
	margin: 8rem 0;
}

/* NAV */
.nav {
  display: grid;
  grid-template-columns: 10fr 3fr 3fr 3fr;
  position: sticky;
  top: 0;
  margin: 2rem 0;
  overflow: hidden;
  align-items: center;

}
.nav div {
  display: flex;
}

.text-link:hover {
	text-decoration: underline;
}

.logo {
	padding: 1rem;
	background: black;
	color: white;
}

/* HERO */
 .hero {
      display: grid;
      grid-template-columns: 3fr 3fr;
      grid-gap: 2rem;
      min-height: 80vh;
      place-items: center;
       
    }

    .content {
      padding:0;
    }


.profile {
	align-items: center;
	width:500px;
}


/* Card Grid */

.card-grid {
	
  display: grid;
  grid-template-columns: 3fr 3fr;
  place-items: center;
  grid-gap: 2rem;
}

/* Each card */
.card-content {
	height: 100%;
	width: 100%;
}

/* Image */
.card-content img {
	width: 100%;
	height: auto;
}

/* Details */
.card-details {
	margin: 4rem 0;
}


/* Probsol Table */

.probsol-grid {
	
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
}

/* Each card */
.probsol-content {
	height: 100%;
	width: 100%;
}

/* Details */
.probsol-details {
	border-bottom: .5px solid rgba(0, 0, 0, 0.08);
	text-align: left;
	padding: 1rem 2rem 1rem 0;
	flex: 1;
	height: 100%;       
}

/* Button */
.primary-btn {

  background-color: black;
  border: none;
  color: white;
  padding: 1rem 2rem!important;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  width: fit-content;
  font-weight: bold;

}

.primary-btn:hover {
	background: #323232;
} 

.primary-btn-inverse {

  background-color: white;
  border: none;
  color: black;
  padding: 1rem 2rem!important;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  width: fit-content;
  font-weight: bold;

}

.primary-btn-inverse:hover {
	background: #323232;
	color: white;
} 

/* Link */
.card-content a {
  display: block;
  margin: 0;
  padding: 0;
}


.about-grid {
	
   display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;            /* middle + right are vertically centered */
  column-gap: 3rem;
}

/* Left text should be top-aligned only */
.about-left {
  align-self: start;
}

/* Right text sits mid-line or bottom-ish; adjust as needed */
.about-right {
  align-self: center; /* or center if you prefer */

}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.accordion {
	width: 50%;
	display: flex;
	flex-direction: column;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between; /* keeps icon on the far right */
  align-items: flex-start;        /* aligns text to the top */
  padding: 1rem;
  margin: 0.2rem 0;
  border: none;
  background: #f3f3f3;
  cursor: pointer;
  transition: background 0.1s;
  text-align: left;
}

.accordion-trigger:hover {
  background: #e8e8e8;
}

.accordion-trigger .icon {
  font-weight: bold;
  font-size: 1.25rem;
}

/* Symbol swap */
.accordion-trigger[aria-expanded="false"] .icon::before { content: "+"; }
.accordion-trigger[aria-expanded="true"] .icon::before { content: "-"; }

/* Panels start visually closed */
.accordion-panel {
  overflow: hidden;
  padding: 1rem;
  max-height: auto;
  opacity: 0;
  transition:
    max-height 0.1s ease,
    opacity 0.1s ease;

}

.accordion-trigger:focus {
  outline: none;
  box-shadow: none;
}

.footer {
	background: black;
  color: white;
 z-index: -1;
 padding: 4rem;
 display: flex;
 flex-direction: column;
}




.footer:is(:target, :hover, :focus-within) {
  transform: translateY(0);
}


/*--INTERNAL-PAGE--*/

/* HERO */

    .case-study-wrapper {
	width: 60%;
	margin:0 auto;
	text-align: left;
}

.hero-image {
	align-items: center;
	width:100%;
}

.carousel {
position: relative;
overflow: visible; /* allows buttons to sit outside */
background: #000;
display: flex;
justify-content: center;
align-items: center;
}

.carousel img {
width: 100%;
height: 100%;
}

.carousel button {
position: absolute;
top: 50%;
background: black;
border: none;
padding: 0.75rem 1rem;
cursor: pointer;
font-size: 2rem;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
}

.carousel button:disabled {
opacity: 0.3;
cursor: not-allowed;
}

.carousel .prev {
left: -6rem; /* shift button outside the left edge */
color: white;
}

.carousel .next {
right: -6rem; /* shift button outside the right edge */
color: white;
}



/* Outcomes Grid */

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* same as 3fr 3fr 3fr but cleaner */
  gap: 2rem;                             /* spacing between items */
}

.outcomes-content {
  display: flex;
  flex-direction: column;
  height: 100%;       /* take full height of grid item */
}

.outcomes-details {
  flex: 1;            /* fill remaining height */
  padding: 2rem;
  background: #f5f5f7;
}

.outcomes-details svg {
	display: inline-flex;
	vertical-align: center;
	fill: green;
}


.outcomes-details h2 {
	margin-bottom: 0.5rem;
}

/* Insight Grid */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* same as 3fr 3fr 3fr but cleaner */
  gap: 2rem;                             /* spacing between items */
}

.insight-content {
  display: flex;
  flex-direction: column;
  height: 100%;       /* take full height of grid item */
}

.insight-details {
  flex: 1;            /* fill remaining height */
  padding: 2rem;
  background: #f5f5f7;
  text-align: left;
}

.insight-details h6 {
	margin-bottom: 0.5rem;
}

/* Client Grid */

.client-grid {
  display: grid;
  margin: 8rem 0;
  grid-template-columns: repeat(4, 1fr); /* same as 3fr 3fr 3fr but cleaner */
  gap: 2rem;                             /* spacing between items */
  row-gap: 4rem;
}

.client-content {
  display: flex;
  flex-direction: column;
  height: 100%;       /* take full height of grid item */
}

.client-details {
  max-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-details img {
   max-width: 100%;
  max-height: 100%;
  object-fit: contain;
   filter: grayscale(0%);
}


/* Quote Grid */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* same as 3fr 3fr 3fr but cleaner */
  gap: 2rem;                             /* spacing between items */
}

.quote-content {
  display: flex;
  flex-direction: column;
  height: 100%;       /* take full height of grid item */
}

.quote-details {
  flex: 1;            /* fill remaining height */
  padding: 2rem;
  background: #f5f5f7;
  text-align: left;
  font-style: italic;
}

.quote-details h2 {
	margin-bottom: -1rem;
}

.role {
	text-transform: uppercase;
}

.green {
	fill: green;
}


.image-toggle {
}

/* Tabs */
.image-toggle .tabs {
  display: flex;
}

.image-toggle .tab {
  flex: 1;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  background: #f5f5f7;
  border: none;
  transition: 0.2s;
}

.image-toggle .tab.active {
  border-bottom: 3px solid #007AFF;
  font-weight: bold;
  color: #007AFF;
  background: #fff;
}

/* Image container */
.image-toggle .image-container {
  margin-top: 2rem;
}

.image-toggle .image {
  width: 100%;
  display: none;
}

.image-toggle .image.active {
  display: block;
}



/* --- Headings Scale with Perfect Third --- */
h6 { font-size: clamp(0.875rem, 1vw, 1rem); line-height: 1.4; }
h5 { font-size: clamp(1.167rem, 1.3vw, 1.333rem); line-height: 1.35; }
h4 { font-size: clamp(1.556rem, 1.7vw, 1.777rem); line-height: 1.3; }
h3 { font-size: clamp(2.074rem, 2.2vw, 2.37rem); line-height: 1.25; }
h2 { font-size: clamp(2.765rem, 3vw, 3.16rem); line-height: 1.2; }
h1 { font-size: clamp(3.688rem, 4vw, 4.21rem); line-height: 1.15; }
h1.xl { font-size: clamp(7rem, 4vw, 4.21rem); line-height: 1; margin-bottom:.2em; letter-spacing:-.2rem; }

.email { font-size: clamp(2.074rem, 2.2vw, 2.37rem); line-height: 1.25; }

/* Optional: bold and spacing */
h1, h2, h3, h4, h5, h6, p {
  margin-bottom: 1.5em;
}


/* Generic Styling */
.bold {
  font-weight: 700;
}

.regular {
	font-weight: 100;
}

/* Responsive */
 @media (max-width:1200px) {
      .hero, .about-grid, .outcomes-grid, .insight-grid, .quote-grid  {grid-template-columns: 1fr; padding: auto;}
      .wrap {margin: 0 2rem;}
       h1 { font-size: clamp(2.5rem, 6vw, 3rem); line-height: 1.2; }
       h1.xl { font-size: clamp(3rem, 6vw, 3rem); line-height: 1.2; }
  h2 { font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1.2; }
  h3 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; }
  h4 { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.3; }
  h5 { font-size: clamp(1rem, 2.5vw, 1.2rem); line-height: 1.35; }
  h6 { font-size: clamp(0.875rem, 2vw, 1rem); line-height: 1.4; }
  .email { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.3; }
  .profile { width:100%; }
  .spacer {margin: 4rem 0;}
   .accordion {width: 100%;}
   .carousel .prev {
left: -1rem; /* shift button outside the left edge */
color: white;
}

.carousel .next {
right: -1rem; /* shift button outside the right edge */
color: white;
}

   	.nav-btn {display: none!important;}
   	.nav {
  grid-template-columns: 10fr 2fr 2fr!important;}
  .footer {padding: 2rem;}
  .case-study-wrapper, .hero-image, .hero-case-study {width: 100%!important;}
  .outcomes-details { display: grid; grid-template-columns: 0.5fr 1fr; place-items: start; align-items: center; text-align: left;}
  .outcomes-details h2 {margin-bottom: 1rem;}
}

@media (max-width:900px) { 
.hero {min-height: 600px!important; grid-template-columns: 1fr;}
.card-grid {grid-template-columns: 1fr;}
}