/* Quicksand – self-hosted (latin, latin-ext subsets) */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: fallback;
  src: url('fonts/quicksand_latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: fallback;
  src: url('fonts/quicksand_latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   - Page/section titles:  Quicksand 700
   - Body text:            Quicksand 400
   - Emphasis / subheads:  Quicksand 500
   - 1rem = 16px (set on html)
   ════════════════════════════════════════════ */

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

/* ── Focus visibility ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 3px;
}

:root {
  /* Layout — fluid side gutters that shrink on smaller screens */
  --side: clamp(1rem, 6vw, 15rem);
  --textside: clamp(1rem, 12vw, 20rem);
  --content: 73rem;

  /* Colours */
  --green-header: #6C7044;
  --green-btn: #C5D886;
  --green-section: #FAFBF5;
  --green-100: #D1D3C5;
  --green2-100: #F3F9DE;
  --green-400: #898D69;
  --green-500: #D9ED93;
  --green-600: #62663E;
  --green-700: #4D5030;
  --pink-pin: #F2D9E2;
  --pink-icon: #DD9CB4;
  --pink-400: #DD9CB4;
  --black: #1a1a1a;
  --grey-100: #CFD0CC;
  --grey-800: #383833;
  --grey-900: #2A2B27;
  --gray: #666;
  --white: #fff;
  --cta-h: clamp(14rem, 22vw, 24.5rem);

  /* Semantic tokens */
  --text-body: #333;
  --text-muted: #888;
  --green-btn-hover: #b8cc72;
  --nav-bg: rgba(255, 255, 255, 0.72);
}

html {
  font-size: 16px;
  /* 1rem = 16px everywhere */
  overflow-x: hidden;
  min-height: 100%;
}

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  font-size: 1.125rem;
  line-height: 1.7rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}


/* ── Skip navigation link ── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 9999;
  background: var(--green-700);
  color: var(--white);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  left: 0;
}

/* ════════════════════════════════════════════
   NAV — shared
   ════════════════════════════════════════════ */

nav {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  border-bottom: 0.0625rem solid rgba(238, 238, 238, 0.6);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, border-bottom-color 0.35s ease, transform 0.3s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

nav.nav-over-hero {
  background: transparent;
  border-bottom-color: transparent;
}

/* Home page — nav overlays the hero background */
body.is-home .site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.nav-cta,
.nav-secondary-cta {
  background: var(--green-btn);
  border-radius: 1.25rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #b8cc72;
}

.nav-secondary-cta {
  background: var(--white);
  border: 0.0625rem solid var(--grey-100);
}

.nav-secondary-cta:hover {
  background: #00000010;
}

/* Scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

html:has(body.menu-open) {
  overflow: hidden;
}

/* home page */
.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.1rem;
}

.nav-logo-img {
  height: 1.5rem;
  width: auto;
  display: block;
}

.nav-logo-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-700);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(-0.5rem);
  transition: opacity 0.35s ease, max-width 0.4s ease, transform 0.35s ease;
  pointer-events: none;
}

.nav-show-name .nav-logo-name {
  opacity: 1;
  max-width: 16rem;
  transform: translateX(0);
  pointer-events: auto;
}

/* case study page title in nav */
.nav-page-title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links .nav-cta {
  background: var(--green-btn);
  border-radius: 1.25rem;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-0.375rem);
  pointer-events: none;
  max-width: 0;
  overflow: hidden;
  margin-left: -3rem;
  /* cancel the flex gap so it takes zero space */
  transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease,
    padding 0.3s ease, margin-left 0.3s ease;
}

.nav-links .nav-cta:hover {
  background: var(--green-btn-hover);
}

.nav-links .nav-secondary-cta {
  background: var(--white);
  border: 0.0625rem solid var(--grey-100);
  border-radius: 1.25rem;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-0.375rem);
  pointer-events: none;
  max-width: 0;
  overflow: hidden;
  margin-left: -3rem;
  /* cancel the flex gap so it takes zero space */
  transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease,
    padding 0.3s ease, margin-left 0.3s ease;
}

.nav-links .nav-secondary-cta:hover {
  background: #00000010;
}

.nav-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-menu-toggle span {
  display: block;
  width: 100%;
  height: 0.125rem;
  background: var(--black);
  border-radius: 0.125rem;
}

.nav-menu-toggle span+span {
  margin-top: 0.375rem;
}

.nav-menu-close {
  display: none;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
}

.nav-links a.nav-home-link {
  display: none;
}


/* ════════════════════════════════════════════
   FOOTER — shared
   ════════════════════════════════════════════ */

footer {
  background: transparent;
  padding: calc(var(--cta-h) * 0.2) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.footer-cta-card {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  min-height: var(--cta-h);
  background: var(--green-400);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
}

/* Right section — card image: floats above the green bar (4/5 above, 1/5 inside) */
.footer-cta-image {
  position: absolute;
  right: 0rem;
  /* 80 px gap from the right edge */
  top: calc(var(--cta-h) * -0.2);
  /* pull 80 % of height above the bar */
  height: var(--cta-h);
}

/* Card flip structure */
.card-flip {
  height: 100%;
  perspective: 1000px;
}

.card-flip-inner {
  position: relative;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.footer-cta-image:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front {
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
}

.footer-cta-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 2.125rem 1.25rem rgba(0, 0, 0, 0.05)) drop-shadow(0 3.75rem 1.5rem rgba(0, 0, 0, 0.01)) drop-shadow(0 0.9375rem 0.9375rem rgba(0, 0, 0, 0.09)) drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.10));
}

/* Content: fills the whole card; right padding accounts for image + 80 px gaps */
.footer-cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 4rem;
}

.footer-cta-heading {
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

.footer-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  margin: 0;
  line-height: 1.5;
}

.footer-cta-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-cta-links .hero-cta-btn,
.footer-cta-links .hero-secondary-cta-btn {
  margin-top: 0;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: none;
  border-radius: 0.875rem;
  border: 0.0625rem solid var(--grey-100);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}

.footer-cta-link:hover {
  background: var(--green-700);
}

.footer-cta-link img,
.footer-cta-link svg {
  flex-shrink: 0;
}

.footer-cta-logo {
  display: none;
}

.footer-cta-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copy-bar {
  width: min(72.25rem, 100%);
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0 1rem;
}

.footer-copy {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray);
  white-space: nowrap;
}

/* ── Contact footer (inner pages) ── */

.footer-inner {
  width: 100%;
  background: var(--green-section);
  display: flex;
  justify-content: center;
}

.footer-links {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 1.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8125rem;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

/* Desktop-only footer bar */
.footer-bar {
  width: 100%;
  background: var(--green-section);
  margin-top: calc(-1 * (var(--cta-h) * 1.2 + 7.5rem) * 0.2);
}

.footer-bar-inner, .footer-bar-index {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-bar-index {
  padding-top: calc((var(--cta-h) * 1.2 + 7.5rem) * 0.2 + 2.5rem);
}

.footer-bar-link {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bar-link:hover {
  color: var(--black);
}

/* Large screens: cap bottom space to 80px */
@media (min-width: 68.8125rem) {
  .footer-cta-card {
    min-height: auto;
  }

  .footer-cta-content {
    padding-bottom: 5rem;
  }
}

/* Mobile footer */
@media (max-width: 48rem) {
  footer {
    padding: 0;
  }

  .footer-cta-card {
    height: auto;
    flex-direction: column;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .footer-cta-image {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: clamp(12rem, 40vw, 20rem);
  }

  .footer-cta-content {
    flex: unset;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }

  .footer-cta-heading {
    font-size: 2.5rem;
  }

  .footer-copy-bar {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
  }

  .footer-bar {
    margin-top: 0;
  }

  .footer-bar-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-bar-link {
    font-size: 0.875rem;
  }
}


/* ════════════════════════════════════════════
   STICKY CONTACT BAR — shared
   ════════════════════════════════════════════ */

.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--green-section);
  border-top: 0.0625rem solid var(--grey-100);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  will-change: transform;
}

.sticky-contact-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.sticky-contact-bar-inner {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1.5rem;
}

.sticky-contact-cta {
  margin-top: 0 !important;
  flex-shrink: 0;
}

.sticky-contact-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sticky-contact-links span {
  font-size: 0.875rem;
}

.sticky-contact-cta.hero-cta-btn {
  font-size: 0.875rem;
}

@media (max-width: 48rem) {
  .sticky-bar-link span {
    display: none;
  }
}


/* ════════════════════════════════════════════
   IMAGE PLACEHOLDERS — shared
   ════════════════════════════════════════════ */

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ede9e4;
  border: 0.125rem dashed #c8bfb7;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  border-radius: 0.75rem;
}

.ph-icon {
  font-size: 1.1rem;
  opacity: 0.45;
}

.ph-label {
  font-size: 0.46rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  font-family: 'Quicksand', sans-serif;
}

.ph-hint {
  font-size: 0.42rem;
  color: #aaa;
  line-height: 1.3;
  font-family: 'Quicksand', sans-serif;
}


/* ════════════════════════════════════════════
   HOME PAGE  (index.html)
   ════════════════════════════════════════════ */

/* INDEX PAGE — top-left background decoration */
.index-bg-top-left {
  position: absolute;
  top: -30rem;
  left: -20rem;
  width: 100vw;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.index-bg-top-phone {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* INDEX PAGE — absolute background decoration, centered on full page */
.index-bg-center {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(30%);
  height: 150vh;
  width: 150vw;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* INDEX PAGE — bottom-left background decoration */
.index-bg-bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* HERO */
.hero {
  display: flex;
  align-items: stretch;
  min-height: clamp(32rem, 65vw, 64rem);
  flex: 1;
}

.hero-inner {
  display: flex;
  align-items: stretch;
  gap: 3rem;
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
}

.hero-content {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 2rem;
}

.hero-greeting {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 400;
  color: var(--green-600);
  margin: 0;
  line-height: 1;
}

.hero-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--green-700);
  margin: 0;
}

.hero-cta-links {
  gap: 1rem;
  display: flex;
  flex-direction: row;
}

.hero-cta-btn,
.hero-secondary-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--green-btn);
  color: var(--black);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 2.75rem;
  transition: background 0.2s;
}

.hero-cta-btn:hover {
  background: var(--green-btn-hover);
}

.hero-secondary-cta-btn {
  background: var(--white);
  border: 0.0625rem solid var(--grey-100);
}

.hero-secondary-cta-btn:hover {
  background: #00000010;
}

.hero-phones {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, clamp(6rem, 10vw, 12rem)));
  grid-template-rows: 1fr;
  /* row fills the JS-set height */
  justify-content: end;
  gap: clamp(0.75rem, 1.5vw, 1.9rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  /* clips phones at the CTA button bottom line */
  /* height is set by JS to match the bottom of .hero-cta-btn */
}

.hero-phone-wrap {
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  will-change: transform;
  /* image bottom anchored to wrap's inner bottom */
}

/* Stagger: each phone's bottom relative to the clip boundary (CTA button bottom) */
.hero-phone-wrap:nth-child(1) {
  padding-bottom: clamp(6rem, 12vw, 15rem);
}

.hero-phone-wrap:nth-child(2) {
  padding-bottom: 0;
}

.hero-phone-wrap:nth-child(3) {
  padding-bottom: clamp(2rem, 4vw, 5rem);
}

.hero-phone {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
  /* don't compress inside the flex wrap */
}

/* Animation added by JS on mouseenter, removed on mouseleave for smooth stop */
.hero-phone.is-panning {
  animation: phonePan 2s ease-in-out infinite alternate;
}

@keyframes phonePan {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(+50%);
  }
}

.hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.75rem, 3.8vw, 4rem);
  line-height: 1.15;
  color: var(--black);
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

/* DIVIDER */
.divider {
  border: none;
  /* border-top: 0.0625rem solid #e8e8e8; */
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 5rem auto;
}

.divider-case-studies {
  margin-bottom: 5rem;
  border: none;
}

/* SECTIONS */
.section {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
  padding: 0;
  scroll-margin-top: 5.625rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 3rem;
}

.section h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
}

/* CASE CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  display: flex;
  /* width: min(34.37rem, 100%); */
  /* height: min(35.5rem, 100%); */
  flex-direction: column;
  position: relative;
  border: 0.0625rem solid var(--green-100);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  transform: translateY(-0.25rem);
}

.case-img {
  width: 100%;
  min-width: unset;
  height: 22rem;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  padding: 1rem 1rem 0rem 1rem;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

.case-content h3 {
  padding: 1.5rem 1rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.35;
  margin-left: 0.5rem;
}

.case-content p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--grey-900);
  font-size: 1.125rem;
  line-height: 1.5rem;
  margin-bottom: 1.25rem;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-btn);
  color: var(--black);
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 1.25rem;
  white-space: nowrap;
}

.btn-read:hover {
  background: var(--green-btn-hover);
}

.btn-read svg {
  width: 0.75rem;
  height: 0.75rem;
}

.case-content .btn-read {
  margin-top: auto;
  align-self: flex-end;
}

/* TESTIMONIAL */
.testimonial {
  padding: 3.5rem 0 8.125rem 0;
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.testimonial-inner {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3.125rem;
}

.quote-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3.125rem;
  margin: 1rem 0rem;
}

.quote-mark {
  height: 2.5rem;
  width: auto;
  flex-shrink: 0;
  margin-top: 0.1em;
  display: block;
}

.testimonial-body {
  display: flex;
  flex-direction: column;
  width: min(70rem, calc(100% - 2 * var(--side)));
}

.testimonial p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--grey-800);
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

.testimonial p:last-of-type {
  margin-bottom: 1.25rem;
}

.attribution {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--gray);
  font-style: italic;
}


/* ════════════════════════════════════════════
   CASE STUDY PAGES  (autoselectr, jet, vota, vrm, mr_children, etc.)
   ════════════════════════════════════════════ */

/* HERO BANNER */
.case-hero {
  position: relative;
  background: #2a2a2a;
  min-height: 50rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.45;
}

.case-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-ph-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  text-align: center;
  padding: 1.25rem;
  border: 0.125rem dashed rgba(255, 255, 255, 0.15);
  margin: 1rem;
  border-radius: 0.5rem;
  pointer-events: none;
}

.hero-ph-inner .ph-icon {
  font-size: 2rem;
  opacity: 0.3;
}

.hero-ph-inner .ph-label {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

.case-hero-content {
  position: absolute;
  top: 7.5rem;
  z-index: 1;
  width: min(var(--content), calc(100% - 2 * var(--side)));
  text-align: left;
}

.case-hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  max-width: 76%;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag {
  background: var(--pink-pin);
  border: none;
  color: var(--black);
  border-radius: 1.25rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
}

.tag strong {
  font-weight: 500;
}

/* CASE BODY */
.case-body {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 7.5rem auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7.5rem;
}

.width-two-thirds {
  width: min(calc(var(--content) * 2 / 3), calc(100% - 2 * var(--side)));
}

/* On inner pages the .footer-bar sits directly after <main>.
   The global negative margin-top on .footer-bar is only meant for
   index.html (where the CTA card overhangs). Reset it here. */
main + .footer-bar {
  margin-top: 0;
}

/* When the last section ends with a full-bleed green image band,
   remove the bottom margin so the band flows straight into the footer. */
.case-body:has(> .case-section:last-child > .section-image:last-child > .img-band--spaced:last-child),
.case-body:has(> .case-section:last-child > .section-image:last-child > .img-band:last-child) {
  margin-bottom: 0;
}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.right{
  display:flex;
  align-items: flex-end;
}

.horizontal-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5rem;
}

.horizontal-layout .text-size {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.horizontal-layout .section-image {
  flex: 1 1 0;
  min-width: 0;
}

.horizontal-layout > div {
  flex: 1 1 0;
  min-width: 0;
}

.horizontal-layout .section-image img {
  width: 100%;
  height: auto;
}

.horizontal-layout .section-image .img-band-inner {
  width: 100%;
  margin: 0;
}

.horizontal-layout .section-image .img-band,
.horizontal-layout .section-image .img-band--spaced {
  width: 100%;
  position: static;
  left: auto;
  margin-left: 0;
}

.case-inner-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-section p {
  font-size: 1.125rem;
  line-height: 1.7rem;
}

.quote-body {
  display: flex;
  flex-direction: column;
}

.quote-body p{
  font-size: 1.5rem;
  line-height: 2rem;
}

.case-section h3 {
  font-size: 1.125rem;
  line-height: 1.7rem;
  font-weight: 700;
}

.case-section:last-child .img-band:last-child {
  margin-bottom: 0;
}

.text-size {
  width: min(var(--content), calc(100% - 2 * var(--textside)));
}

.case-section:not(.horizontal-layout) > .text-size {
  width: min(calc(var(--content) * 2 / 3), 100%);
}

.section-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.3125rem;
  background: var(--pink-400);
  flex-shrink: 0;
}

.section-label--has-icon::before {
  display: none;
}

.section-label-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.3125rem;
  background: var(--pink-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: black;
}

.img-rounded{
  border-radius: 1rem;
}

.section-label-icon img {
  width: 1.5rem;
  height: 1.5rem;
}

.section-label .icon {
  display: none;
}

.section-label h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 700;
}

.section-label h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 3rem;
  line-height: 3.5rem;
  font-weight: 700;
}

.section-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.75rem;
  color: var(--black);
}

h3:first-child {
  margin-top: 0;
}

p {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 0.375rem;
}

/* CASE IMAGE BLOCKS */
.case-img-block {
  margin: 2rem 0;
  overflow: hidden;
}

.case-img-block--no-margin-bottom {
  margin-bottom: 0;
}

.case-img-block img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  border-color: var(--green-100) var(--green-100) var(--green-100);
  border-width: 0.0625rem 0.0625rem 0;
  border-style: solid;
  border-bottom: none;
}

.case-img-block img.no-bottom-border {
  border-bottom-right-radius: 0!important;
  border-bottom-left-radius: 0!important;
}

.case-img-block img.full-border {
  border-radius: 1rem;
  border-color: var(--green-100);
  border-width: 0.0625rem;
  border-style: solid;
}

/* When contain + full-border are combined, the img element must shrink to its
   natural size so the border wraps the visible image content, not the full cell */
.case-img-block img.full-border.contain {
  height: auto;
  flex: none;
}

.case-img-block img.no-border {
  border: none;
  border-radius: 0;
}

.case-img-block .img-placeholder {
  min-height: 16.25rem;
}

.img-caption {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.5;
}

.img-label,
.img-sublabel {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.img-sublabel {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* SIDE BY SIDE IMAGES */
.img-row {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}

.img-row.two {
  grid-template-columns: 1fr 2fr;
}

.img-row.two.equal-width {
  grid-template-columns: 1fr 1fr;
}

.img-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.img-row .case-img-block {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.img-row .case-img-block img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-row--spaced {
  gap: 3.5rem;
}

.img-row--no-margin {
  margin: 0;
}

/* ON TOP OF EACHOTER IMAGES */
.img-col {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2.5rem 0;
  align-items: stretch;
}

.img-col.two {
  grid-template-rows: 1fr 2fr;
}

.img-col.two.equal-height {
  grid-template-rows: 1fr 1fr;
}

.img-col.three {
  grid-template-rows: 1fr 1fr 1fr;
}

.img-col .case-img-block {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.img-col .case-img-block:nth-child(2) {
  margin: 5rem 0 2.5rem 0;
}

.img-col .case-img-block img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-col .case-img-block img.contain {
  object-fit: contain;
}

.img-col--spaced {
  margin: 0 0 2.5rem 0;
  gap: 3.5rem;
}

/* STAGGERED OFFSET IMAGES */
.img-stagger-left {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.img-stagger-right {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

/* HIGHLIGHT BOX */
.highlight-box {
  background: var(--green-section);
  border-left: 0.25rem solid var(--green-btn);
  border-radius: 0 0.625rem 0.625rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.highlight-box p {
  color: var(--text-body);
  margin: 0;
}

/* TWO-COL GRID */
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.two-col .col {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 13.75rem;
  background: var(--green-section);
  border-radius: 0.75rem;
  padding: 1.25rem 1.375rem;
}

.two-col .col h4 {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  color: var(--black);
}

.two-col .col p,
.two-col .col li {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.7;
}

/* FULL-WIDTH IMAGE BAND */
.img-band {
  background: var(--green-section);
  width: 100vw;
  position: relative;
  left: 50%;
  /* margin: clamp(5rem, 6vw, 4.5rem) 0; */
  margin-left: -50vw;
  padding: 2.5rem 0 0 0;
  box-sizing: border-box;
}

.img-band--spaced {
  background: var(--green-section);
  width: 100vw;
  position: relative;
  left: 50%;
  /* margin: clamp(5rem, 6vw, 4.5rem) 0; */
  margin-left: -50vw;
  padding: 2.5rem 0;
  box-sizing: border-box;

}

.img-band--no-padding-bottom {
  padding-bottom: 0!important;
}

.img-band.no-background,
.img-band--spaced.no-background {
  background: transparent;
}

/* Full-bleed image band — no side constraints, no padding */
.img-band--full {
  padding: 0;
}

.img-band--full .case-img-block {
  margin: 0;
}

.img-band--full img {
  width: 100%;
  max-height: 100vh;
  display: block;
  object-fit: cover;
}

.img-band-inner {
  width: min(var(--content), calc(100% - 2 * var(--side)));
  margin: 0 auto;
}

.img-band .case-img-block {
  margin: 0;
}

.img-band .img-caption {
  margin-top: 0.75rem;
}

.img-band .img-row {
  margin: 0;
}

/* ── Scrollable image utility ──────────────────────────────
   Add .img-scroll-wrap to any div that directly wraps an <img>
   when the image is too small on mobile and you want it to render
   at its natural size with horizontal scrolling to see the rest.
   ─────────────────────────────────────────────────────────── */
.img-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* iOS momentum scrolling */
  scrollbar-width: thin;
  /* Firefox: thin scrollbar */
  cursor: grab;
}

.img-scroll-wrap:active {
  cursor: grabbing;
}

.img-scroll-wrap img {
  max-width: none !important;
  /* override the ubiquitous width:100% rules */
  width: auto !important;
  height: auto;
  display: block;
}

/* Individual image block with padded green background */
.case-img-block--bg {
  background: var(--green-section);
  padding: 2.5rem;
  border-radius: 0.75rem;
}

.case-img-block--align-br {
  padding-right: 0;
  padding-bottom: 0;
}

/* Align image to bottom-right inside its block */
.case-img-block--align-br img {
  object-fit: contain;
  object-position: bottom right;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* ── Large screens (1440px–2560px): already fluid via clamp() ── */
/* ── Medium-large: nav starts compressing (1200px) ── */
@media (max-width: 75rem) {
  .nav-inner {
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .case-img {
    height: 20rem;
  }

  .case-img img {
    object-fit: initial;
  }

  .case-content h3 {
    padding: 0.75rem 1rem;
    margin-bottom: 0rem;
    font-size: 1.1rem
  }

  .width-two-thirds {
    width: 100%;
  }

  .testimonial p {
    font-size: 1.25rem;
  }

  .quote-body p {
    font-size: 1.25rem;
  }

  .case-content p {
    display: block;
    padding: 0rem 0.75rem 1rem 0.75rem;
    margin-left: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
  }

  .desktop-br {
    display: none;
  }

  .case-card-arrow {
    display: none;
  }

}

/* ── Medium: tablets landscape (1100px) ── */
@media (max-width: 68.75rem) {

  /* Show hamburger, collapse nav links into overlay */
  nav {
    padding: 0;
  }

  .nav-inner {
    width: 100%;
    padding: 0 1.5rem;
    gap: 0;
  }

  .site-nav .nav-logo,
  .site-nav .nav-page-title {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-nav .nav-logo {
    font-size: 1rem;
    text-align: center;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-nav {
    min-height: 5rem;
    justify-content: center;
  }

  .site-nav .nav-menu-toggle {
    display: inline-block;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* When hamburger is open, remove backdrop-filter */
  .site-nav.nav-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--nav-bg);
  }

  .site-nav .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    background: var(--white);
    padding: 6rem 2rem 2.5rem;
    z-index: 120;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
  }

  .site-nav.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s 0s;
  }

  .site-nav .nav-links .nav-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.125rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-nav .nav-links a.nav-home-link {
    display: inline-flex;
  }

  .site-nav .nav-links a {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    text-decoration: none;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* Reset desktop scroll-reveal collapse so CTAs show in mobile menu */
  .site-nav .nav-links a.nav-cta,
  .site-nav .nav-links a.nav-secondary-cta {
    opacity: 0;
    transform: translateY(-0.75rem);
    pointer-events: none;
    display: inline-flex;
    width: auto;
    max-width: none;
    overflow: visible;
    margin-left: 0;
    padding: 0.75rem 1.75rem;
    background: var(--green-btn);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 0.5rem;
    /* Override the global max-width/padding/margin-left transitions */
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav .nav-links a.nav-secondary-cta {
    background: var(--white);
    border: 0.0625rem solid var(--grey-100);
  }

  .site-nav.nav-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav.nav-open .nav-links a.nav-cta,
  .site-nav.nav-open .nav-links a.nav-secondary-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav.nav-open .nav-links a:nth-child(1) { transition-delay: 0.08s; }
  .site-nav.nav-open .nav-links a:nth-child(2) { transition-delay: 0.14s; }
  .site-nav.nav-open .nav-links a:nth-child(3) { transition-delay: 0.20s; }
  .site-nav.nav-open .nav-links a:nth-child(4) { transition-delay: 0.26s; }
  .site-nav.nav-open .nav-links a:nth-child(5) { transition-delay: 0.32s; }
  .site-nav.nav-open .nav-links a:nth-child(6) { transition-delay: 0.38s; }
  .site-nav.nav-open .nav-links a:nth-child(7) { transition-delay: 0.44s; }
  .site-nav.nav-open .nav-links a:nth-child(8) { transition-delay: 0.50s; }

  .site-nav.nav-open .nav-menu-toggle {
    visibility: hidden;
  }

  .case-img {
    height: 13.5rem;
  }

  /* At 1100px the SVG (2066×1373) renders ~731px tall; -15rem top keeps ~30rem visible */
  .index-bg-top-left {
    top: -15rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-content {
    flex: 0 0 45%;
  }

  /* Collapse horizontal-layout to column on mobile */
  .horizontal-layout {
    flex-direction: column;
  }

  .horizontal-layout .text-size {
    width: 100%;
  }

  .horizontal-layout .section-image {
    width: 100%;
  }

  .horizontal-layout > div {
    width: 100%;
  }

  .horizontal-layout.image-after-text .section-image {
    order: 2;
  }

  .horizontal-layout.image-after-text .text-size {
    order: 1;
  }

  .footer-cta-card {
    height: auto;
    min-height: clamp(12rem, 18vw, 20rem);
  }
}

/* ── Tablet landscape (1024px) ── */
@media (max-width: 64rem) {

  /* Case study hero — scale down the large heading */
  .case-hero {
    min-height: 44rem;
  }

  .case-hero h1 {
    font-size: 4rem;
    max-width: 85%;
  }

  /* Case body — tighten vertical spacing */
  .case-body {
    margin: 6rem auto;
    gap: 6rem;
  }

  .case-section {
    gap: 4rem;
  }

}

/* ── Tablet portrait / large mobile (900px) ── */
@media (max-width: 56.25rem) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* At 900px the SVG renders only ~598px tall; bring it down so it covers the hero */
  .index-bg-top-left {
    top: -5rem;
  }

  .case-hero-content {
    top: 3.5rem;
  }

  /* Case study hero */
  .case-hero {
    min-height: 38rem;
  }

  .case-hero h1 {
    font-size: 3.25rem;
    max-width: 90%;
    margin-bottom: 1.5rem;
  }

  /* Case study body */
  .case-body {
    margin: 4rem auto;
    gap: 5rem;
  }

  .case-section {
    gap: 3rem;
  }

  /* Tags — smaller gap on narrow tablets */
  .tags {
    gap: 0.625rem;
  }

  .tag {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .hero-content {
    flex: 0 0 50%;
  }

  .testimonial-body {
    width: 100%;
  }

  .quote-body {
  width: 100%;
}

  .section-header {
    margin-bottom: 3rem;
  }

  .footer-bar-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ── Mobile breakpoint (768px) ── */
@media (max-width: 48rem) {
  :root {
    --side: 5%;
  }

  .text-size {
    width: 100%;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .index-bg-top-left {
    display: none;
  }

  .index-bg-top-phone {
    display: block;
  }

  nav {
    padding: 0;
  }

  h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
    margin-top: 0rem;
    color: var(--black);
  }

  .case-content h3 {
    padding: 0.75rem 0.75rem;
    margin-bottom: 0rem;
  }

  .case-content p {
    padding: 0rem 0.75rem 1rem 0.75rem;
  }

  /* Home nav stays fixed so it's always visible while scrolling */
  body.is-home .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  /* When hamburger is open, remove backdrop-filter — it creates a new containing
     block for position:fixed children, which clips the overlay to the nav height */
  .site-nav.nav-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--nav-bg);
  }

  /* Safety cap: never let the nav bar exceed the viewport */
  nav {
    max-width: 100vw;
    overflow: hidden;
  }

  .nav-inner {
    width: 100%;
    padding: 0 1.5rem;
    gap: 0;
  }

  /* Allow the logo / page-title to shrink inside the flex row */
  .site-nav .nav-logo,
  .site-nav .nav-page-title {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-nav {
    min-height: 4rem;
    justify-content: center;
    position: sticky;
  }

  .site-nav .nav-logo {
    font-size: 1rem;
    text-align: center;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-logo-img {
    height: 1.5rem;
  }

  .nav-logo-name {
    font-size: 1rem;
  }

  .site-nav .nav-menu-toggle {
    display: inline-block;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Nav overlay open/close and stagger rules are set in the ≤68.75rem block above.
     Only the 9th link stagger is new here (home link visible in mobile menu). */
  .site-nav.nav-open .nav-links a:nth-child(9) {
    transition-delay: 0.56s;
  }

  /* ── HERO — mobile: stacked layout matching the reference image ── */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: unset;
    position: relative;
    overflow: hidden;
    /* Push content below the fixed nav so phones are never visible through it */
    padding: var(--nav-h, 4rem) 0 0;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
    justify-self: unset;
    align-items: flex-start;
    min-height: 90vw;
  }

  /* Phones: top-right corner, partially hidden behind nav.
     Container sits at top:0 (= nav-bottom). Its overflow:hidden clips everything
     above that line, so each wrap pushed up with a negative top value gets
     neatly cut off at the nav-bottom edge. */
  .hero-phones {
    display: none;
  }

  .hero-phone-wrap {
    position: absolute;
    width: 13vw;
    overflow: visible;
    /* container handles the clip */
    display: block;
  }

  /* Phone 1 (left,  444×1782 ≈ 4:1): half  behind nav  → top = -(52vw × 0.50) = -26vw */
  /* Phone 2 (mid,   444×2697 ≈ 6:1): 1/3  behind nav  → top = -(79vw × 0.33) = -26vw */
  /* Phone 3 (right, 444×2697 ≈ 6:1): 2/3  behind nav  → top = -(79vw × 0.67) = -53vw */
  .hero-phone-wrap:nth-child(1) {
    left: 0;
    top: -8vw;
  }

  .hero-phone-wrap:nth-child(2) {
    left: calc(13vw + 16px);
    top: -23vw;
  }

  .hero-phone-wrap:nth-child(3) {
    right: 1.5rem;
    top: -28vw;
  }

  .hero-phone {
    width: 100%;
    height: auto;
  }

  /* Text content: centred on mobile */
  .hero-content {
    flex: unset;
    width: 100%;
    padding: 2rem 1.5rem 3rem;
    margin-top: 14vw;
    /* clears the 30vw phone container + a 2vw gap */
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }

  .hero-greeting {
    font-size: 2.5rem;
    line-height: 1;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
    white-space: normal;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding-top: 0rem;
    line-height: 1.5;
  }

  .hero-cta-btn,
  .hero-secondary-cta-btn {
    margin-top: 1.75rem;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
  }

  .testimonial-inner {
    width: min(var(--content), calc(100% - 2 * var(--side)));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
  }

    .quote-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
  }

  .case-content h3 {
    font-size: 1.1rem;
  }

  .case-content p {
    font-size: 1rem;
  }

  /* Rest of page */
  .section {
    padding: 2.75rem 0;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .testimonial {
    padding: 2.75rem 0;
  }

  .divider {
    margin: 2.5rem auto;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .case-img {
    height: 18rem;
  }

  .section-label {
    gap: 0.625rem;
    margin-bottom: 1.5rem;
  }

  .section-label::before {
    display: none;
  }

  /* case studies */
  .case-hero {
    padding: 12rem 0 2.25rem;
    min-height: 0;
    overflow: visible;
  }

  .case-hero h1 {
    font-size: 2.75rem;
    max-width: 90%;
    margin-bottom: 1.25rem;
  }

  .case-hero-content {
    position: relative;
    top: auto;
  }

  .case-body {
    margin: 2.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
  }

  .section-label h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .img-band {
    padding: 1.5rem 0 0 0;
  }

  .img-band--spaced {
    padding: 2.75rem 0;
  }

  .section-label-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.3125rem;
    background: var(--pink-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: black;
  }

  .case-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .case-section p {
    font-size: 1rem;
    margin-top: 0;
    line-height: 1.5rem;
  }

  .case-section h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
  }

  .section-label-icon img {
    width: 1rem;
    height: 1rem;
  }

  /* Collapse staggered image grids on mobile */
  .img-stagger-left,
  .img-stagger-right {
    display: block;
  }

  .img-stagger-spacer {
    display: none;
  }

  /* Stack all side-by-side image rows on mobile */
  .img-row.two,
  .img-row.two.equal-width,
  .img-row.three {
    grid-template-columns: 1fr;
  }

  /* Natural aspect ratio when stacked (no fixed cross-axis height) */
  .img-row .case-img-block {
    height: auto;
  }

  .img-row .case-img-block img {
    height: auto;
    object-fit: initial;
    flex: none;
  }

  /* img-col: behave like img-row on mobile (uniform gap, no stagger margin) */
  .img-col,
  .img-col.two,
  .img-col.two.equal-height,
  .img-col.three {
    grid-template-rows: auto;
    gap: 1.25rem;
    margin: 0 0 2.5rem 0;
  }

  .img-col .case-img-block:nth-child(2) {
    margin: 0;
  }

  .img-col .case-img-block img {
    height: auto;
    object-fit: initial;
    flex: none;
  }

  .img-caption {
    font-size: 0.9375rem;
  }

  .img-label {
    font-size: 1.75rem;
  }

  .img-sublabel {
    font-size: 0.8rem;
  }

  /* footer */
  footer {
    margin: 3rem 0 0;
    padding: 0;
  }

  .footer-cta-card {
    height: auto;
    flex-direction: column;
  }

  .footer-cta-image {
    display: none;
  }

  .footer-cta-content {
    flex: unset;
    padding: 2rem 1.5rem 2rem 1.5rem;
    gap: 2.5rem;
  }

  .footer-cta-heading {
    font-size: 2rem;
  }

  .footer-copy-bar {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
  }

  .footer-cta-logo {
    display: block;
    height: 3rem;
  }

  .footer-cta-links {
    justify-content: space-between;
  }

  .footer-cta-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
  }

  .footer-cta-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

}

/* ── Small mobile (480px) ── */
@media (max-width: 30rem) {
  nav {
    padding: 0;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .site-nav .nav-menu-toggle {
    right: 1rem;
  }

  .site-nav .nav-links {
    padding: 6rem 1.25rem 2rem;
    gap: 1.5rem;
  }

  .site-nav .nav-links a {
    font-size: 1rem;
  }

  .site-nav .nav-links .nav-menu-close {
    right: 1rem;
  }

  /* home hero – phones are hidden at mobile widths */

  .hero-content {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero-greeting {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* sections */
  .section {
    padding: 0;
  }

  .section h2 {
    font-size: 1.35rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .case-content h3 {
    font-size: 1.1rem;
  }

  .case-content p {
    font-size: 1rem;
  }

  .testimonial {
    padding: 2rem 0;
    margin: 2.5rem 0 0;
  }

  .quote-mark {
    height: 1.67rem;
  }

  .testimonial p {
    font-size: 1rem;
  }

  .quote-body p {
    font-size: 1rem;
  }

  /* case studies */
  .case-hero {
    padding: 1.75rem 0 1.5rem;
    min-height: 22rem;
  }

  .case-hero h1 {
    font-size: 2rem;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }

  .section-label h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .case-section:first-child {
    margin-top: 0;
  }

  .divider-case-studies {
    margin-bottom: 2.5rem;
  }

  .two-col .col {
    flex: 1 1 100%;
  }

  .img-row.two {
    grid-template-columns: 1fr;
  }

  .img-row.three {
    grid-template-columns: 1fr;
  }

  .img-band {
    padding: 1.5rem 0 0 0;
  }

  .img-band--spaced {
    padding: 2.75rem 0;
  }

  .case-img {
    /* padding: 0.75rem 0.75rem; */
    height: 15rem;
  }
}