/* A compact case brief leaves the work and its imagery in the foreground. */
.case-editorial .case-hiring-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 clamp(24px, 5vw, 72px) !important;
  margin-top: clamp(32px, 4vw, 56px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
}
.case-editorial .case-hiring-summary > div {
  min-width: 0;
  padding: 18px 0 20px;
  border-top: 1px solid #c5cec3;
  background: transparent;
}
.case-editorial .case-hiring-summary dt {
  color: #56665a !important;
  font: 700 10px/1.3 var(--sans) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-editorial .case-hiring-summary dd {
  max-width: 46ch;
  margin-top: 9px !important;
  color: #303d34 !important;
  line-height: 1.5 !important;
}

/* A small, illustrative query invites readers to try the filter idea. */
.case-editorial .story-filter {
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid #b9c8b8;
  border-bottom: 1px solid #b9c8b8;
}
.story-filter__label {
  margin: 0 0 14px;
  color: #53695a;
  font: 700 10px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.story-filter__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-editorial .story-filter__controls button {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #9cad9e;
  border-radius: 999px;
  background: transparent;
  color: #395447;
  font: 600 13px/1.3 var(--sans);
  cursor: pointer;
}
.case-editorial .story-filter__controls button[aria-pressed="true"] {
  border-color: #355b43;
  background: #355b43;
  color: #fff;
}
.case-editorial .story-filter__controls button:focus-visible {
  outline: 2px solid #24583c;
  outline-offset: 3px;
}
.story-filter__result {
  margin: 12px 0 0;
  color: #56665a;
  font: 400 13px/1.5 var(--sans);
}

/* Project-specific accents keep the chapter navigation connected to each story. */
.case-editorial[data-view="case1"] {
  --story-accent: #495f7a;
  --story-hover: #e4e9ec;
}
.case-editorial[data-view="case2"] {
  --story-accent: #355b43;
  --story-hover: #e5ede3;
}
.case-editorial[data-view="case3"] {
  --story-accent: #675979;
  --story-hover: #eae7ed;
}
.case-editorial .story-chapters {
  position: sticky;
  z-index: 20;
  top: var(--story-header-height, 84px);
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #aebbad !important;
  background: #f1f2eb;
}
.story-chapters__items {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #9aab9d transparent;
}
.case-editorial .story-chapters button.sc-cnav {
  position: relative;
  display: inline-flex;
  flex: 1 0 auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px clamp(10px, 1.4vw, 20px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #425349 !important;
  font: 600 12px/1.3 var(--sans) !important;
  white-space: nowrap;
}
.case-editorial .story-chapters button.sc-cnav::before {
  content: attr(data-story-index);
  color: #839388;
  font: 600 10px/1 var(--sans);
}
.case-editorial .story-chapters button.sc-cnav::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--story-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.case-editorial
  .story-chapters
  button.sc-cnav:is(:hover, :focus-visible, [aria-current="step"]) {
  color: var(--story-accent) !important;
  background: var(--story-hover) !important;
}
.case-editorial
  .story-chapters
  button.sc-cnav:is(:hover, :focus-visible, [aria-current="step"])::after {
  transform: scaleX(1);
}
.case-editorial .story-chapters button.sc-cnav:focus-visible {
  outline: 2px solid var(--story-accent);
  outline-offset: -4px;
}
.case-editorial .case-chapter-marker {
  scroll-margin-top: calc(var(--story-header-height, 84px) + 90px) !important;
}

/* Extend the existing link over the artwork without adding a second tab stop. */
.project-preview__copy,
.project-preview__actions a {
  position: static;
}
.project-preview__actions a::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: var(--art-height);
  display: block;
  border-radius: 14px;
}
.project-preview__actions a::after {
  content: "Explore case ↗";
  position: absolute;
  z-index: 7;
  top: 18px;
  right: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: #f5f5ed;
  color: #263e32;
  font: 650 12px/1 var(--sans);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.project-preview:is(:hover, :focus-within) .project-preview__actions a::after {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .project-preview__actions a::after {
    transition:
      opacity 180ms ease-out,
      transform 180ms ease-out !important;
  }
  .story-chapters button.sc-cnav::after {
    transition: transform 220ms ease-out !important;
  }
  .project-preview__actions a span {
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .project-preview__actions a:is(:hover, :focus-visible) span {
    transform: translate(3px, -3px) !important;
  }
}
@media (max-width: 640px) {
  .case-editorial .case-hiring-summary {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }
  .case-editorial .case-hiring-summary > div {
    padding: 15px 0;
  }
  .case-editorial .story-chapters button.sc-cnav {
    min-height: 50px;
    font-size: 11px !important;
  }
}
