:root {
  --work-ink: #062f37;
  --work-teal: #087487;
  --work-green: #86bf49;
  --work-cream: #f7f5ef;
  --work-line: #dbe7e5;
}

body.our-work-page { margin: 0; background: var(--work-cream); color: var(--work-ink); }
.our-work-main { min-height: 70vh; padding-top: 78px; }
.our-work-hero {
  padding: 92px 24px 82px;
  background: #043d48 url("./assets/our-work/our-work-hero-background.png") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.our-work-hero__inner { width: min(900px, 100%); margin: 0 auto; }
.our-work-eyebrow { margin: 0 0 16px; color: #cfe998; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.our-work-hero h1 { margin: 0; color: #fff; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.055em; }
.our-work-hero__lead { max-width: 710px; margin: 25px auto 0; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.our-work-hero__cta { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; margin-top: 28px; padding: 0 28px; border-radius: 999px; background: var(--work-green); color: #073741; box-shadow: 0 12px 28px rgba(134,191,73,.24); font-weight: 800; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.our-work-hero__cta:hover { background: #a4d46c; box-shadow: 0 15px 32px rgba(134,191,73,.3); transform: translateY(-1px); }
.our-work-hero__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.our-work-hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.our-work-hero__trust span { padding: 9px 15px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .86rem; font-weight: 700; }

.our-work-feed-wrap { padding: 64px 20px 88px; }
.our-work-feed-heading { width: min(760px, 100%); margin: 0 auto 26px; }
.our-work-feed-heading h2 { margin: 0 0 7px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; }
.our-work-feed-heading p { margin: 0; color: #617572; line-height: 1.6; }
.our-work-feed { display: grid; width: min(760px, 100%); margin: 0 auto; gap: 28px; }

.work-post, .work-empty { overflow: hidden; border: 1px solid var(--work-line); border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(4,59,69,.09); }
.work-post { scroll-margin-top: 110px; }
.work-post__header { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; }
.work-post__header img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.work-post__header div { display: grid; gap: 3px; }
.work-post__header strong { font-size: 1rem; }
.work-post__header span { color: #6b7d7a; font-size: .82rem; }
.work-post__copy { padding: 4px 22px 20px; }
.work-post__copy h2 { margin: 0 0 8px; font-size: 1.38rem; letter-spacing: -.025em; }
.work-post__copy p { margin: 0; color: #506663; line-height: 1.65; white-space: pre-line; }
.work-post__media { display: grid; gap: 3px; background: #d9e4e2; }
.work-post__media--2, .work-post__media--3, .work-post__media--4 { grid-template-columns: repeat(2, 1fr); }
.work-post__media--3 figure:first-child { grid-row: span 2; }
.work-post__media-item--featured { grid-column: 1 / -1; }
.work-post__media figure { position: relative; min-height: 300px; margin: 0; overflow: hidden; background: #eaf0ef; }
.work-post__media img, .work-post__media video { display: block; width: 100%; height: 100%; min-height: 300px; max-height: 640px; object-fit: cover; }
.work-post__media figure.work-post__media-item--contain {
  min-height: 0;
  height: min(72vw, 760px);
  background: #f7faf6;
}
.work-post__media figure.work-post__media-item--contain img {
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.work-post__media figcaption { position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 7px 10px; border-radius: 9px; background: rgba(3,44,52,.76); color: #fff; font-size: .75rem; }
.work-post__comparisons { display: grid; gap: 28px; padding: 2px 22px 26px; }
.work-comparison { overflow: hidden; border: 1px solid var(--work-line); border-radius: 17px; background: #f8fbfa; }
.work-comparison h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--work-line); font-size: 1rem; letter-spacing: -.01em; }
.work-comparison__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: #d9e4e2; }
.work-comparison figure { position: relative; min-height: 270px; margin: 0; overflow: hidden; background: #eaf0ef; }
.work-comparison img { display: block; width: 100%; height: 100%; min-height: 270px; aspect-ratio: 4 / 3; object-fit: cover; }
.work-comparison__label { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 7px 12px; border-radius: 999px; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.work-comparison__label--before { background: rgba(5,48,56,.88); }
.work-comparison__label--after { background: rgba(67,127,37,.94); }
.work-post__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px 21px; }
.work-post__footer > span { color: #6c7e7b; font-size: .79rem; }
.work-post__footer a, .work-empty a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border-radius: 999px; background: var(--work-green); color: #073741; font-weight: 800; text-decoration: none; }
.work-post__footer a:hover, .work-empty a:hover { filter: brightness(1.04); transform: translateY(-1px); }
.work-post__footer a:focus-visible, .work-empty a:focus-visible { outline: 3px solid var(--work-teal); outline-offset: 3px; }

.work-empty { padding: clamp(42px, 8vw, 76px) clamp(24px, 7vw, 64px); text-align: center; }
.work-empty__icon { display: grid; width: 66px; height: 66px; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #eef8dd; color: #4e8d2c; font-size: 2rem; }
.work-empty h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.work-empty p { max-width: 560px; margin: 16px auto 26px; color: #5f7470; font-size: 1.03rem; line-height: 1.7; }

@media (max-width: 900px) { .our-work-main { padding-top: 68px; } }
@media (max-width: 620px) {
  .our-work-hero { padding: 72px 20px 62px; }
  .our-work-hero__cta { width: min(100%, 320px); }
  .our-work-feed-wrap { padding: 46px 14px 68px; }
  .work-post, .work-empty { border-radius: 18px; }
  .work-post__media--2, .work-post__media--3, .work-post__media--4 { grid-template-columns: 1fr; }
  .work-post__media--3 figure:first-child { grid-row: auto; }
  .work-post__media figure, .work-post__media img, .work-post__media video { min-height: 250px; }
  .work-post__media figure.work-post__media-item--contain { min-height: 0; height: min(130vw, 700px); }
  .work-post__media figure.work-post__media-item--contain img { min-height: 0; }
  .work-post__comparisons { gap: 22px; padding: 2px 14px 22px; }
  .work-comparison__grid { grid-template-columns: 1fr; }
  .work-comparison figure, .work-comparison img { min-height: 250px; }
  .work-post__footer { align-items: stretch; flex-direction: column; }
  .work-post__footer a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .our-work-hero__cta, .work-post__footer a, .work-empty a { transition: none; }
}
