/* Reusable case-study carousel at the end of every portfolio story. */
.case-explore.section {
  padding: clamp(46px, 6vw, 80px) 0;
  overflow: hidden;
  background: var(--paper, #fff);
  border-top: 1px solid var(--rule, #e3dfda);
}
.case-explore-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.case-explore-heading h2 { margin: 0 0 8px; }
.case-explore-heading p:not(.eyebrow) { margin: 0; max-width: 58ch; color: var(--muted, #565653); }
.case-explore-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.case-explore-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--ink, #20201e);
  border-radius: 50%;
  background: transparent;
  color: var(--ink, #20201e);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.case-explore-controls button:hover:not(:disabled) { background: var(--ink, #20201e); color: #fff; }
.case-explore-controls button:focus-visible { outline: 3px solid var(--accent, #9b4f3e); outline-offset: 3px; }
.case-explore-controls button:disabled { opacity: .45; cursor: not-allowed; }
.case-explore-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent, #9b4f3e) var(--rule, #e3dfda);
}
.case-explore-card {
  display: flex;
  flex: 0 0 clamp(265px, 29vw, 340px);
  min-width: 0;
  min-height: 270px;
  padding: 22px;
  flex-direction: column;
  color: var(--ink, #20201e);
  text-decoration: none;
  border: 1px solid var(--rule, #e3dfda);
  border-radius: 4px;
  background: #fff;
  scroll-snap-align: center;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.case-explore-card > article { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.case-explore-card:hover, .case-explore-card:focus-visible {
  border-color: var(--accent, #9b4f3e);
  box-shadow: 0 10px 28px rgb(32 32 30 / 8%);
}
.case-explore-card:focus-visible { outline: 3px solid var(--accent, #9b4f3e); outline-offset: 3px; }
.case-explore-card.is-current { border-color: var(--accent, #9b4f3e); background: #fbf5f1; }
.case-explore-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule, #e3dfda);
}
.case-explore-wordmark { color: var(--ink, #20201e); font-size: 1.1rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.case-explore-current { color: var(--accent, #7e3d31); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.case-explore-arrow { color: var(--accent, #7e3d31); font-size: 1.35rem; }
.case-explore-kind { margin: 15px 0 7px; color: var(--muted, #565653); font-size: .68rem; font-weight: 700; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.case-explore-title { display: block; color: var(--ink, #20201e); font-size: 1.22rem; font-weight: 700; line-height: 1.2; }
.case-explore-overview { display: block; margin-top: 9px; color: var(--muted, #565653); font-size: .88rem; line-height: 1.5; }
.case-explore-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 15px; }
.case-explore-tag { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 8px; border-radius: 999px; background: #f3e5dc; color: #3b302a; font-size: .7rem; font-weight: 650; line-height: 1.15; }
@media (max-width: 700px) {
  .case-explore-heading { align-items: start; }
  .case-explore-heading h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .case-explore-controls button { width: 44px; height: 44px; }
  .case-explore-track { gap: 12px; }
  .case-explore-card { flex-basis: min(84vw, 330px); min-height: 278px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-explore-controls button, .case-explore-card { transition: none; }
  .case-explore-track { scroll-behavior: auto; }
}
