/* Work page refresh: recent-work cards, cedar slider, and a lighter
   treatment for the original Webflow project entries. */

.div-block-3 {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.work-card {
  margin-top: 56px;
  text-align: left;
}

.work-card + .work-card {
  margin-top: 140px;
}

.work-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.work-logo {
  flex: none;
  width: 64px;
  height: 64px;
}

.work-card h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
}

.work-sub {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #444;
  text-align: left;
}

.work-body {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: #222;
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #222;
}

.feat-list .tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: #dce5d6;
  color: #133920;
}

.feat-list .tick svg {
  width: 13px;
  height: 13px;
}

.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.work-shot {
  margin: 0;
}

.work-shot.wide {
  grid-column: 1 / -1;
}

.work-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #f6f4ee;
}

.work-shot:not(.wide) img {
  aspect-ratio: 1414 / 860;
  object-fit: cover;
  object-position: top center;
}

.work-shot figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #6b6b6b;
}

.work-link {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.work-cta {
  margin-top: 32px;
  text-align: center;
}

.work-cta .work-link {
  margin-top: 0;
  padding: 24px 48px;
  font-size: 22px;
}

.work-link:hover {
  background: #c8ff00;
  color: #000;
}

/* Cedar before/after slider */
.cedar-slider {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 920 / 686;
  max-height: 82vh;
  background: #1a1714;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.cedar-slider:focus-visible {
  outline: 3px solid #c8ff00;
  outline-offset: 3px;
}

.cedar-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cs-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 48% 0 0);
}

.cs-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 0;
}

.cs-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.cs-handle {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.cs-tag {
  position: absolute;
  top: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cs-tag-after {
  left: 14px;
  background: rgba(26, 23, 20, 0.8);
  color: #eee6d3;
}

.cs-tag-before {
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* Original Webflow projects, restyled as cards */
.div-block-3 .project,
.div-block-3 .project-copy {
  margin-top: 140px;
}

.div-block-3 .project-title h3,
.div-block-3 .project-title p {
  text-align: left;
}

.div-block-3 .project-title h3 {
  margin-bottom: 4px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.div-block-3 .project-title p {
  color: #6b6b6b;
}

.div-block-3 .project-image img {
  border-radius: 12px;
}

.div-block-3 .project-description li p {
  font-size: 16px;
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .work-card + .work-card,
  .div-block-3 .project,
  .div-block-3 .project-copy {
    margin-top: 96px;
  }

  .work-sub {
    font-size: 17px;
  }

  .work-body {
    font-size: 16px;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .work-cta .work-link {
    padding: 18px 22px;
    font-size: 17px;
  }

}

@media screen and (max-width: 767px) {
  .work-logo {
    width: 48px;
    height: 48px;
  }
}
