/* Projects: featured card on the left, two stacked on the right */
@media (min-width: 901px) {
  html body #work .projects-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
  }
  html body #work .project-card:nth-child(n+4) { display: none; }

  /* big featured card */
  html body #work .project-card:nth-child(1) {
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
  }
  html body #work .project-card:nth-child(1) .project-thumb {
    flex: 1 1 auto;
    height: auto;
    min-height: 380px;
  }
  html body #work .project-card:nth-child(1) .project-body { padding: 28px 30px 26px; }
  html body #work .project-card:nth-child(1) .project-title { font-size: 28px; }
  html body #work .project-card:nth-child(1) .project-desc {
    font-size: 16.5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* two stacked cards: image left, text right */
  html body #work .project-card:nth-child(2),
  html body #work .project-card:nth-child(3) {
    display: grid;
    grid-template-columns: 42% 1fr;
  }
  html body #work .project-card:nth-child(2) .project-thumb,
  html body #work .project-card:nth-child(3) .project-thumb {
    height: 100%;
    min-height: 230px;
  }
  html body #work .project-card:nth-child(2) .project-body,
  html body #work .project-card:nth-child(3) .project-body {
    display: flex; flex-direction: column;
    padding: 22px 24px 20px;
  }
  html body #work .project-card:nth-child(2) .project-title,
  html body #work .project-card:nth-child(3) .project-title { font-size: 20px; }
  html body #work .project-card:nth-child(2) .project-desc,
  html body #work .project-card:nth-child(3) .project-desc {
    font-size: 15px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  html body #work .project-card:nth-child(2) .project-foot,
  html body #work .project-card:nth-child(3) .project-foot { margin-top: auto; }
}

/* shared polish */
html body #work .project-card { overflow: hidden; background: #fff; }
html body #work .project-thumb { position: relative; overflow: hidden; }
html body #work .project-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s ease;
}
html body #work .project-card:hover .project-thumb img { transform: scale(1.04); }

/* phones and tablets: one per row */
@media (max-width: 900px) {
  html body #work .projects-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  html body #work .project-thumb { height: 210px; }
}

/* remove the white band between the CTA block and the footer */
html body .cta-block { margin-bottom: 0 !important; }
html body footer,
html body .footer,
html body .site-footer { margin-top: 0 !important; }
html body .cta-block + * { margin-top: 0 !important; }

/* Platforms row */
html body .platforms { padding: 76px 0 84px; text-align: center; }
html body .platforms .pf-head { padding: 0 20px; }
html body .platforms .pf-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #e8f6f0; border: 1px solid #cfeade; color: #0f7a58;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html body .platforms .pf-head h2 {
  margin: 18px 0 0; font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.15; letter-spacing: -.02em; color: #0B3D2E;
}
html body .platforms .pf-head h2 em { font-style: italic; font-weight: 400; color: #1A9E72; }
html body .platforms .pf-row {
  list-style: none; margin: 46px auto 0; padding: 0 24px; max-width: 1100px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 22px 68px;
}
html body .platforms .pf-row li {
  font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em;
  color: #1f4a3d; transition: color .25s ease, transform .25s ease;
}
html body .platforms .pf-row li:hover { color: #1A9E72; transform: translateY(-2px); }
@media (max-width: 700px) {
  html body .platforms { padding: 56px 0 60px; }
  html body .platforms .pf-row { gap: 16px 36px; margin-top: 32px; }
}

/* Clients strip background */
html body .logos-strip {
  background-color: #f2f8f5 !important;
  background-image:
    radial-gradient(900px 300px at 50% 0, rgba(26,158,114,.13), transparent 70%),
    linear-gradient(rgba(11,61,46,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,61,46,.07) 1px, transparent 1px) !important;
  background-size: auto, 44px 44px, 44px 44px !important;
  background-repeat: no-repeat, repeat, repeat !important;
  border-top: 1px solid rgba(11,61,46,.08);
  border-bottom: 1px solid rgba(11,61,46,.08);
}
html body .logos-strip .logos-inner,
html body .logos-strip .logos-list { background: transparent !important; }
@media (max-width: 700px) {
  html body .logos-strip { background-size: auto, 32px 32px, 32px 32px !important; }
}

/* Testimonials marquee */
html body .testi-section { overflow: hidden; }
html body .testi-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 12px 0 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
html body .testi-track {
  display: flex;
  width: max-content;
  animation: testiLeft 95s linear infinite;
}
html body .testi-marquee:hover .testi-track { animation-play-state: paused; }
html body .testi-group { display: flex; flex-shrink: 0; gap: 24px; padding-right: 24px; }
html body .testi-marquee .testi-card {
  width: 380px; flex: 0 0 380px; margin: 0;
  display: flex; flex-direction: column;
  opacity: 1 !important; transform: none !important;
}
html body .testi-marquee .testi-byline { margin-top: auto; }
@keyframes testiLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  html body .testi-marquee .testi-card { width: 292px; flex-basis: 292px; }
  html body .testi-track { animation-duration: 80s; }
}
@media (prefers-reduced-motion: reduce) {
  html body .testi-track { animation: none; }
  html body .testi-marquee { overflow-x: auto; }
}

/* Testimonials Google button */
html body .testi-cta { text-align: center; margin-top: 12px; padding: 0 20px; }
html body .testi-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  background: #fff; color: #0B3D2E; font-size: 15.5px; font-weight: 600;
  border: 1px solid rgba(26,158,114,.5);
  box-shadow: 0 1px 2px rgba(11,61,46,.06), 0 10px 24px -14px rgba(11,61,46,.4);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
html body .testi-cta-btn:hover {
  background: #0B3D2E; color: #fff; transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(11,61,46,.55);
}
html body .testi-cta-btn svg { transition: transform .25s ease; }
html body .testi-cta-btn:hover svg { transform: translateX(4px); }

/* Testimonials dark theme */
html body .testi-section {
  background-color: #06150f;
  background-image:
    radial-gradient(900px 420px at 50% 0, rgba(26,158,114,.22), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-repeat: no-repeat, repeat, repeat;
  border-top: 0;
  padding: 104px 0 96px;
}
html body .testi-section .container > .r { margin-bottom: 34px !important; }
html body .testi-section .eyebrow {
  display: inline-block !important;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(26,158,114,.55);
  background: rgba(26,158,114,.12);
  color: #6fdcb4 !important;
  letter-spacing: .12em;
}
html body .testi-section .h-display { color: #fff !important; }
html body .testi-section .h-display span { color: #3fd0a0 !important; }

html body .testi-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 11px 22px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(63,208,160,.7);
  box-shadow: 0 0 0 4px rgba(26,158,114,.12);
  color: #fff; font-size: 15px;
}
html body .testi-badge .tb-score { font-size: 18px; font-weight: 700; }
html body .testi-badge .tb-stars { color: #f5b73b; letter-spacing: 2px; }
html body .testi-badge .tb-count { color: rgba(255,255,255,.62); font-size: 13.5px; }

/* cards */
html body .testi-marquee .testi-card {
  width: 372px; flex: 0 0 372px;
  padding: 26px 26px 28px;
  border-radius: 18px;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow: none !important;
  display: flex; flex-direction: column;
}
html body .testi-marquee .testi-byline {
  order: 1; margin: 0 0 16px !important; padding: 0 !important; border: 0 !important;
  display: flex; align-items: center; gap: 14px;
}
html body .testi-marquee .testi-byline::after {
  content: "\201C"; margin-left: auto;
  font-family: Georgia, serif; font-size: 54px; line-height: .7; color: #3fd0a0; opacity: .9;
}
html body .testi-marquee .testi-stars { order: 2; margin: 0 0 14px !important; }
html body .testi-marquee .testi-stars span { color: #f5b73b !important; font-size: 17px; }
html body .testi-marquee .testi-quote {
  order: 3; margin: 0 !important;
  color: rgba(255,255,255,.8) !important; font-size: 15.5px; line-height: 1.7;
}
html body .testi-marquee .testi-name { color: #fff !important; font-size: 15.5px; font-weight: 600; }
html body .testi-marquee .testi-role { color: rgba(255,255,255,.52) !important; font-size: 12.5px; }
html body .testi-marquee .testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  font-size: 16px; font-weight: 700; color: #fff !important; background: #1A9E72;
}
html body .testi-marquee .testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
html body .testi-group .testi-card:nth-child(6n+1) .testi-avatar { background: #d1637a; }
html body .testi-group .testi-card:nth-child(6n+2) .testi-avatar { background: #e0a030; }
html body .testi-group .testi-card:nth-child(6n+3) .testi-avatar { background: #3f78d8; }
html body .testi-group .testi-card:nth-child(6n+4) .testi-avatar { background: #8b5cf6; }
html body .testi-group .testi-card:nth-child(6n+5) .testi-avatar { background: #1A9E72; }
html body .testi-group .testi-card:nth-child(6n)   .testi-avatar { background: #e07a3c; }

/* button */
html body .testi-cta-btn {
  background: #1A9E72; color: #fff; border-color: #1A9E72;
  box-shadow: 0 14px 30px -12px rgba(26,158,114,.7);
}
html body .testi-cta-btn:hover { background: #20b585; color: #fff; }
html body .testi-cta { margin-top: 18px; }

@media (max-width: 700px) {
  html body .testi-section { padding: 70px 0 64px; background-size: auto, 32px 32px, 32px 32px; }
  html body .testi-marquee .testi-card { width: 296px; flex-basis: 296px; padding: 22px; }
  html body .testi-badge { padding: 10px 16px; flex-wrap: wrap; justify-content: center; }
}

/* Clients strip: square corners */
html body a.logo-name,
html body a.logo-name img.lc-thumb,
html body a.logo-name::before,
html body a.logo-name::after { border-radius: 0 !important; }

/* ===== Homepage: no rounded corners in the sections ===== */
html body section *,
html body section *::before,
html body section *::after,
html body .logos-strip *,
html body .stats-bar * {
  border-radius: 0 !important;
}

/* ===== Stats band: grid texture, square icons, divided cells ===== */
html body .stats-strip {
  background-color: #07261d !important;
  background-image:
    radial-gradient(900px 300px at 50% 0, rgba(26,158,114,.26), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) !important;
  background-size: auto, 44px 44px, 44px 44px !important;
  background-repeat: no-repeat, repeat, repeat !important;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
html body .stats-strip *,
html body .stats-strip *::before { border-radius: 0 !important; }
html body .stats-grid {
  border-left: 1px solid rgba(255,255,255,.14) !important;
  border-right: 1px solid rgba(255,255,255,.14);
}
html body .stats-grid .stat-cell {
  position: relative;
  padding: 50px 40px 46px !important;
  border-right: 1px solid rgba(255,255,255,.14) !important;
}
html body .stats-grid .stat-cell:last-child { border-right: 0 !important; }
html body .stats-grid .stat-cell::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: #3DBE93;
}
html body .stats-grid .stat-ico {
  width: 46px; height: 46px; margin-bottom: 22px;
  background: rgba(26,158,114,.18) !important;
  border: 1px solid rgba(95,212,168,.38) !important;
}
html body .stats-grid .stat-val { font-size: clamp(40px, 4.6vw, 60px) !important; line-height: 1.05; }
html body .stats-grid .stat-label { font-size: 16px; margin-top: 8px; }
@media (max-width: 900px) {
  html body .stats-grid { border-right: 0; }
  html body .stats-grid .stat-cell { padding: 30px 22px 28px !important; border-bottom: 1px solid rgba(255,255,255,.14); }
  html body .stats-grid .stat-cell:nth-child(2n) { border-right: 0 !important; }
  html body .stats-grid .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ===== Platforms: bordered grid of equal cells ===== */
html body .platforms { padding: 72px 24px 80px !important; }
html body .platforms .pf-row {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 1px !important;
  max-width: 1160px !important;
  margin: 44px auto 0 !important;
  padding: 1px !important;
  list-style: none;
  background: #d5e2dc !important;
  border: 1px solid #d5e2dc;
}
html body .platforms .pf-row li {
  background: #fff !important;
  padding: 38px 12px !important;
  margin: 0 !important;
  font-size: clamp(20px, 2.2vw, 28px) !important;
  font-weight: 600 !important;
  letter-spacing: -.02em;
  color: #0B3D2E !important;
  text-align: center;
  border-radius: 0 !important;
  transform: none !important;
  transition: background .2s, color .2s;
}
html body .platforms .pf-row li:hover { background: #f2f8f5 !important; color: #1A9E72 !important; transform: none !important; }
@media (max-width: 900px) {
  html body .platforms .pf-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body .platforms .pf-row li { padding: 28px 8px !important; }
}
@media (max-width: 520px) {
  html body .platforms .pf-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ===== Platforms: scrolling row of cards ===== */
html body .platforms { overflow: hidden; }
html body .pf-marquee {
  margin: 44px -24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
html body .pf-track { display: flex; width: max-content; animation: pf-scroll 38s linear infinite; }
html body .pf-marquee:hover .pf-track { animation-play-state: paused; }
html body .pf-group { display: flex; gap: 16px; padding: 0 16px 0 0; margin: 0; list-style: none; }
html body .pf-chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px 14px 16px;
  background: #fff; border: 1px solid #d5e2dc; border-radius: 0 !important;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: #0B3D2E; white-space: nowrap;
}
html body .pf-badge {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0 !important; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0;
}
@keyframes pf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html body .pf-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  html body .pf-group[aria-hidden="true"] { display: none; }
}

/* ===== Platforms: static, larger cards (no scrolling) ===== */
html body .pf-marquee {
  margin: 48px auto 0 !important;
  max-width: 1040px;
  -webkit-mask-image: none !important; mask-image: none !important;
  overflow: visible !important;
}
html body .pf-track { animation: none !important; width: auto !important; display: block !important; transform: none !important; }
html body .pf-group[aria-hidden="true"] { display: none !important; }
html body .pf-group {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px !important;
  padding: 0 !important;
}
html body .pf-chip {
  gap: 20px !important;
  padding: 26px 30px 26px 26px !important;
  font-size: 26px !important;
}
html body .pf-badge { width: 60px !important; height: 60px !important; font-size: 26px !important; }
@media (max-width: 900px) {
  html body .pf-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important; }
  html body .pf-chip { padding: 18px 20px 18px 18px !important; font-size: 21px !important; gap: 14px !important; }
  html body .pf-badge { width: 46px !important; height: 46px !important; font-size: 21px !important; }
}
@media (max-width: 520px) {
  html body .pf-group { grid-template-columns: 1fr; }
}

/* side cards: image on top, text below (flip-v2) */
@media (min-width: 901px) {
  html body #work .project-card:nth-child(2),
  html body #work .project-card:nth-child(3) { display: flex; flex-direction: column; }
  html body #work .project-card:nth-child(2) .project-thumb,
  html body #work .project-card:nth-child(3) .project-thumb { flex: 0 0 auto; height: 200px; min-height: 0; }
  html body #work .project-card:nth-child(2) .project-body,
  html body #work .project-card:nth-child(3) .project-body { flex: 1 1 auto; padding: 20px 24px 18px; }
  html body #work .project-card:nth-child(2) .project-desc,
  html body #work .project-card:nth-child(3) .project-desc { -webkit-line-clamp: 3; }
}

/* type chip: bottom-right of the photo (chip-br-v1) */
html body #work .project-thumb .project-type-chip { top: auto !important; left: auto !important; bottom: 12px !important; right: 12px !important; }

/* hero-light-v1 */
html body section.hero{background:
  radial-gradient(900px 480px at 78% 12%,rgba(26,158,114,.16),transparent 60%),
  linear-gradient(100deg,rgba(7,42,32,.94) 0%,rgba(7,42,32,.80) 30%,rgba(11,61,46,.34) 62%,rgba(7,42,32,.14) 100%),
  linear-gradient(180deg,rgba(7,42,32,0) 72%,rgba(7,42,32,.6) 100%),
  url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1800&q=80&auto=format&fit=crop') center/cover no-repeat}

/* nav-light-v1 */
html body .site-nav{backdrop-filter:none !important;-webkit-backdrop-filter:none !important}

/* pf-compact-v1: many platforms, compact centered wrap */
html body .pf-marquee { max-width: 1120px !important; margin-top: 40px !important; }
html body .pf-group { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 12px !important; grid-template-columns: none !important; }
html body .pf-chip { padding: 10px 18px 10px 10px !important; font-size: 17px !important; gap: 12px !important; }
html body .pf-badge { width: 34px !important; height: 34px !important; font-size: 14px !important; flex: 0 0 auto; }
@media (max-width: 900px) {
  html body .pf-group { grid-template-columns: none !important; gap: 10px !important; }
  html body .pf-chip { padding: 8px 14px 8px 8px !important; font-size: 15px !important; gap: 10px !important; }
  html body .pf-badge { width: 30px !important; height: 30px !important; font-size: 13px !important; }
}
@media (max-width: 520px) {
  html body .pf-group { grid-template-columns: none !important; gap: 8px !important; }
  html body .pf-chip { padding: 7px 12px 7px 7px !important; font-size: 14px !important; gap: 8px !important; }
  html body .pf-badge { width: 28px !important; height: 28px !important; font-size: 12px !important; }
}
/* /pf-compact-v1 */
/* pf-globe-v1: rotating constellation globe */
html body .platforms.pfg-on .pf-marquee { position: relative; max-width: 1100px !important; margin-top: 8px !important; }
html body .platforms.pfg-on .pf-track { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; display: block !important; }
.pfg-stage { position: relative; width: 100%; overflow: visible; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  background: radial-gradient(closest-side, rgba(26,158,114,.12), rgba(26,158,114,.04) 55%, rgba(26,158,114,0) 100%) center / 78% 86% no-repeat; }
.pfg-stage.dragging { cursor: grabbing; }
.pfg-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.pfg-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pfg-node { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0; padding: 6px;
  background: #fff; border: 1px solid #d5e2dc; box-shadow: 0 8px 22px rgba(11,61,46,.10);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: #0B3D2E; white-space: nowrap;
  will-change: transform, opacity; pointer-events: none; }
.pfg-badge { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
/* name opens only on chips facing the viewer */
.pfg-node > span:last-child { display: block; overflow: hidden; max-width: 0; padding: 0; transition: max-width .45s cubic-bezier(.2,.8,.2,1), padding .45s cubic-bezier(.2,.8,.2,1); }
.pfg-node.lab > span:last-child { max-width: 170px; padding: 0 8px 0 10px; }
@media (max-width: 600px) {
  .pfg-node { padding: 4px; font-size: 12.5px; }
  .pfg-node.lab > span:last-child { padding: 0 6px 0 8px; }
  .pfg-badge { width: 24px; height: 24px; font-size: 10.5px; }
}
/* /pf-globe-v1 */
/* gwx-card-fit: keep bento layout, show covers uncropped, equal padding */
@media (min-width: 901px) {
  html body #work .project-card { display: flex; flex-direction: column; }
  html body #work .project-card:nth-child(2) .project-thumb,
  html body #work .project-card:nth-child(3) .project-thumb { flex: 0 0 auto; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  html body #work .project-card:nth-child(1) .project-thumb { flex: 1 1 auto; min-height: 0; }
  html body #work .project-card .project-thumb { background: #06110d; }
  html body #work .project-card .project-thumb img { object-fit: cover; object-position: center; }
  html body #work .project-card .project-body { flex: 0 0 auto; display: flex; flex-direction: column; padding: 24px 28px 22px; }
  html body #work .project-card .project-foot { margin-top: auto; }
}
/* gwx-stats-light: stats band uses the site green in light mode; dark mode keeps the dark forest */
html:not(.site-dark) body .stats-strip {
  background-color: #138A62 !important;
  background-image:
    radial-gradient(900px 300px at 50% 0, rgba(255,255,255,.20), transparent 70%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) !important;
}
/* gwx-testi-light: testimonials band uses the site green in light mode; dark mode keeps the dark forest */
html:not(.site-dark) body .testi-section {
  background-color: #138A62;
  background-image:
    radial-gradient(900px 420px at 50% 0, rgba(255,255,255,.20), transparent 70%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
}
/* gwx-green-solid: one solid site green for the light-mode bands, faint grid only */
html:not(.site-dark) body .stats-strip,
html:not(.site-dark) body .testi-section {
  background-color: #17946A !important;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) !important;
  background-size: 44px 44px, 44px 44px !important;
}
/* featured card: image fills its box without stretching the card */
@media (min-width: 901px) {
  html body #work .project-card:nth-child(1) .project-thumb { position: relative; height: auto; min-height: 380px; max-height: 430px; }
  html body #work .project-card:nth-child(1) .project-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
}

/* featured card: let the image fill all available height */
@media (min-width: 901px) {
  html body #work .project-card:nth-child(1) .project-thumb { max-height: none; flex: 1 1 auto; }
}

/* featured card: image keeps its own shape, extra height goes to the text area */
@media (min-width: 901px) {
  html body #work .project-card:nth-child(1) .project-thumb { flex: 0 0 auto; height: auto; min-height: 0; max-height: none; aspect-ratio: 5 / 3; }
  html body #work .project-card:nth-child(1) .project-body { flex: 1 1 auto; display: flex; flex-direction: column; }
  html body #work .project-card:nth-child(1) .project-foot { margin-top: auto; }
}

/* right-hand cards: image left, text right (forced) */
@media (min-width: 901px) {
  html body #work .projects-grid .project-card:nth-child(2),
  html body #work .projects-grid .project-card:nth-child(3) { display: grid !important; grid-template-columns: 40% 1fr !important; flex-direction: row !important; }
  html body #work .projects-grid .project-card:nth-child(2) .project-thumb,
  html body #work .projects-grid .project-card:nth-child(3) .project-thumb { height: 100% !important; min-height: 210px !important; max-height: none !important; aspect-ratio: auto !important; }
  html body #work .projects-grid .project-card:nth-child(2) .project-body,
  html body #work .projects-grid .project-card:nth-child(3) .project-body { display: flex !important; flex-direction: column !important; padding: 20px 22px 18px !important; }
}

/* right-hand cards: wider image column, full illustration, text that fits */
@media (min-width: 901px) {
  html body #work .projects-grid .project-card:nth-child(2),
  html body #work .projects-grid .project-card:nth-child(3) { grid-template-columns: 46% 1fr !important; }
  html body #work .projects-grid .project-card:nth-child(3) .project-thumb { background: #0b1411 !important; }
  html body #work .projects-grid .project-card:nth-child(3) .project-thumb img { object-fit: contain !important; }
  html body #work .projects-grid .project-card:nth-child(2) .project-desc,
  html body #work .projects-grid .project-card:nth-child(3) .project-desc { font-size: 14px !important; line-height: 1.5 !important; -webkit-line-clamp: 4 !important; }
  html body #work .projects-grid .project-card:nth-child(2) .project-body,
  html body #work .projects-grid .project-card:nth-child(3) .project-body { padding: 18px 20px 16px !important; }
}

/* right-hand cards: description can never run into the footer */
@media (min-width: 901px) {
  html body #work .projects-grid .project-card:nth-child(2) .project-desc,
  html body #work .projects-grid .project-card:nth-child(3) .project-desc { -webkit-line-clamp: 3 !important; line-clamp: 3 !important; flex: 0 1 auto !important; min-height: 0 !important; max-height: 4.6em !important; overflow: hidden !important; margin-bottom: 12px !important; }
  html body #work .projects-grid .project-card:nth-child(2) .project-foot,
  html body #work .projects-grid .project-card:nth-child(3) .project-foot { margin-top: auto !important; flex: 0 0 auto !important; }
}
