/* ==========================================================================
   hexclad.css — "SpringFin and HexClad" case study
   ========================================================================== */

.page-hexclad { color: var(--ink-strong); }
.page-hexclad h1, .page-hexclad h2, .page-hexclad h3, .page-hexclad h4 { font-family: var(--font-body); }

.cs-section { padding: 54px 0; }

/* Big grey uppercase section label with the SpringFin swirl above it. */
.cs-kicker {
  margin: 0 0 40px;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}
.cs-kicker--icon::before {
  content: "";
  display: block;
  width: 60px; height: 53px;
  margin: 0 auto 30px;
  background: url("../media/2024/05/Icon.png") no-repeat center / contain;
}

/* Heading with the short orange rule underneath. */
.cs-underline {
  position: relative;
  padding-bottom: 17px;
  margin-bottom: 17px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}
.cs-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 4px;
  background: var(--coral);
}
.cs-underline--center { text-align: center; }
.cs-underline--center::after { left: 50%; transform: translateX(-50%); }

/* ---- Banner -------------------------------------------------------------- */
.cs-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 670px;
  padding: 120px 0 110px;
  background: #222 url("../media/2024/06/Group-1-8.png") no-repeat center / cover;
  color: var(--white);
  text-align: center;
}
.cs-banner__title { font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--white); margin: 0 0 10px; }
.cs-banner__subtitle { font-size: 40px; line-height: 1.2; font-weight: 400; margin: 0; }

/* ---- Facts card overlapping the banner --------------------------------- */
.cs-facts-wrap { padding: 0 var(--gutter) 40px; }
.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px;
  margin: -56px auto 0;
  padding: 35px 62px 30px;
  background: var(--white);
  box-shadow: 5px 0 16px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}
.cs-facts__item { position: relative; }
.cs-facts__item + .cs-facts__item::before {
  content: "";
  position: absolute;
  left: -26px; top: 0;
  width: 1px; height: 100px;
  background: #d9d9d9;
}
.cs-facts dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 26px;
  text-transform: uppercase;
  color: var(--green-alt);
}
.cs-facts dt img { width: 22px; height: 22px; }
.cs-facts dd { margin: 20px 0 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink-strong); }

@media (max-width: 1200px) {
  .cs-facts { padding: 30px 30px 24px; gap: 32px; }
  .cs-facts__item + .cs-facts__item::before { left: -16px; }
}
@media (max-width: 980px) {
  .cs-banner { min-height: 600px; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts__item:nth-child(3)::before { display: none; }
}
@media (max-width: 767px) {
  .cs-banner { min-height: 450px; padding: 80px 0 90px; }
  .cs-banner__title, .cs-banner__subtitle { font-size: 30px; line-height: 1.5; }
}
@media (max-width: 479px) {
  .cs-facts { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .cs-facts__item::before { display: none !important; }
  .cs-facts__item { padding-bottom: 20px; border-bottom: 1px solid #d9d9d9; }
  .cs-facts__item:last-child { border-bottom: 0; padding-bottom: 0; }
  .cs-facts dt { justify-content: center; }
  .cs-facts dd { margin-top: 8px; font-size: 20px; }
}

/* ---- Executive summary --------------------------------------------------- */
.cs-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1022px;
  margin: 40px auto 0;
}
.cs-overview__text p { font-size: 16px; line-height: 24px; }
.cs-overview__media img { width: 100%; border-radius: 24px; }

/* ---- Key results --------------------------------------------------------- */
.cs-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  max-width: 1022px;
  margin: 40px auto 0;
  list-style: none;
  counter-reset: none;
}
.cs-result {
  padding: 32px;
  border: 1px solid #dcdbed;
  border-radius: 32px;
  box-shadow: var(--shadow-card);
}
.cs-result__number { display: block; font-size: 60px; line-height: 1; font-weight: 500; color: #f6f4fc; margin-bottom: 10px; }
.cs-result p { font-family: var(--font-alt); font-size: 16px; line-height: 1.5; color: var(--text); }

/* ---- About the client ---------------------------------------------------- */
.cs-client {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
.cs-client__media img { width: 100%; border-radius: 24px; }
.cs-hex-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}
.cs-hex-heading::before {
  content: "";
  width: 24px; height: 22px;
  background: url("../media/2024/05/Vector-9.png") no-repeat center / contain;
}
.cs-client__text p { font-size: 16px; line-height: 1.5; margin: 0 0 32px; }
.cs-client__text p:last-child { margin-bottom: 0; }

/* ---- Project objectives -------------------------------------------------- */
.cs-objectives { padding-bottom: 0; }
.cs-objectives .cs-kicker { margin-bottom: 20px; }
.cs-objectives__statement {
  position: relative;
  padding-top: 20px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
}
.cs-objectives__statement::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 40px; height: 4px;
  transform: translateX(-50%);
  background: var(--coral);
}

/* ---- Project goals card -------------------------------------------------- */
.cs-goals { position: relative; padding: 54px var(--gutter) 60px; }
.cs-goals::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 280px;
  background: linear-gradient(89.86deg, rgba(246, 133, 82, 0.5) 0.12%, rgba(247, 133, 83, 0.2) 99.89%);
  opacity: 0.3;
  z-index: 0;
}
.cs-goals__card {
  position: relative;
  z-index: 1;
  max-width: 1039px;
  margin: 0 auto;
  padding: 54px 20px 40px;
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}
.cs-goals__card .cs-underline { font-weight: 500; margin-bottom: 30px; }

.icon-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 27px 46px;
  max-width: 830px;
  margin: 0 auto;
  list-style: none;
}
.icon-points li { display: flex; align-items: center; gap: 20px; }
.icon-points img { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; box-shadow: var(--shadow-icon); }
.icon-points p { font-size: 18px; line-height: 27px; margin: 0; }
.icon-points--wide { max-width: none; gap: 27px 60px; }

/* ---- Solution + laptop gallery ------------------------------------------ */
.cs-solution { padding-top: 140px; }
.cs-solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cs-solution__statement { padding-top: 90px; font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--ink-strong); margin: 0; }

.laptop-gallery__frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 510 / 300;
  padding: 9.6% 14.9% 9.6% 16.1%;
  background: url("../media/2024/06/Laptop.png") no-repeat center / 100% 100%;
}
.laptop-gallery__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.laptop-gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px auto 0;
  list-style: none;
}
.laptop-gallery__thumbs button {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  background: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.laptop-gallery__thumbs button.is-active, .laptop-gallery__thumbs button:hover { border-color: var(--green); transform: translateY(-2px); }
.laptop-gallery__thumbs img { width: 60px; height: 38px; object-fit: cover; border-radius: 5px; }
.laptop-gallery__download { margin: 16px 0 0; font-size: 14px; text-align: center; }

/* ---- Key features -------------------------------------------------------- */
.cs-features .cs-underline { font-weight: 500; margin-bottom: 40px; }
.cs-fulfil-card {
  margin-top: 140px;
  padding: 56px 66px;
  border: 1px solid #dcdbed;
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.cs-fulfil-card .cs-underline { font-weight: 500; }
.cs-fulfil-card p { max-width: 948px; margin: 0 auto 18px; font-size: 18px; line-height: 1.5; }
.cs-fulfil-card img { margin: 0 auto; width: 105px; }

/* ---- Testimonials -------------------------------------------------------- */
.cs-testimonials { padding: 50px 0 30px; }
.cs-testimonials .cs-kicker { margin-bottom: 0; }

/* ---- Real-world solutions ------------------------------------------------ */
.cs-realworld { padding: 100px 0 0; }
.cs-realworld__intro { max-width: 716px; margin: 0 auto 40px; text-align: center; }
.cs-realworld__intro p { font-size: 14px; line-height: 1.7; }

.cs-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 60px;
  list-style: none;
}
.cs-point {
  padding-right: 40px;
  background: url("../media/2024/05/Vector-10.png") no-repeat right bottom / 24px auto;
}
.cs-point img { width: 60px; height: 60px; border-radius: 50%; box-shadow: var(--shadow-soft); margin-bottom: 30px; }
.cs-point p { font-size: 20px; line-height: 1.2; text-transform: uppercase; margin: 0; }
.cs-point--cta {
  padding: 43px 60px 43px 40px;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.cs-point--cta p { font-size: 24px; line-height: 36px; text-transform: none; margin: 0 0 24px; }

/* ---- What can we build for you ------------------------------------------ */
.cs-build { padding-top: 120px; }
.build-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  list-style: none;
}
.build-card {
  position: relative;
  min-height: 370px;
  background: var(--green) url("../media/2024/05/Group-7-1.png") no-repeat center / cover;
}
.build-card__title {
  position: absolute;
  left: 24px; bottom: 24px;
  margin: 0;
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
  color: var(--ink-strong);
}
.build-card__title strong { display: block; font-weight: 700; }
.build-card__title span { display: block; }
.build-card__detail {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 0 14px -5px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.build-card:hover .build-card__detail,
.build-card:focus-within .build-card__detail { opacity: 1; }
.build-card__detail h4 { margin: 0 0 20px; font-size: 32px; line-height: 42px; font-weight: 500; color: var(--ink-strong); }
.build-card__detail h4 strong { display: block; color: var(--coral); font-weight: 700; }
.build-card__detail h4 span { display: block; }
.build-card__detail p { font-size: 15px; line-height: 1.6; }

/* ---- Why choose us ------------------------------------------------------- */
.cs-why { padding: 0 0 54px; }
.cs-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cs-why__kicker { margin: 0 0 28px; font-size: 16px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--coral); }
.cs-why__statement { font-size: 28px; line-height: 42px; margin: 0 0 28px; color: var(--ink-strong); }
.cs-why__statement .accent-green { font-weight: 700; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .cs-section { padding: 40px 0; }
  .cs-kicker { font-size: 30px; }
  .cs-overview, .cs-client, .cs-solution__grid, .cs-why__grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-overview__text { text-align: center; }
  .cs-overview__text .cs-underline::after { left: 50%; transform: translateX(-50%); }
  .cs-results__grid { grid-template-columns: 1fr; gap: 24px; max-width: 480px; }
  .cs-result__number { font-size: 50px; }
  .cs-client__media { order: 2; }
  .cs-client__media img { border-radius: 0; }
  .cs-goals__card { max-width: 80%; }
  .icon-points { grid-template-columns: 1fr; gap: 24px; }
  .icon-points li { flex-direction: column; text-align: center; }
  .cs-solution { padding-top: 40px; }
  .cs-solution__statement { padding-top: 0; font-size: 18px; text-align: center; }
  .laptop-gallery { max-width: 460px; margin-inline: auto; }
  .laptop-gallery__thumbs { flex-wrap: wrap; }
  .cs-fulfil-card { margin-top: 60px; padding: 40px 24px; }
  .cs-fulfil-card p { font-size: 16px; }
  .cs-realworld { padding-top: 60px; }
  .cs-points { grid-template-columns: 1fr; gap: 0; }
  .cs-point { display: flex; align-items: center; gap: 16px; padding: 0 40px 20px 0; margin-bottom: 20px; border-bottom: 1px solid #dcdbed; background-position: right center; }
  .cs-point img { margin-bottom: 0; }
  .cs-point--cta { flex-direction: column; text-align: center; padding: 0; margin: 0 0 40px; border: 0; box-shadow: none; background: none; }
  .cs-point--cta p { font-size: 18px; margin-bottom: 16px; }
  .cs-build { padding-top: 60px; }
  .build-cards { grid-template-columns: 1fr; gap: 20px; }
  .cs-why__media { order: 2; }
  .cs-why__text { text-align: center; }
  .cs-why__statement { font-size: 19px; line-height: 1.5; }
}

@media (max-width: 600px) {
  .cs-kicker { font-size: 24px; }
  .build-card { min-height: 70px; overflow: hidden; }
  .build-card__title { position: static; display: flex; gap: 8px; padding: 14px 24px; font-size: 24px; line-height: 42px; }
  .build-card__title strong, .build-card__title span { display: inline; }
  .build-card__detail { position: static; opacity: 1; display: none; }
  .build-card:hover, .build-card:focus-within { min-height: 0; }
  .build-card:hover .build-card__title, .build-card:focus-within .build-card__title { display: none; }
  .build-card:hover .build-card__detail, .build-card:focus-within .build-card__detail { display: block; }
  .build-card__detail h4 { font-size: 25px; line-height: 1.3; }
  .cs-goals__card { max-width: none; padding: 30px 16px; }
  .icon-points p { font-size: 16px; line-height: 1.5; }
}
