.work-showcase {
  --type-section: clamp(2.5rem, 5.5vw, 5rem);
  --type-card: clamp(1.5rem, 2.8vw, 2.5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #f3f3ed;
  color: #171816;
}
.work-showcase__inner { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.work-showcase__header { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: 2rem 4rem; margin-bottom: 2.75rem; }
.work-showcase__eyebrow { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.3rem; font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; }
.work-showcase__eyebrow::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #171816; }
.work-showcase__title { font-size: clamp(2.5rem, 5.5vw, 5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.06em; }
.work-showcase__title span { display: block; color: #77796d; }
.work-showcase__intro p { max-width: 35ch; color: #62645a; font-size: 0.96rem; line-height: 1.75; }
.work-showcase__cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.75rem; min-height: 48px; margin-top: 1.4rem; padding: 0.8rem 1.1rem; border: 1px solid #171816; border-radius: 0.5rem; font-size: 0.82rem; font-weight: 700; }
.work-showcase__cta:hover { color: #fff; background: #171816; }
.work-showcase__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; counter-reset: project; }
.work-project { min-width: 0; overflow: hidden; border: 1px solid #dedfd5; border-radius: 1rem; background: #fff; counter-increment: project; }
.work-project:first-child { display: grid; grid-template-columns: 1.3fr 1fr; grid-column: 1 / -1; background: #171816; color: #fff; border-color: #171816; }
.work-project__visual { overflow: hidden; min-width: 0; aspect-ratio: 16 / 10; background: #e5e6dd; }
.work-project:first-child .work-project__visual { height: 100%; min-height: 28rem; aspect-ratio: auto; }
.work-project__visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-project__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.5rem); }
.work-project:first-child .work-project__copy { justify-content: center; }
.work-project__kicker { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; color: #707267; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.work-project__kicker::before { content: counter(project, decimal-leading-zero); font-variant-numeric: tabular-nums; opacity: 0.7; }
.work-project:first-child .work-project__kicker { color: #c2c5b5; }
.work-project__client { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.045em; font-weight: 750; }
.work-project__stat { margin-top: 1.3rem; padding: 0.55rem 0.75rem; color: #171816; background: #ffef13; border-radius: 0.35rem; font-size: clamp(0.95rem, 1.5vw, 1.2rem); font-weight: 750; }
.work-project__desc { max-width: 48ch; margin-top: 1.2rem; color: #62645a; font-size: 0.88rem; line-height: 1.75; }
.work-project:first-child .work-project__desc { color: #c2c5b5; }
.work-project__badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e6e7df; width: 100%; list-style: none; }
.work-project__badges li { padding: 0.4rem 0.6rem; border: 1px solid #dedfd5; border-radius: 999px; font-size: 0.65rem; }
.work-project:first-child .work-project__badges { border-color: #ffffff20; }
.work-project:first-child .work-project__badges li { color: #ddd; border-color: #ffffff30; }
.work-showcase__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #d9dbd0; }
.work-showcase__footer p { color: #62645a; font-size: 0.85rem; }
.work-showcase__footer .work-showcase__cta { margin: 0; background: #ffef13; color: #171816; border-color: #ffef13; }
.work-showcase a:focus-visible { outline: 3px solid #72754c; outline-offset: 4px; }
@media (hover: hover) { .work-project:hover .work-project__visual img { transform: scale(1.035); } }
@media (max-width: 900px) {
  .work-showcase__header { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-showcase__intro p { max-width: 55ch; }
  .work-project:first-child { grid-template-columns: 1fr; }
  .work-project:first-child .work-project__visual { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}
@media (max-width: 600px) {
  .work-showcase__inner { width: calc(100% - 2rem); }
  .work-showcase__grid { grid-template-columns: 1fr; }
  .work-showcase__header { margin-bottom: 2rem; }
  .work-showcase__footer { align-items: flex-start; flex-direction: column; }
  .work-project:first-child .work-project__visual { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .work-project__visual img { transition: none; } }

/* Role tabs — RecVue-style outcomes panel */
.role-tabs {
  --role-accent: var(--yellow, #ffef13);
  --role-ink: #171816;
  --role-muted: #62645a;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 239, 19, 0.18), transparent 28rem),
    #f3f3ed;
}
.role-tabs__shell {
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(13.5rem, 16.5rem) minmax(0, 1fr);
  gap: 0;
  border: 1px solid #dedfd5;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(23, 24, 22, 0.08);
  overflow: hidden;
}
.role-tabs__nav {
  padding: 1.6rem 1.1rem 1.6rem 1.25rem;
  border-right: 1px solid #e6e7df;
  background: #f7f7f3;
}
.role-tabs__nav-label {
  margin: 0 0.55rem 1rem;
  color: #8a8c80;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.role-tabs__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.role-tabs__tab {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  color: var(--role-ink);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.role-tabs__tab small {
  display: block;
  margin-top: 0.15rem;
  color: var(--role-muted);
  font-size: 0.72rem;
}
.role-tabs__tab strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
}
.role-tabs__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: #707267;
  background: #e5e6dd;
}
.role-tabs__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.role-tabs__tab.is-active {
  border-color: #171816;
  background: #fff;
  box-shadow: 0 0.5rem 1.4rem rgba(23, 24, 22, 0.08);
}
.role-tabs__tab.is-active .role-tabs__icon {
  color: #171816;
  background: var(--role-accent);
}
.role-tabs__tab:hover:not(.is-active) {
  background: #efefe8;
}
.role-tabs__main {
  min-width: 0;
  padding: 1.5rem 1.5rem 1.6rem;
}
.role-tabs__panel[hidden],
.role-tabs__detail[hidden] {
  display: none !important;
}
.role-tabs__kicker {
  margin-bottom: 0.85rem;
  color: #8a8c80;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.role-tabs__outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.role-tabs__outcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 6.4rem;
  padding: 0.9rem 0.85rem;
  border: 1px solid #dedfd5;
  border-radius: 0.9rem;
  color: var(--role-ink);
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.role-tabs__outcome strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.role-tabs__outcome span {
  color: var(--role-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.role-tabs__outcome em {
  margin-top: auto;
  color: var(--role-ink);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}
.role-tabs__outcome.is-active {
  border-color: #171816;
  background: #fffbe6;
  box-shadow: inset 3px 0 0 var(--role-accent);
}
.role-tabs__detail {
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid #dedfd5;
  border-radius: 1.1rem;
  background: #fff;
}
.role-tabs__detail h3 {
  margin-bottom: 0.7rem;
  color: var(--role-ink);
  font-size: 1.15rem;
  font-weight: 750;
}
.role-tabs__detail p {
  max-width: 68ch;
  color: var(--role-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.role-tabs__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.role-tabs__pills li {
  padding: 0.42rem 0.75rem;
  border: 1px solid #dedfd5;
  border-radius: 999px;
  color: var(--role-ink);
  font-size: 0.72rem;
  font-weight: 650;
}
.role-tabs__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.role-tabs__stats div {
  padding: 1rem 0.95rem;
  border-radius: 0.85rem;
  background: #f3f3ed;
}
.role-tabs__stats strong {
  display: block;
  color: var(--role-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.role-tabs__stats span {
  display: block;
  margin-top: 0.3rem;
  color: var(--role-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
@media (max-width: 980px) {
  .role-tabs__shell { grid-template-columns: 1fr; }
  .role-tabs__nav { border-right: 0; border-bottom: 1px solid #e6e7df; padding-bottom: 1rem; }
  .role-tabs__nav-list { flex-direction: row; overflow-x: auto; }
  .role-tabs__tab { min-width: 12.5rem; }
  .role-tabs__outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-tabs__stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .role-tabs__shell { width: calc(100% - 1.5rem); border-radius: 1.2rem; }
  .role-tabs__main { padding: 1.15rem; }
  .role-tabs__outcomes { grid-template-columns: 1fr; }
}

